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

@ -263,8 +263,8 @@ function M.category_view(tasks)
for _, task in ipairs(all) do
local prefix = '/' .. task.id .. '/'
local state = state_char(task)
local line = prefix .. '- [' .. state .. '] ' .. task.description
local prefix_len = #prefix + #('- [' .. state .. '] ')
local line = prefix .. '[' .. state .. '] ' .. task.description
local prefix_len = #prefix + #('[' .. state .. '] ')
table.insert(lines, line)
table.insert(meta, {
type = 'task',
@ -320,8 +320,8 @@ function M.priority_view(tasks)
for _, task in ipairs(all) do
local prefix = '/' .. task.id .. '/'
local state = state_char(task)
local line = prefix .. '- [' .. state .. '] ' .. task.description
local prefix_len = #prefix + #('- [' .. state .. '] ')
local line = prefix .. '[' .. state .. '] ' .. task.description
local prefix_len = #prefix + #('[' .. state .. '] ')
table.insert(lines, line)
table.insert(meta, {
type = 'task',