global: add keyboard shortcuts

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

global: (wip) move keyboard shortcuts metadata into common package
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

common: refactor keybindings.ts
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

global: (wip) more refactoring
* minor refactor dialog
* refactor logic out from script file to keybindings file

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

common: filter keybindings based on platform && minor ui changes

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

editor: use keyboard keys from common package
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

web: remove unrelated title-box change
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

editor: add TODO:remove comments
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-02-24 16:10:27 +05:00
committed by Abdullah Atta
parent 20138505c4
commit 4b2fb80c23
21 changed files with 803 additions and 54 deletions

View File

@@ -0,0 +1,80 @@
---
title: Keyboard Shortcuts
description: Keyboard shortcuts for Notesnook
---
The following keyboard shortcuts will help you navigate Notesnook faster.
### Navigation
| Description | Web | Windows/Linux | Mac |
| --- | --- | --- | --- |
| Next tab | Ctrl Alt right / Ctrl Alt Shift right | Ctrl tab | Command tab |
| Previous tab | Ctrl Alt left / Ctrl Alt Shift left | Ctrl Shift tab | Command Shift tab |
| New tab | - | Ctrl t | Command t |
| Close active tab | - | Ctrl w | Command w |
| Close all tabs | - | Ctrl Shift w | Command Shift w |
| Search in notes list view if editor is not focused | Ctrl f | Ctrl f | Command f |
| Command palette | Ctrl k | Ctrl k | Command k |
| Quick open | Ctrl p | Ctrl p | Command p |
### Note
| Description | Web | Windows/Linux | Mac |
| --- | --- | --- | --- |
| New note | - | Ctrl n | Command n |
### General
| Description | Web | Windows/Linux | Mac |
| --- | --- | --- | --- |
| Settings | Ctrl , | Ctrl , | Command , |
| Keyboard shortcuts | Ctrl / | Ctrl / | Command / |
### Editor
| Description | Web | Windows/Linux | Mac |
| --- | --- | --- | --- |
| Add attachment | Ctrl Shift A | Ctrl Shift A | Command Shift A |
| Insert blockquote | Ctrl Shift B | Ctrl Shift B | Command Shift B |
| Toggle bold | Ctrl b | Ctrl b | Command b |
| Toggle bullet list | Ctrl Shift 8 | Ctrl Shift 8 | Command Shift 8 |
| Toggle check list | Ctrl Shift 9 | Ctrl Shift 9 | Command Shift 9 |
| Split list item | Enter | Enter | Enter |
| Lift list item | Shift Tab | Shift Tab | Shift Tab |
| Sink list item | Ctrl Shift Down | Ctrl Shift Down | Command Shift Down |
| Toggle code | Ctrl e | Ctrl e | Command e |
| Toggle code block | Ctrl Shift C | Ctrl Shift C | Command Shift C |
| Insert date | Alt d | Alt d | Option d |
| Insert time | Alt t | Alt t | Option t |
| Insert date and time | Ctrl Alt d | Ctrl Alt d | Command Option d |
| Insert date and time with timezone | Ctrl Alt z | Ctrl Alt z | Command Option z |
| Increase font size | Ctrl [ | Ctrl [ | Command [ |
| Decrease font size | Ctrl ] | Ctrl ] | Command ] |
| Insert heading 1 | Ctrl Alt 1 | Ctrl Alt 1 | Command Option 1 |
| Insert heading 2 | Ctrl Alt 2 | Ctrl Alt 2 | Command Option 2 |
| Insert heading 3 | Ctrl Alt 3 | Ctrl Alt 3 | Command Option 3 |
| Insert heading 4 | Ctrl Alt 4 | Ctrl Alt 4 | Command Option 4 |
| Insert heading 5 | Ctrl Alt 5 | Ctrl Alt 5 | Command Option 5 |
| Insert heading 6 | Ctrl Alt 6 | Ctrl Alt 6 | Command Option 6 |
| Undo | Ctrl z | Ctrl z | Command z |
| Redo | Ctrl Shift z / Ctrl y | Ctrl Shift z / Ctrl y | Command Shift z / Command y |
| Add image | Ctrl Shift I | Ctrl Shift I | Command Shift I |
| Toggle italic | Ctrl i | Ctrl i | Command i |
| Remove formatting in selection | Ctrl \ | Ctrl \ | Command \ |
| Insert internal link | Ctrl Shift L | Ctrl Shift L | Command Shift L |
| Insert link | Ctrl Shift K | Ctrl Shift K | Command Shift K |
| Insert math block | Ctrl Shift M | Ctrl Shift M | Command Shift M |
| Toggle ordered list | Ctrl Shift 7 | Ctrl Shift 7 | Command Shift 7 |
| Toggle outline list | Ctrl Shift O | Ctrl Shift O | Command Shift O |
| Toggle outline list expand | Ctrl Space | Ctrl Space | Command Space |
| Open search | Ctrl F | Ctrl F | Command F |
| Toggle strike | Ctrl Shift S | Ctrl Shift S | Command Shift S |
| Toggle subscript | Ctrl , | Ctrl , | Command , |
| Toggle superscript | Ctrl . | Ctrl . | Command . |
| Toggle task list | Ctrl Shift T | Ctrl Shift T | Command Shift T |
| Text align center | Ctrl Shift E | Ctrl Shift E | Command Shift E |
| Text align justify | Ctrl Shift J | Ctrl Shift J | Command Shift J |
| Text align left | Ctrl Shift L | Ctrl Shift L | Command Shift L |
| Text align right | Ctrl Shift R | Ctrl Shift R | Command Shift R |
| Underline | Ctrl u | Ctrl u | Command u |