fix(buffer): conceal in all modes, forge EOL labels, remove dash prefix (#167)

* fix(buffer): keep conceal active in all modes and add `%l` EOL forge labels

Problem: `concealcursor` was missing `i` and `v`, so concealed text
(task IDs, forge tokens) leaked in insert and visual modes. Forge
labels only rendered for the first span when multiple refs existed.

Solution: set `concealcursor = 'nicv'` to keep conceal in all modes.
Add `%l` EOL format specifier that renders all forge spans with
independent highlights. Update default `eol_format` to include `%l`.

* refactor: remove `- ` prefix from task line rendering

Problem: task lines rendered as `- [ ] description` with a redundant
markdown list marker prefix that added visual noise.

Solution: render task lines as `[ ] description` instead. Update all
line generation in `views.lua`, parsing patterns in `buffer.lua`,
`diff.lua`, `textobj.lua`, syntax rules, and corresponding specs.
This commit is contained in:
Barrett Ruth 2026-03-15 13:22:01 -04:00 committed by GitHub
parent 1266eaedd8
commit 98e4abffc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 156 additions and 141 deletions

View file

@ -112,10 +112,10 @@ describe('views', function()
task_line = lines[i]
end
end
assert.are.equal('/1/- [ ] My task', task_line)
assert.are.equal('/1/[ ] My task', task_line)
end)
it('formats priority task lines as /ID/- [!] description', function()
it('formats priority task lines as /ID/[!] description', function()
s:add({ description = 'Important', category = 'Inbox', priority = 1 })
local lines, meta = views.category_view(s:active_tasks())
local task_line
@ -124,7 +124,7 @@ describe('views', function()
task_line = lines[i]
end
end
assert.are.equal('/1/- [!] Important', task_line)
assert.are.equal('/1/[!] Important', task_line)
end)
it('sets LineMeta type=header for header lines with correct category', function()
@ -352,10 +352,10 @@ describe('views', function()
assert.is_true(earlier_row < later_row)
end)
it('formats task lines as /ID/- [ ] description', function()
it('formats task lines as /ID/[ ] description', function()
s:add({ description = 'My task', category = 'Inbox' })
local lines, _ = views.priority_view(s:active_tasks())
assert.are.equal('/1/- [ ] My task', lines[1])
assert.are.equal('/1/[ ] My task', lines[1])
end)
it('sets show_category=true for all task meta entries', function()