magit-todos icon indicating copy to clipboard operation
magit-todos copied to clipboard

Add a magit-todos-follow-mode

Open maxc01 opened this issue 5 years ago • 5 comments

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.

maxc01 avatar Jul 05 '19 19:07 maxc01

Hi,

Thanks, this looks like a useful feature. I'll post a few comments as a review.

alphapapa avatar Jul 05 '19 22:07 alphapapa

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.

maxc01 avatar Jul 08 '19 12:07 maxc01

Note that I just pushed some new code to master, so please rebase it.

alphapapa avatar Jul 09 '19 06:07 alphapapa

@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. :)

alphapapa avatar Aug 11 '21 04:08 alphapapa

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.

maxc01 avatar Aug 16 '21 22:08 maxc01