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:19:39 -04:00
parent 9830ab84a1
commit a22e09b6a1
9 changed files with 123 additions and 123 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()