You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
# Contributing
2
2
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
Copy file name to clipboardExpand all lines: blog/2020-09-18-hello.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,9 @@ If you have any doubts about this, just open an issue on GitHub, you can check b
42
42
yourself that at the moment, me and Steven are really active and we do our best
43
43
to answer.
44
44
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)
46
48
GitHub organization. Look at those first, if you are just starting 😉
Copy file name to clipboardExpand all lines: docs/bonus.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@ This section contains additional config that might be helpful beyond the default
7
7
8
8
## Quick Window Navigation
9
9
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.
11
12
12
13
:::caution
13
14
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.
63
64
64
65
## Easy List Navigation
65
66
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.
67
70
68
71
:::caution
69
72
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.
98
101
99
102
## Rebind action menu for file-browser
100
103
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.
102
108
103
109
`keybindings.json`:
104
110
@@ -127,6 +133,7 @@ The argument of `vim.remap` is specified by the `"args"` field.
127
133
If the `"args"` field contains the `after` key, the vim key combination specified in the value will be executed.
128
134
129
135
The following example json overrides `<spc> y` to execute vim keys of `y y`.
136
+
130
137
```json
131
138
"vspacecode.bindingOverrides": [
132
139
{
@@ -142,9 +149,12 @@ The following example json overrides `<spc> y` to execute vim keys of `y y`.
142
149
```
143
150
144
151
### Execute vim command
152
+
145
153
If the `"args"` field contains the `commands` key, the vim and vscode commands specified in the array will be executed.
146
154
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
+
148
158
```json
149
159
"vspacecode.bindingOverrides": [
150
160
{
@@ -165,7 +175,6 @@ The following example json overrides `<spc> c` to execute the vim command `:noh`
165
175
]
166
176
```
167
177
168
-
169
178
## Use non-character keys
170
179
171
180
See in [Which Key](./whichkey/extra#use-non-character-keys)
Copy file name to clipboardExpand all lines: docs/installation.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ This extension is published as an extension pack, i.e. it installs all the neces
8
8
However, if you do not like the bundled extensions or you are not using VSCode Vim, please go to the
9
9
[vscode-which-key](https://github.com/VSpaceCode/vscode-which-key) extension for a standalone which key menu function.
10
10
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.
a notification will help you to configure both the necessary settings and user bindings.
12
14
13
15
:::note
14
16
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
17
19
18
20
## Manual Configuration (optional)
19
21
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`.
21
24
22
25
:::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)
24
28
:::
25
29
26
30
The following commands can be access through command palette to rerun the automatic configuration step.
Copy file name to clipboardExpand all lines: docs/major-mode.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,13 @@ id: major-mode
3
3
title: Major Mode
4
4
---
5
5
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.
7
8
8
9
:::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.
10
13
:::
11
14
12
15
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
17
20
18
21
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).
19
22
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.
21
25
22
26
In the following you can see all the currently available major modes.
23
27
If your favorite one is missing, please [contribute](https://github.com/VSpaceCode/VSpaceCode/blob/master/CONTRIBUTING.md)!
Copy file name to clipboardExpand all lines: docs/menu-customization.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,23 +3,29 @@ id: menu-customization
3
3
title: Menu Customization
4
4
---
5
5
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.
7
8
8
9
## Default bindings
9
10
10
11
See [Default Keybindings](./default-keybindings) for default bindings.
11
12
12
13
:::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.
14
17
:::
15
18
16
19
## Incrementally
17
20
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`.
19
23
20
24
### Add/Replace
21
25
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.
23
29
24
30
```jsonc
25
31
{
@@ -76,7 +82,8 @@ In the following example, any item bound to `<SPC> g s` will be remove.
76
82
77
83
## From Scratch
78
84
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.
80
87
81
88
An example of a `settings.json` file that overrides space menu is as follows:
82
89
@@ -119,4 +126,5 @@ An example of a `settings.json` file that overrides space menu is as follows:
119
126
}
120
127
```
121
128
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.
Copy file name to clipboardExpand all lines: docs/troubleshooting.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@ title: Troubleshooting
5
5
6
6
## Error "␣ is undefined" when pressing SPC SPC
7
7
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.
9
10
10
11
This problem is due to a keyboard settings on macOS that add a period with double-space.
11
12
@@ -47,15 +48,17 @@ Example:
47
48
]
48
49
```
49
50
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.
51
53
52
54
### Virtual Machine or slow hardware
53
55
54
56
If you are working on limiting resources consider using [VSCode remote](https://code.visualstudio.com/docs/remote/remote-overview)
55
57
56
58
### Other conflicts
57
59
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.
0 commit comments