mirror of
https://github.com/heyman/heynote.git
synced 2025-06-27 13:01:51 +02:00
Update docs with new default key bindings
This commit is contained in:
parent
4ad6cbe11a
commit
129c0b5b69
@ -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.
|
||||
|
@ -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"],
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (platform === "win32" || platform === "linux") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user