Skip to content

Commit

Permalink
Update help text and Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Jan 1, 2024
1 parent 9ff7742 commit 905888a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,26 @@ I can totally see the usefulness of such a feature, and it's definitely somethin

```
⌘ + Enter Add new block below the current block
⌘ + Shift + Enter Split the current block at cursor position
⌥ + Enter Add new block after the last block
⌘ + Shift + Enter Add new block at the start of the buffer
⌥ + Enter Add new block below the current block
⌥ + Shift + Enter Add new block at the top of the buffer
⌘ + ⌥ + Enter Split the current block at cursor position
⌘ + L Change block language
⌘ + Down Goto next block
⌘ + Up Goto previous block
⌘ + A Select all text in a note block. Press again to select the whole buffer
⌘ + ⌥ + Up/Down Add additional cursor above/below
⌘ + ⌥ + Up/Down Add additional cursor above/below
⌥ + Shift + F Format block content (works for JSON, JavaScript, HTML, CSS and Markdown)
```

**On Windows and Linux**

```
Ctrl + Enter Add new block below the current block
Ctrl + Shift + Enter Split the current block at cursor position
Alt + Enter Add new block after the last block
Ctrl + Shift + Enter Add new block at the start of the buffer
Alt + Enter Add new block below the current block
Alt + Shift + Enter Add new block at the top of the buffer
Ctrl + Alt + Enter Split the current block at cursor position
Ctrl + L Change block language
Ctrl + Down Goto next block
Ctrl + Up Goto previous block
Expand Down
6 changes: 4 additions & 2 deletions electron/initial-content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ const altChar = isMac ? "⌥" : "Alt"

const keyHelp = [
[`${modChar} + Enter`, "Add new block below the current block"],
[`${modChar} + Shift + Enter`, "Split the current block at cursor position"],
[`${altChar} + Enter`, "Add new block after the last block"],
[`${modChar} + Shift + Enter`, "Add new block at the start of the buffer"],
[`${altChar} + Enter`, "Add new block below the current block"],
[`${altChar} + Shift + Enter`, "Add new block at the top of the buffer"],
[`${modChar} + ${altChar} + Enter`, "Split the current block at cursor position"],
[`${modChar} + L`, "Change block language"],
[`${modChar} + Down`, "Goto next block"],
[`${modChar} + Up`, "Goto previous block"],
Expand Down

0 comments on commit 905888a

Please sign in to comment.