mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-03 16:41:27 +01:00
commands: one grammar for !, merged commands, a settings sheet, two-level help
A `!` now means force or everything and nothing else (`:w!`, `:search!`, `:export!`, `:logout!`). A command that did a second thing behind its bang takes a word for it instead: `:space new|name|rm`, `:list name|rm`, `:task [add]|edit`, `:upload seal`, `:import zip [/]`. `:card` while reading a document makes a card about it, so `:card!` is gone. Merged: `:export` downloads what has focus, a file as it is or a document as markdown (`:download` folded in); `:share [off|new]` replaces `:unshare` and `:link`, and the list's `s` and `y` give way to it and the info sheet; `:noh` replaces `:clear`; `:vault [unlock|lock|passwd]` replaces `:unlock`, `:lock` and `:passwd`; Esc in the list puts down what `m` picked up before it closes the document, replacing `:unmark`. The old spellings run as their new lines for one release through a table in commands.ts; help and Tab leave them out, and the wiki lists them. A settings sheet (`,` or `:settings`) holds the options, the vault, the backup, the signed-in browsers, ssh keys and capture tokens. Each row runs the command a line would. Bare `:set`, `:vault`, `:backup`, `:sessions`, `:sshkey` and `:token` open it at their part. `?` shows the keys and commands to start with, flagged in the keymap and the command table; a second `?` (or `:help all`) shows all of them, and a filter always searches all of them. Help rows are keyed by key and description, as two contexts can share a label.
This commit is contained in:
1 parent
d8e72c688d
commit
7f8d625a8d
34 files changed
+799
-457
No files matched your search
@@ -36,7 +36,7 @@ restore can be undone the same way.
|
||||
|
||||
## The trash
|
||||
|
||||
A delete is not final. `x`, `dd`, `:delete`, `:rmspace` and an `rm` over the
|
||||
A delete is not final. `x`, `dd`, `:delete`, `:space rm` and an `rm` over the
|
||||
mount put what they delete in the trash, with everything inside it.
|
||||
|
||||
- `u` puts the last delete back where it was: the same folder, the same name,
|
||||
@@ -75,8 +75,8 @@ sealed files opened.
|
||||
- `:import` picks a folder and uploads it into the one you are in. Directories
|
||||
become folders, `.md` and `.markdown` files become documents (named by their
|
||||
first heading), and anything else becomes a file.
|
||||
- `:import!` does the same with a zip.
|
||||
- `:import! /` pours an `:export!` back in at the root. Each directory becomes a
|
||||
- `:import zip` does the same with a zip.
|
||||
- `:import zip /` pours an `:export!` back in at the root. Each directory becomes a
|
||||
space again, or goes into the space already there by that name, and with
|
||||
`.workspace.json` the dates, names, boards and cards come back as they were.
|
||||
|
||||
|
||||
Reference in new issue
Block a user