dotfiles
bugabingas dorkfiles
owned by bugabinga
docs(cmdline): add feature plan
d1bbf4a7b5c7fc7eeac9bcb9c296b7ac20007ba5
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (1)
neovim/lua/bugabinga/cmdline/PLAN.md
Addednew file mode 100644 1 +#
Cmdline Feature Plan 5 +###
1. Per-format border/icon colors 7 +- [ ] Add highlight groups: `CmdlineBorderSearch`, `CmdlineBorderLua`,
9 +- [ ] In `render.lua`, set `winhighlight` based on `fmt.type`
10 +- [ ] Apply icon highlight via extmark instead of plain text
11 +- Files: `render.lua`, `nugu/init.lua`
13 +###
2. Separate search direction icons 15 +- [ ] Add `search_up` icon to `std/icon.lua`
16 +- [ ] Use it in `format.lua` when `firstc == '?'`
17 +- Files: `std/icon.lua`, `format.lua`
19 +###
3. Additional type detection (!/help/=) 21 +- [ ] Add patterns for `:!` (filter/bash), `:help`, `:=` (calculator)
22 +- [ ] Add icons for each type
23 +- Files: `format.lua`, `std/icon.lua`
25 +###
4. Virtual-text icon rendering 27 +- [ ] Replace `icon .. ' ' .. text` with extmark-based icon
28 +- [ ] Simplify cursor position math (no more icon_bytes offset)
29 +- [ ] Remove trailing space hack if no longer needed
30 +- Files: `render.lua`
34 +###
5. Syntax highlighting in cmdline 36 +- [ ] Add `lang` field to format table entries (`vim`, `lua`, `bash`, `regex`)
37 +- [ ] After writing buffer text, apply treesitter highlights to command region
38 +- [ ] Fallback to vim syntax if no treesitter parser
39 +- Files: `render.lua`, new `highlight.lua` or inline
41 +###
6. Popupmenu match highlighting 43 +- [ ] Compute typed prefix from cmdline text
44 +- [ ] In `format_item()`, split text into matched/unmatched portions
45 +- [ ] Apply `PmenuMatch` highlight to matched portion via extmarks
46 +- Files: `popupmenu.lua`
48 +###
7. Kind-specific popupmenu highlights 50 +- [ ] Define `CompletionItemKind*` highlight groups
51 +- [ ] Apply per-kind highlight to icon portion in popupmenu
52 +- Files: `popupmenu.lua`, `nugu/init.lua`
56 +###
8. Prompt-as-title for input() 58 +- [ ] When `prompt` is short, show as border title instead of inline
59 +- [ ] Reconfigure window border dynamically
60 +- Files: `render.lua`
62 +###
9. Popupmenu scrollbar 64 +- [ ] Create thin scrollbar windows alongside popupmenu
65 +- [ ] Update on scroll
66 +- Files: new `scrollbar.lua` or inline in `popupmenu.lua`