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
@@ -27,14 +27,20 @@ curl -H "Authorization: Bearer nwc_…" -H 'content-type: application/json' \
|
||||
| field | meaning |
|
||||
| --- | --- |
|
||||
| `text` | what to write down; for a card, the first line is the title and the rest its notes |
|
||||
| `to` | `"card"` (the default) or `"diary"` |
|
||||
| `space` | for a card, the slug of the space whose inbox it goes in |
|
||||
| `to` | `"card"` (the default), `"diary"`, `"note"` or `"document"` |
|
||||
| `space` | for a card, the slug of the space whose inbox it goes in; for a document, the space its title is looked for in first |
|
||||
| `document` | for `"document"`, which one, as a link names it: `Plan`, `[[Plan]]` or `/n/work/plan` |
|
||||
| `note` | the id of the scratch note the text came from; it is dropped once the text has landed |
|
||||
|
||||
- `"to": "card"` puts a card in the inbox of the space named by `space`, or else
|
||||
of the first space that has a board.
|
||||
- `"to": "diary"` adds `- 14:05 call the bank` to the end of today's entry, in
|
||||
`WORKSPACE_TIMEZONE`, and starts the entry from `templates/day` when there is
|
||||
none yet.
|
||||
- `"to": "note"` puts it on the scratchpad, for when it is not clear yet where
|
||||
it belongs.
|
||||
- `"to": "document"` adds it as a paragraph at the end of a document. The text
|
||||
it replaces is kept in the document's history, as a save keeps it.
|
||||
|
||||
The answer says where it went: `{"to":"card","id":7,"where":"work/backlog"}`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user