mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-03 16:41:27 +01:00
`↑` / `↓` (and `Ctrl-p` / `Ctrl-n`) walk the lines run before, newest first, narrowed by what is already typed: `:se` then `↑` finds the last `:set …`. Commands and `/` searches keep separate histories in localStorage, a hundred lines each. Passwords never get here: they are typed into the vault prompt, not the line. Tab moves to the next match and Shift-Tab to the one before, with the match marked in the list. Once a name is complete, Tab completes the argument: the folders listed here plus `..` and `/` for `:cd` and `:mv`, space names for `:space` and `:rmspace`, the options of `:set`, `:due`'s usual dates and `:backup`'s subcommands. `:mv /` now moves to the root of the space, as `:cd /` goes there. While a search is live, `Ctrl-n` / `Ctrl-p` (and Tab) move the list cursor through the results without leaving the line, and Enter opens the one lit rather than only closing the line. Ctrl-P's search does the same. After a command the focus goes back where it was, or to the editor while writing, instead of being left on <body> for the window handler to catch.