Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/major-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ title: Major Mode
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.

:::note
:::tip
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.
More information can be found in the [Installation](./) for instructions.
:::

:::note
The default configuration uses `,` as the shortcut to major mode, that will override the vim "find previous match" after a `f{character}`.
You can follow the instructions in [Troubleshooting](./troubleshooting#-cannot-find-previous-match) to remove or modify this shortcut.
:::

For example, you can press `<spc> m x b` to make the text bold in a markdown buffer.
Expand Down
22 changes: 22 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,28 @@ If you don't use this feature, disabling it should fix this issue. Otherwise, ad
],
```

## `,` cannot find previous match

The default VSpaceCode configuration overrides `,` as a shortcut for the [major mode](./major-mode.md);
therefore, the key `,` cannot get back to the previous match after a find `f{character}` with Vim.

In order to remove this major mode shortcut, remove the following section from your `settings.json`:

```json
{
"before": [","],
"commands": [
"vspacecode.space",
{
"command": "whichkey.triggerKey",
"args": "m"
}
],
}
```

Alternatively, you can change the shortcut key by changing `","` in `"before"` to other keys.

## Unresponsive menu activation

If you press `<spc>` on a buffer and the which-key menu doesn't appear immediately, you might have one of the following problems.
Expand Down