You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e65bae5
Browse filesBrowse the repository at this point in the historyBrowse files
Feat(sidebar): the Delete key moves the sidebar's note to the Trash (#1040)
Mod+Backspace and Vim's `x` were the only keys that did this, and neither is
what someone on Windows or Linux reaches for first. A bare Delete now does the
same, in either mode: one confirm, or one confirm for the whole selection when
the row is part of it. Held down, it still asks about one note.
Vim mode off is fine here because it never acts without asking, the same call as
Delete on database rows. Unbinding Move sidebar note to Trash means no key
trashes from here, so it takes Delete with it. Delete with a modifier is left
alone, and in the editor Delete still deletes a character.
'With the sidebar focused, `Mod+Backspace` (⌘⌫ on macOS, Ctrl+Backspace on Windows and Linux) moves the note under the sidebar cursor to the Trash, after the same confirm Move Note to Trash shows; in Vim mode `x` does the same. When that note is part of a multi-selection, the whole selection goes, with one confirm (“Move 3 notes to Trash?”). Escape on the confirm leaves everything as it was, and after the move the cursor sits on the row that took the note’s place, still in the sidebar. A folder is not trashed this way, since deleting a folder takes everything inside and cannot be undone: delete it from its menu (`m`, or right-click). The palette’s Move Note to Trash and Move Note to Archive, and any key you gave them, follow the sidebar the same way: with the sidebar focused and its cursor on a note, they act on that note (or the selection it is in) rather than the note open in the editor. Rebind the chord as Move sidebar note to Trash (`nav.sidebarTrash`) under Settings → Keymap, or unbind it; `x` is Delete selected result (`nav.delete`).'
207
+
'With the sidebar focused, `Mod+Backspace` (⌘⌫ on macOS, Ctrl+Backspace on Windows and Linux) moves the note under the sidebar cursor to the Trash, after the same confirm Move Note to Trash shows; the Delete key does the same, and in Vim mode so does `x`. When that note is part of a multi-selection, the whole selection goes, with one confirm (“Move 3 notes to Trash?”). Escape on the confirm leaves everything as it was, and after the move the cursor sits on the row that took the note’s place, still in the sidebar. A folder is not trashed this way, since deleting a folder takes everything inside and cannot be undone: delete it from its menu (`m`, or right-click). The palette’s Move Note to Trash and Move Note to Archive, and any key you gave them, follow the sidebar the same way: with the sidebar focused and its cursor on a note, they act on that note (or the selection it is in) rather than the note open in the editor. Rebind the chord as Move sidebar note to Trash (`nav.sidebarTrash`) under Settings → Keymap, or unbind it; `x` is Delete selected result (`nav.delete`).'
{keys: 'm',action: 'Open context menu',detail: 'Open the right-click menu for the selected sidebar or note-list row, including move, archive, trash, floating-window, and reveal actions where they apply.'},
786
786
{keys: 'x',action: 'Move to Trash',detail: 'Move the note under the cursor to the Trash after a confirm, or the whole multi-selection when that note is part of it. The cursor stays in the sidebar, on the row that took the note’s place. Folders are left alone: delete one from its menu (`m`).'},
787
-
{keys: 'Mod+Backspace',action: 'Move to Trash, Vim on or off',detail: 'The same as `x`, with Vim mode on or off: ⌘⌫ on macOS, Ctrl+Backspace on Windows and Linux. Rebind or unbind it as Move sidebar note to Trash under Settings → Keymap.'},
787
+
{keys: 'Mod+Backspace / Delete',action: 'Move to Trash, Vim on or off',detail: 'The same as `x`, with Vim mode on or off: ⌘⌫ on macOS, Ctrl+Backspace on Windows and Linux, and the Delete key everywhere. Rebind the chord or unbind both as Move sidebar note to Trash under Settings → Keymap.'},
788
788
{keys: 'Esc',action: 'Return to editor',detail: 'Drop back into the main editor focus path.'}
"With the sidebar focused, move the note under its cursor to the Trash after a confirm, or every selected note when the selection includes that row. Works with Vim mode on or off.",
1480
+
"With the sidebar focused, move the note under its cursor to the Trash after a confirm, or every selected note when the selection includes that row. Works with Vim mode on or off. The Delete key does the same; unbinding this turns both off.",
0 commit comments