Skip to content

Commit b7477d6

Browse files
added shortcut to create new folder
1 parent ced6c98 commit b7477d6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

documentation/FEATURES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ $$
112112
|---------------|-----|--------|
113113
| `Ctrl+S` | `Cmd+S` | Save note |
114114
| `Ctrl+Alt+N` | `Cmd+Option+N` | New note |
115+
| `Ctrl+Alt+F` | `Cmd+Option+F` | New folder |
115116
| `Ctrl+Z` | `Cmd+Z` | Undo |
116117
| `Ctrl+Y` or `Ctrl+Shift+Z` | `Cmd+Y` or `Cmd+Shift+Z` | Redo |
117118
| `F3` | `F3` | Next search match |

frontend/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ function noteApp() {
176176
this.createNote();
177177
}
178178

179+
// Ctrl/Cmd + Alt + F for new folder
180+
if ((e.ctrlKey || e.metaKey) && e.altKey && e.key === 'f') {
181+
e.preventDefault();
182+
this.createFolder();
183+
}
184+
179185
// Ctrl/Cmd + Z for undo
180186
if ((e.ctrlKey || e.metaKey) && !e.shiftKey && e.key === 'z') {
181187
e.preventDefault();

0 commit comments

Comments
 (0)