Add quick-add mode for categories

N (from anywhere) or n (in Category panel) opens an inline prompt
to add categories one after another without typing :add-cat each time.

- Yellow border + prompt distinguishes it from item-add (green)
- Enter / Tab adds the category and clears the buffer, staying open
- Esc returns to the category list
- Cursor automatically moves to the newly added category

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ed L
2026-03-21 23:03:45 -07:00
parent 4f322e53cd
commit c9d1313072
5 changed files with 311 additions and 19 deletions

View File

@ -51,7 +51,8 @@ impl Widget for HelpWidget {
("", "", norm),
("Panels", "", head),
(" F", "Toggle Formula panel (n:new d:del)", key),
(" C", "Toggle Category panel (Space:cycle-axis)", key),
(" C", "Toggle Category panel (n:new-cat a:add-items)", key),
(" N", "New category quick-add (from anywhere)", key),
(" V", "Toggle View panel (n:new d:del Enter:switch)", key),
(" Tab", "Focus next open panel", key),
("", "", norm),