Update docs with new default key bindings

This commit is contained in:
Jonatan Heyman 2025-06-16 22:45:46 +02:00
parent 4ad6cbe11a
commit 129c0b5b69
2 changed files with 9 additions and 16 deletions

View File

@ -68,15 +68,16 @@ Ctrl + Up Goto previous block
Ctrl + A Select all text in a note block. Press again to select the whole buffer Ctrl + A Select all text in a note block. Press again to select the whole buffer
Ctrl + Alt + Up/Down Add additional cursor above/below Ctrl + Alt + Up/Down Add additional cursor above/below
Alt + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown) Alt + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)
Ctrl + Shift + [ Fold block(s) Ctrl + Alt + [ Fold block(s)
Ctrl + Shift + ] Unfold block(s) Ctrl + Alt + ] Unfold block(s)
Ctrl + Shift + . Toggle block fold Ctrl + Alt + . Toggle block fold
Alt Show menu Alt Show menu
``` ```
You can see all the default key bindings in Heynote's settings under Key Bindings. You can see all the default key bindings in Heynote's settings under Key Bindings.
## Custom Key Bindings ## Custom Key Bindings
Heynote supports custom key bindings which you can configure in the settings. The key bindings are evaluated from top to bottom, so a binding that comes before another one will take precedence. Most commands will stop the event from propagating, but some commands only applies in certain contexts and might not stop the event from propagating to a later key binding. Heynote supports custom key bindings which you can configure in the settings. The key bindings are evaluated from top to bottom, so a binding that comes before another one will take precedence. Most commands will stop the event from propagating, but some commands only applies in certain contexts and might not stop the event from propagating to a later key binding.

View File

@ -20,19 +20,11 @@ export const keyHelpStr = (platform: string, extended: boolean = false) => {
] ]
if (extended) { if (extended) {
if (platform === "darwin") {
keyHelp.push( keyHelp.push(
[`${modChar} + ${altChar} + [`, "Fold block(s)"], [`${modChar} + ${altChar} + [`, "Fold block(s)"],
[`${modChar} + ${altChar} + ]`, "Unfold block(s)"], [`${modChar} + ${altChar} + ]`, "Unfold block(s)"],
[`${modChar} + ${altChar} + .`, "Toggle block fold"], [`${modChar} + ${altChar} + .`, "Toggle block fold"],
) )
} else {
keyHelp.push(
[`${modChar} + Shift + [`, "Fold block(s)"],
[`${modChar} + Shift + ]`, "Unfold block(s)"],
[`${modChar} + Shift + .`, "Toggle block fold"],
)
}
} }
if (platform === "win32" || platform === "linux") { if (platform === "win32" || platform === "linux") {