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
Fix(notes): the move prompt speaks the sidebar's language (#844)
On a vault whose notes live at the root, `:mv` (and Move... from the
context menu, the note list, the Archive view, the palette and a
multi-selection) opened on `inbox` and offered `inbox/Areas`,
`inbox/Projects`, folders the vault does not have. The prompt spoke in
the bucket's terms: a destination had to start with `inbox` or `archive`,
suggestions were built as `<bucket>/<subpath>`, and the initial value came
from the path's first segment, which on a root vault is a real folder
name and so fell back to `inbox`. Every folder of the notes area is filed
under the inbox bucket whatever the layout, so the words were right for
the host and wrong for the person reading them.
Now the prompt speaks the way the sidebar does. Destinations are folders
of the notes area as it shows them (`Areas`, `Work/Research`, nothing in
front), empty for the notes root, labelled "Vault root" when the notes
live there and with the inbox's label otherwise, and `archive/...` for the
Archive, by that name even when the archive folder is called something
else on disk. The prompt opens on the note's current folder in that
spelling, an empty field moves to the root, and the reserved names
(Quick Notes, Trash, their directory names) are refused with one message
instead of being turned into folders. The older `inbox/Work` spelling the
manual taught still lands in Work; on a root vault too, unless a real
folder named `inbox` sits at the root, in which case it means that
folder. Folder and database moves use the same vocabulary.
`moveNoteVocabulary(settings, labels, folders)` carries these facts, every
caller passes it, and only null is the Cancel now that empty is an
answer. The manual's three mentions and the website were reworded.
'Use the note context menu, search for `move` or `mv` in the command palette, or run `:move` or `:mv`. With no argument, ZenNotes opens a folder picker; with a target like `archive/Reference` or `inbox/Work`, it moves the note directly.'
132
+
'Use the note context menu, search for `move` or `mv` in the command palette, or run `:move` or `:mv`. With no argument, ZenNotes opens a folder picker that speaks the sidebar\'s language: folders of your notes area as you see them there (`Work/Research`, no `inbox/` in front, and empty for the notes root, which is Inbox or the vault root depending on your Primary notes location), plus `archive/…` for the Archive. With a target like `:mv Work/Research` or `:mv archive/Reference`, it moves the note directly; `inbox/Work` still works on an Inbox vault.'
'Use the note context menu, search `move` or `mv` in the command palette, or run `:move` / `:mv` from the ex line to move the active note into Inbox or Archive. With no argument, the command opens the folder picker; with a target like `:mv archive/Reference` or `:move inbox/Work`, it moves the note directly. The move prompt autocompletes folder paths, so you can type and Tab through existing destinations instead of dragging. “Duplicate” (palette or context menu) copies a note in place, appending “ (copy)” to the name.'
330
+
'Use the note context menu, search `move` or `mv` in the command palette, or run `:move` / `:mv` from the ex line to move the active note into a folder of your notes area or the Archive. With no argument, the command opens the folder picker; with a target like `:mv Work/Research` or `:mv archive/Reference`, it moves the note directly (`:move inbox/Work` still works on an Inbox vault). The picker spells destinations the way the sidebar does: no `inbox/` in front, empty for the notes root (Inbox, or the vault root when your notes live there), `archive/…` for the Archive, and it autocompletes folder paths, so you can type and Tab through existing destinations instead of dragging. “Duplicate” (palette or context menu) copies a note in place, appending “ (copy)” to the name.'
detail: 'Both names are supported explicitly. Without an argument they open the move prompt; with a path like `archive/Reference` or `inbox/Work` they move the active note there directly.'
859
+
detail: 'Both names are supported explicitly. Without an argument they open the move prompt; with a path like `Work/Research` (a folder of your notes area, as the sidebar shows it) or `archive/Reference` they move the active note there directly. `inbox/Work` still works on an Inbox vault.'
0 commit comments