magit-todos
magit-todos copied to clipboard
Add a magit-todos-follow-mode
When in magit-todos-mode, we can use n, C-n, or <down>
to directly navigate to the associated file of the next todo item and use p, C-p, or <up>
to directly navigate to the associated file of the previous todo item.
Hi,
Thanks, this looks like a useful feature. I'll post a few comments as a review.
B.t.w, it is not easy for human eyes to follow the line when performing magit-todos-peek-at-item
, especially when navigating todos fast using magit-todos-next-todo
. It seems better to highlight the peeked line, or use a overlay, or just center the popped buffer.
Note that I just pushed some new code to master, so please rebase it.
@maxc01 Looking at this again, and having learned how well the M-g M-n
keybinding works in, e.g. Occur and Xref buffers, I wonder if that might be a better way to implement this feature. What do you think? If you're still interested, that is. :)
Hi @alphapapa , sorry for the late reply. Current I am using rg.el and have defined a todo search in the current project. It supports follow mode out-of-the-box. It lacks the fancy interface provided by your package, but it works for me fairly well.