Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.4k stars 134 forks source link

Clicking an item in the sidebar displays wrong line #795

Open jakeparis opened 9 months ago

jakeparis commented 9 months ago

When I click an item in the sidebar, it opens the correct file, but jumps to the last cursor location, rather than the line with the TODO

For example, I have this file Vue.app with this on line 375:

// @TODO test that this works

Here's what shows in my sidebar:

Screenshot 2023-09-27 at 8 36 14 PM

And when I click that TODO item in the sidebar, the file opens but the cursor starts at line 78 (or whatever line the cursor was on when the file last closed).