diff --git a/docs/index.md b/docs/index.md index ff4b303..064ab03 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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 + Alt + Up/Down Add additional cursor above/below Alt + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown) -Ctrl + Shift + [ Fold block(s) -Ctrl + Shift + ] Unfold block(s) -Ctrl + Shift + . Toggle block fold +Ctrl + Alt + [ Fold block(s) +Ctrl + Alt + ] Unfold block(s) +Ctrl + Alt + . Toggle block fold Alt Show menu ``` You can see all the default key bindings in Heynote's settings under 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. diff --git a/shared-utils/key-helper.ts b/shared-utils/key-helper.ts index 9866d51..5203cc4 100644 --- a/shared-utils/key-helper.ts +++ b/shared-utils/key-helper.ts @@ -20,19 +20,11 @@ export const keyHelpStr = (platform: string, extended: boolean = false) => { ] if (extended) { - if (platform === "darwin") { - keyHelp.push( - [`${modChar} + ${altChar} + [`, "Fold block(s)"], - [`${modChar} + ${altChar} + ]`, "Unfold block(s)"], - [`${modChar} + ${altChar} + .`, "Toggle block fold"], - ) - } else { - keyHelp.push( - [`${modChar} + Shift + [`, "Fold block(s)"], - [`${modChar} + Shift + ]`, "Unfold block(s)"], - [`${modChar} + Shift + .`, "Toggle block fold"], - ) - } + keyHelp.push( + [`${modChar} + ${altChar} + [`, "Fold block(s)"], + [`${modChar} + ${altChar} + ]`, "Unfold block(s)"], + [`${modChar} + ${altChar} + .`, "Toggle block fold"], + ) } if (platform === "win32" || platform === "linux") {