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. |
||
|---|---|---|
| .. | ||
| pending | ||