Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

common: update keybindings for editor search, link, internal link, and command palette Signed-off-by: 01zulfi <[email protected]>

01zulfif9a89783ed86
diff --git a/docs/help/contents/keyboard-shortcuts.md b/docs/help/contents/keyboard-shortcuts.md
index a9aea3965..bf006eb2f 100644
--- a/docs/help/contents/keyboard-shortcuts.md
+++ b/docs/help/contents/keyboard-shortcuts.md
@@ -20,7 +20,7 @@ The following keyboard shortcuts will help you navigate Notesnook faster.
| --- | --- | --- | --- |
| Next tab | Ctrl Alt → / Ctrl Alt ⇧ → | Ctrl tab | ⌘ tab |
| Previous tab | Ctrl Alt ← / Ctrl Alt ⇧ ← | Ctrl ⇧ tab | ⌘ ⇧ tab |
-| Command palette | Ctrl K | Ctrl K | ⌘ K |
+| Command palette | Ctrl ⇧ P | Ctrl ⇧ P | ⌘ ⇧ P |
| Quick open | Ctrl P | Ctrl P | ⌘ P |
| New tab | - | Ctrl T | ⌘ T |
| Close active tab | - | Ctrl W | ⌘ W |
@@ -58,8 +58,8 @@ The following keyboard shortcuts will help you navigate Notesnook faster.
| Add image | Ctrl ⇧ I | Ctrl ⇧ I | ⌘ ⇧ I |
| Toggle italic | Ctrl I | Ctrl I | ⌘ I |
| Remove formatting in selection | Ctrl \ | Ctrl \ | ⌘ \ |
-| Insert internal link | Ctrl ⇧ L | Ctrl ⇧ L | ⌘ ⇧ L |
-| Insert link | Ctrl ⇧ K | Ctrl ⇧ K | ⌘ ⇧ K |
+| Insert internal link | Ctrl ⇧ K | Ctrl ⇧ K | ⌘ ⇧ K |
+| Insert link | Ctrl K | Ctrl K | ⌘ K |
| Insert math block | Ctrl ⇧ M | Ctrl ⇧ M | ⌘ ⇧ M |
| Toggle ordered list | Ctrl ⇧ 7 | Ctrl ⇧ 7 | ⌘ ⇧ 7 |
| Toggle outline list | Ctrl ⇧ O | Ctrl ⇧ O | ⌘ ⇧ O |
diff --git a/packages/common/src/utils/keybindings.ts b/packages/common/src/utils/keybindings.ts
index b2fb83065..9972a94f1 100644
--- a/packages/common/src/utils/keybindings.ts
+++ b/packages/common/src/utils/keybindings.ts
@@ -96,7 +96,7 @@ export const hotkeys = {
type: "hotkeys"
},
openCommandPalette: {
- keys: normalizeKeys(["ctrl+k"]),
+ keys: normalizeKeys(["ctrl+shift+p"]),
description: "Command palette",
category: "Navigation",
type: "hotkeys"
@@ -294,13 +294,13 @@ export const tiptapKeys = {
type: "tiptap"
},
insertInternalLink: {
- keys: "Mod-Shift-L",
+ keys: "Mod-Shift-K",
description: "Insert internal link",
category: "Editor",
type: "tiptap"
},
insertLink: {
- keys: "Mod-Shift-K",
+ keys: "Mod-k",
description: "Insert link",
category: "Editor",
type: "tiptap"
@@ -330,7 +330,7 @@ export const tiptapKeys = {
type: "tiptap"
},
openSearch: {
- keys: "Mod-F",
+ keys: "Mod-f",
description: "Open search",
category: "Editor",
type: "tiptap"