Add new command for adding a new block after the current one, and moving the cursor to it. Change default Mod-Enter keybinding to use the new command, and added a new Mod-Shift-Enter keybinding to use the old command that inserts a new block separator at the cursor position (e.g. splits the current block).

#windows-build
This commit is contained in:
Jonatan Heyman
2023-01-19 14:29:03 +01:00
parent 1abefce1ec
commit aa628a4f08
3 changed files with 42 additions and 16 deletions

View File

@ -6,12 +6,13 @@ export const initialContent = `
∞∞∞text
Welcome to Heynote!
[${modChar} + Enter] Insert new note block at cursor
[${modChar} + L] Change block language
[${modChar} + Down] Goto next block
[${modChar} + Up] Goto previous block
[${modChar} + A] Select all text in a note block. Press again to select the whole scratchpad
[${modChar} + ⌥ + Up/Down]  Add additional cursor above/below
[${modChar} + Enter] Add new block and move cursor to it
[${modChar} + Shift + Enter] Split the current block at cursor position
[${modChar} + L] Change block language
[${modChar} + Down] Goto next block
[${modChar} + Up] Goto previous block
[${modChar} + A] Select all text in a note block. Press again to select the whole scratchpad
[${modChar} + ⌥ + Up/Down]  Add additional cursor above/below
∞∞∞text-a
`
@ -19,12 +20,13 @@ export const initialDevContent = `
∞∞∞text-a
Welcome to Heynote!
[⌘ + Enter] Insert new note block
[⌘ + F] Find text
[ + A] Select all text in a note block. Press again to select the whole scratchpad
[⌘ + Up] Go to start of note (or start of previous note if already at the start)
[⌘ + Down] Go to end of note (or end of next note if already at the end)
[⌘ + ⌥ + Up/Down]  Add additional cursor above/below
[${modChar} + Enter] Add new block and move cursor to it
[${modChar} + Shift + Enter] Split the current block at cursor position
[${modChar} + L] Change block language
[${modChar} + Down] Goto next block
[${modChar} + Up] Goto previous block
[${modChar} + A] Select all text in a note block. Press again to select the whole scratchpad
[${modChar} + ⌥ + Up/Down]  Add additional cursor above/below
∞∞∞python-a
# hmm