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

TODO paths aren't relative to the project root

Open chrisetheridge opened this issue 2 years ago • 3 comments

Screenshot 2022-04-25 at 17 03 16

My TODO paths show up like this, which means I'm not able to do the nice path component grouping available via magit-todo. Is there any part of the README that I'm possibly missing?

Additionally, are there any examples of how to add a custom function for grouping items?

chrisetheridge avatar Apr 25 '22 15:04 chrisetheridge

Which scanner backend are you using?

See https://github.com/alphapapa/magit-todos/blob/67fd80c2f10aec4d5b2a24b5d3d53c08cc1f05dc/magit-todos.el#L279 Just define a function that returns a string key for each item, and add the function to that option.

alphapapa avatar Apr 25 '22 22:04 alphapapa

I am using rg. I'll take a look at the magit-todos-group-by, thank you!

chrisetheridge avatar Apr 26 '22 06:04 chrisetheridge

ISTR seeing this path issue before, but I can't find it in a quick search of old issues. It might have something to do with platform or configuration. I'm also using rg, and it doesn't happen to me.

alphapapa avatar Apr 27 '22 17:04 alphapapa

Should be fixed by https://github.com/alphapapa/magit-todos/commit/7e6d6058ad466b7584f93f45b4b42cb7791ac83c.

alphapapa avatar Aug 26 '23 22:08 alphapapa