mirror of
https://github.com/narrrl/narl-workspace.git
synced 2026-11-03 16:41:27 +01:00
scratch: the scratchpad is the inbox, with ways out and a search
A note now leaves the scratchpad by becoming something else: `K` keeps it as a document, as before; `C` makes it a card where `:card` would put one, the first line its title; `A` opens `:append` with the document on screen filled in, Tab completing any other title, and puts the note at its end. `/api/capture` takes `to: "note"` and `to: "document"` (named as a link names it), and `note`, the scratch note the text came from, dropped once the text has landed. Appending keeps the revision before it and indexes links and media, as a save does. Migration 0028 adds `scratch_fts`; `GET /api/scratch?q=` searches it, and `/` lists note hits under "notes" after the cards, Enter lowering the drawer at the note. The `c` capture line cycles its target with Tab: a card, a note, or a timed line in today's entry, which `:today <text>` now writes.
This commit is contained in:
1 parent
ccc91028e7
commit
2233fa41a6
20 files changed
+561
-84
No files matched your search
@@ -67,6 +67,8 @@ a body and the time it was last touched, newest on top.
|
||||
| `o` | a new note, written straight away |
|
||||
| `Enter`, `e`, `i` | write the note under the cursor |
|
||||
| `K` | keep it: a document in the folder being browsed (`:keep [title]`) |
|
||||
| `C` | make it a card, where `:card` puts one: the first line its title, the rest its description |
|
||||
| `A` | put it at the end of a document (`:append [document]`) |
|
||||
| `dd` | drop the note (asks y/N) |
|
||||
| `Q`, `q`, `Esc` | raise the scratchpad |
|
||||
|
||||
@@ -81,6 +83,15 @@ takes it off the scratchpad. Its first line is the title — `# Plan` or plain
|
||||
`Plan` alike — and the rest the body; `:keep <title>` names it instead and
|
||||
keeps every line. The document opens, and the drawer goes up.
|
||||
|
||||
`C` makes the note a card on the list under the board's cursor, or in this
|
||||
space's inbox. `A` opens `:append` with the document on screen filled in;
|
||||
change it to any document's title — `Tab` completes it — and `Enter` puts the
|
||||
note at its end, as a paragraph of its own. The document's text before is kept
|
||||
in its history. Either way the note leaves the scratchpad, as it does with `K`.
|
||||
|
||||
`/` finds notes too, listed under `notes` after the documents and the cards;
|
||||
`Enter` on one lowers the scratchpad with it under the cursor.
|
||||
|
||||
The notes are in the backup, and an export of the whole workspace carries
|
||||
them in `.workspace.json`, so `:import! /` puts them back.
|
||||
|
||||
|
||||
Reference in new issue
Block a user