pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/VSpaceCode/vspacecode.github.io/commit/6cfd297fc3bafa43d58ffaf2837e5127cf1c7ece

rossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-52276e82f63bb403.css" /> add ci: markdown lint (#27) · VSpaceCode/vspacecode.github.io@6cfd297 · GitHub
Skip to content

Commit 6cfd297

Browse files
authored
add ci: markdown lint (#27)
1 parent 2897484 commit 6cfd297

File tree

12 files changed

+165
-55
lines changed

12 files changed

+165
-55
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Continuous Integration
2+
3+
on:
4+
push:
5+
branches: [master, vspacecode-next, which-key-next]
6+
pull_request:
7+
8+
jobs:
9+
markdown-lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Lint all files recursively
14+
uses: avto-dev/markdown-lint@v1
15+
with:
16+
config: '.markdownlint.yaml'
17+
args: "'**/*.md' --ignore node_modules --ignore docs/default-keybindings.md"

.markdownlint.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
# allow tabs only in code blocks
3+
MD010:
4+
code_blocks: false
5+
6+
# Use `#` for headers
7+
MD003:
8+
style: atx
9+
10+
# Set maximum line length
11+
MD013:
12+
line_length: 150
13+
14+
# Use `---` for horizontal rule
15+
MD035:
16+
style: ---
17+
18+
# Use ``` for code blocks
19+
MD046:
20+
style: fenced
21+
MD048:
22+
style: backtick
23+
24+
# See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md for additional info

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Contributing
22

3-
This website contains the [VSpaceCode](https://github.com/VSpaceCode/VSpaceCode) and [Which Key](https://github.com/VSpaceCode/vscode-which-key) extensions documentation.
3+
This website contains the [VSpaceCode](https://github.com/VSpaceCode/VSpaceCode) and
4+
[Which Key](https://github.com/VSpaceCode/vscode-which-key) extensions documentation.
45

56
## Branches
67

78
There are three branches:
9+
810
- `vspacecode-next`: contains the doc for the upcoming changes of VSpaceCode extension
911
- `which-key-next`: contains the doc for the upcoming changes of WhichKey extension
1012
- `master`: it is used to build the website

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
This website is built using the [Docusaurus 2](https://v2.docusaurus.io/) static website generator.
44

5-
### Installation
5+
## Installation
66

7-
```
8-
$ npm install
7+
```sh
8+
npm install
99
```
1010

11-
### Local Development
11+
## Local Development
1212

13-
```
14-
$ npm start
13+
```sh
14+
npm start
1515
```
1616

1717
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
1818

19-
### Build
19+
## Build
2020

21-
```
22-
$ npm run build
21+
```sh
22+
npm run build
2323
```
2424

2525
This command generates static content into the `build` directory and can be served using any static contents hosting service.

blog/2020-09-18-hello.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ If you have any doubts about this, just open an issue on GitHub, you can check b
4242
yourself that at the moment, me and Steven are really active and we do our best
4343
to answer.
4444

45-
You will see some issues labeled as [good first issues](https://github.com/VSpaceCode/VSpaceCode/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22) on all the projects of the [VSpaceCode](https://github.com/VSpaceCode)
45+
You will see some issues labeled as
46+
[good first issues](https://github.com/VSpaceCode/VSpaceCode/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
47+
on all the projects of the [VSpaceCode](https://github.com/VSpaceCode)
4648
GitHub organization. Look at those first, if you are just starting 😉
4749

4850
Goodbye, and enjoy using VSpaceCode! ‍🧑‍🚀

docs/bonus.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ This section contains additional config that might be helpful beyond the default
77

88
## Quick Window Navigation
99

10-
To navigate all the windows including slide and bottom pane with `Ctrl-h/j/k/l`, you can merge the following config system's key bindings to your `keybindings.json` file.
10+
To navigate all the windows including slide and bottom pane with `Ctrl-h/j/k/l`,
11+
you can merge the following config system's key bindings to your `keybindings.json` file.
1112

1213
:::caution
1314
This config might be in conflict with "Easy List Navigation" below.
@@ -63,7 +64,9 @@ This config might be in conflict with "Easy List Navigation" below.
6364

6465
## Easy List Navigation
6566

66-
Although [VSCode Vim already bound](https://github.com/VSCodeVim/Vim/blob/v1.14.5/package.json#L124-L152) these to `h/j/k/l`, however, they might not work in all lists like in the problem pane. You can merge the following keybindings to `keybindings.json` to bind `ctrl+h/l/j/k` for those situations.
67+
Although [VSCode Vim already bound](https://github.com/VSCodeVim/Vim/blob/v1.14.5/package.json#L124-L152)
68+
these to `h/j/k/l`, however, they might not work in all lists like in the problem pane.
69+
You can merge the following keybindings to `keybindings.json` to bind `ctrl+h/l/j/k` for those situations.
6770

6871
:::caution
6972
This config might be in conflict with "Quick Window Navigation" above.
@@ -98,7 +101,10 @@ This config might be in conflict with "Quick Window Navigation" above.
98101

99102
## Rebind action menu for file-browser
100103

101-
File browser, which is bound to `<spc> f f` by default, binds `ctrl+a` to open an action menu; however, `ctrl+a` can be used move the text cursor to the front. Your can merge the following example keybindings to `keybindings.json` to use `ctrl+o` instead of `ctrl+a` in the file browser to open an action menu.
104+
File browser, which is bound to `<spc> f f` by default, binds `ctrl+a` to open an action menu;
105+
however, `ctrl+a` can be used move the text cursor to the front.
106+
Your can merge the following example keybindings to `keybindings.json` to use `ctrl+o` instead of
107+
`ctrl+a` in the file browser to open an action menu.
102108

103109
`keybindings.json`:
104110

@@ -127,6 +133,7 @@ The argument of `vim.remap` is specified by the `"args"` field.
127133
If the `"args"` field contains the `after` key, the vim key combination specified in the value will be executed.
128134

129135
The following example json overrides `<spc> y` to execute vim keys of `y y`.
136+
130137
```json
131138
"vspacecode.bindingOverrides": [
132139
{
@@ -142,9 +149,12 @@ The following example json overrides `<spc> y` to execute vim keys of `y y`.
142149
```
143150

144151
### Execute vim command
152+
145153
If the `"args"` field contains the `commands` key, the vim and vscode commands specified in the array will be executed.
146154

147-
The following example json overrides `<spc> c` to execute the vim command `:noh` and the vscode command `editor.action.codeAction` with `{ "kind": "refactor.extract" }` as argument.
155+
The following example json overrides `<spc> c` to execute the vim command `:noh` and the
156+
vscode command `editor.action.codeAction` with `{ "kind": "refactor.extract" }` as argument.
157+
148158
```json
149159
"vspacecode.bindingOverrides": [
150160
{
@@ -165,7 +175,6 @@ The following example json overrides `<spc> c` to execute the vim command `:noh`
165175
]
166176
```
167177

168-
169178
## Use non-character keys
170179

171180
See in [Which Key](./whichkey/extra#use-non-character-keys)

docs/installation.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ This extension is published as an extension pack, i.e. it installs all the neces
88
However, if you do not like the bundled extensions or you are not using VSCode Vim, please go to the
99
[vscode-which-key](https://github.com/VSpaceCode/vscode-which-key) extension for a standalone which key menu function.
1010

11-
After the installation of the [VSpaceCode extension](https://marketplace.visualstudio.com/items?itemName=VSpaceCode.vspacecode), a notification will help you to configure both the necessary settings and user bindings.
11+
After the installation of the
12+
[VSpaceCode extension](https://marketplace.visualstudio.com/items?itemName=VSpaceCode.vspacecode),
13+
a notification will help you to configure both the necessary settings and user bindings.
1214

1315
:::note
1416
By following this automatic procedure, the formatting of `settings.json` and `keybindings.json` may be lost.
@@ -17,10 +19,12 @@ If you want to prevent this, you can choose to follow the manual configuration b
1719

1820
## Manual Configuration (optional)
1921

20-
The [`settings.jsonc`][settings] and [`keybindings.jsonc`][keybindings] in the repo contains the configurations needed. You can merge them manually to your user's `settings.json` and `keybindings.json`.
22+
The [`settings.jsonc`][settings] and [`keybindings.jsonc`][keybindings] in the repo contains the
23+
configurations needed. You can merge them manually to your user's `settings.json` and `keybindings.json`.
2124

2225
:::tip
23-
You can access your user's `settings.json` and `keybindings.json` by searching `Preference: Open Settings (JSON)` and `Preference: Open Keyboard Shortcuts (JSON)` in the command palette (Ctl+Shift+P)
26+
You can access your user's `settings.json` and `keybindings.json` by searching `Preference: Open Settings (JSON)`
27+
and `Preference: Open Keyboard Shortcuts (JSON)` in the command palette (Ctl+Shift+P)
2428
:::
2529

2630
The following commands can be access through command palette to rerun the automatic configuration step.

docs/major-mode.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ id: major-mode
33
title: Major Mode
44
---
55

6-
Major mode offers dynamic menu and functions based on the active buffer. You can access key bindings specific to the current major mode by pressing `<spc> m` or `,` if you want to save one keystroke.
6+
Major mode offers dynamic menu and functions based on the active buffer.
7+
You can access key bindings specific to the current major mode by pressing `<spc> m` or `,` if you want to save one keystroke.
78

89
:::note
9-
If `,` isn't bound, you might need to update your settings. You can add the necessary keybindings to your `settings.json` by pressing `Ctrl+Shift+p` and running the command "VSpaceCode: Configure Default Settings". More information can be found in the [Installation](./) instructions.
10+
If `,` isn't bound, you might need to update your settings.
11+
You can add the necessary keybindings to your `settings.json` by pressing `Ctrl+Shift+p` and running the command "VSpaceCode: Configure Default Settings".
12+
More information can be found in the [Installation](./) instructions.
1013
:::
1114

1215
For example, you can press `<spc> m x b` to make the text bold in a markdown buffer.
@@ -17,17 +20,20 @@ To find the active language mode of your current buffer, you can look at the bot
1720

1821
The major mode is using which-key's conditional bindings. If you want to modify the default bindings, check out the conditional bindings [docs](./whichkey/extra#conditional-bindings-experimental).
1922

20-
The vast majority of major mode specific key bindings will require the installation of additional extensions in order to work properly. The section below lists all the extensions required by each major mode.
23+
The vast majority of major mode specific key bindings will require the installation of additional extensions in order to work properly.
24+
The section below lists all the extensions required by each major mode.
2125

2226
In the following you can see all the currently available major modes.
2327
If your favorite one is missing, please [contribute](https://github.com/VSpaceCode/VSpaceCode/blob/master/CONTRIBUTING.md)!
2428

2529
## Go
2630

2731
Required extensions:
32+
2833
- [Go](https://marketplace.visualstudio.com/items?itemName=golang.Go)
2934

3035
## Markdown
3136

3237
Required extensions:
38+
3339
- [Markdown All in One](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one)

docs/menu-customization.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,29 @@ id: menu-customization
33
title: Menu Customization
44
---
55

6-
There are two ways to customize the menu: incrementally, and from scratch. Incrementally is great for when you only need to modify a few bindings from the default. Customizing from scratch is great for total control of the customization.
6+
There are two ways to customize the menu: incrementally, and from scratch.
7+
Incrementally is great for when you only need to modify a few bindings from the default. Customizing from scratch is great for total control of the customization.
78

89
## Default bindings
910

1011
See [Default Keybindings](./default-keybindings) for default bindings.
1112

1213
:::note
13-
The default menu bindings are subject to change before `1.0.0`. If you find something that you think it should bind to a particular key by default, or you want a particular command, please open an issue as a feature request.
14+
The default menu bindings are subject to change before `1.0.0`.
15+
If you find something that you think it should bind to a particular key by default, or you want a particular command,
16+
please open an issue as a feature request.
1417
:::
1518

1619
## Incrementally
1720

18-
Using this option will allow to you surgically update the default bindings (`vspacecode.bindings`). The extension will override bindings sequentially base on `vspacecode.bindingOverrides`.
21+
Using this option will allow to you surgically update the default bindings (`vspacecode.bindings`).
22+
The extension will override bindings sequentially base on `vspacecode.bindingOverrides`.
1923

2024
### Add/Replace
2125

22-
The following json will replace `<SPC> g s` in the same position if the binding exists in `vspacecode.bindings`, and append `s` to menu `<SPC> g` if it doesn't exists. This override will only execute if `<SPC> g` menu exists. An optional `position` key can be used to specified index of where the item should be inserted/moved to.
26+
The following json will replace `<SPC> g s` in the same position if the binding exists in `vspacecode.bindings`,
27+
and append `s` to menu `<SPC> g` if it doesn't exists. This override will only execute if `<SPC> g` menu exists.
28+
An optional `position` key can be used to specified index of where the item should be inserted/moved to.
2329

2430
```jsonc
2531
{
@@ -76,7 +82,8 @@ In the following example, any item bound to `<SPC> g s` will be remove.
7682

7783
## From Scratch
7884

79-
To customize the menu items from scratch, you can override the menu completely by putting your own `vspacecode.bindings` into your `settings.json`. Using this option will prevent any update to your own bindings.
85+
To customize the menu items from scratch, you can override the menu completely by putting your own `vspacecode.bindings` into your `settings.json`.
86+
Using this option will prevent any update to your own bindings.
8087

8188
An example of a `settings.json` file that overrides space menu is as follows:
8289

@@ -119,4 +126,5 @@ An example of a `settings.json` file that overrides space menu is as follows:
119126
}
120127
```
121128

122-
The default value can be found in the `contributes.configuration.vspacecode.bindings.default` section of the `package.json` in this repo. You can use the default value as an example to craft your own custom menu.
129+
The default value can be found in the `contributes.configuration.vspacecode.bindings.default` section of the `package.json` in this repo.
130+
You can use the default value as an example to craft your own custom menu.

docs/troubleshooting.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ title: Troubleshooting
55

66
## Error "␣ is undefined" when pressing SPC SPC
77

8-
When pressing `SPC SPC` quickly on macOS, which-key doesn't recognize the second `SPC` sometimes, and the error "␣ is undefined" is displayed on the status bar.
8+
When pressing `SPC SPC` quickly on macOS, which-key doesn't recognize the second `SPC` sometimes,
9+
and the error "␣ is undefined" is displayed on the status bar.
910

1011
This problem is due to a keyboard settings on macOS that add a period with double-space.
1112

@@ -47,15 +48,17 @@ Example:
4748
]
4849
```
4950

50-
In order to solve it, remove the conflicting vim bindings from your `settings.json` completely, or use the VSpaceCode's [overrides](./menu-customization#addreplace) instead.
51+
In order to solve it, remove the conflicting vim bindings from your `settings.json` completely,
52+
or use the VSpaceCode's [overrides](./menu-customization#addreplace) instead.
5153

5254
### Virtual Machine or slow hardware
5355

5456
If you are working on limiting resources consider using [VSCode remote](https://code.visualstudio.com/docs/remote/remote-overview)
5557

5658
### Other conflicts
5759

58-
Try to remove all the extensions except the ones installed by VSpaceCode, and clean your `settings.json` and `keybindings.json` files in order to spot some weird conflicts.
60+
Try to remove all the extensions except the ones installed by VSpaceCode, and clean your `settings.json`
61+
and `keybindings.json` files in order to spot some weird conflicts.
5962

6063
## Known Issues
6164

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy