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:
parent
9830ab84a1
commit
a22e09b6a1
9 changed files with 123 additions and 123 deletions
|
|
@ -230,7 +230,7 @@ describe('filter', function()
|
|||
end
|
||||
local hidden_ids = { [hidden_task.id] = true }
|
||||
local lines = {
|
||||
'/1/- [ ] Visible task',
|
||||
'/1/[ ] Visible task',
|
||||
}
|
||||
diff.apply(lines, s, hidden_ids)
|
||||
s:load()
|
||||
|
|
@ -254,7 +254,7 @@ describe('filter', function()
|
|||
end
|
||||
end
|
||||
local lines = {
|
||||
'/' .. keep_task.id .. '/- [ ] Keep task',
|
||||
'/' .. keep_task.id .. '/[ ] Keep task',
|
||||
}
|
||||
diff.apply(lines, s, {})
|
||||
s:load()
|
||||
|
|
@ -270,7 +270,7 @@ describe('filter', function()
|
|||
local task = tasks[1]
|
||||
local lines = {
|
||||
'FILTER: cat:Work',
|
||||
'/' .. task.id .. '/- [ ] My task',
|
||||
'/' .. task.id .. '/[ ] My task',
|
||||
}
|
||||
diff.apply(lines, s, {})
|
||||
s:load()
|
||||
|
|
@ -281,7 +281,7 @@ describe('filter', function()
|
|||
it('parse_buffer skips FILTER: header line', function()
|
||||
local lines = {
|
||||
'FILTER: overdue',
|
||||
'/1/- [ ] A task',
|
||||
'/1/[ ] A task',
|
||||
}
|
||||
local result = diff.parse_buffer(lines)
|
||||
assert.are.equal(1, #result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue