Problem: pressing ! re-sorts the view so the toggled task moves to the top of its category, but the cursor stays on the original line number and lands on a different task. Solution: after buffer.render(), iterate buffer.meta() to find the new line number for the toggled task's id and call nvim_win_set_cursor to follow it. |
||
|---|---|---|
| .. | ||
| sync | ||
| buffer.lua | ||
| config.lua | ||
| diff.lua | ||
| health.lua | ||
| init.lua | ||
| parse.lua | ||
| store.lua | ||
| views.lua | ||