Gruntfuggly / todo-tree

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

[Feature Request] Hide ruler highlights in source control editor #670

Closed lonix1 closed 1 year ago

lonix1 commented 1 year ago

When the source control editor is showing a diff view, the ruler on the right also shows all the document's todo items. That makes it hard to tell at a glance which are the changes and which are the todos.

It would be helpful to disable those ruler todo items, only for the source control editor.

Gruntfuggly commented 1 year ago

Bizarrely, when you click in the right hand window of the diff view, the scheme is 'file' which shows TODOs by default. The left hand window scheme is 'git' which doesn't show TODOs (by default).

So you can do the opposite - add 'git' to the todo-tree.general.schemes setting to see the ruler makers in both, but not disable them for the right hand side.

Sadly, there doesn't seem to be any way to do anything with the right hand ruler because it's just a file like the original source file.

Your best best is probably go just disable the ruler markers altogether (set rulerLane to none in the default highlight settings).

Gruntfuggly commented 1 year ago

I don't think there is much more I can do to fix this, so I'm going to close this now. If anybody can suggest anything, I'm happy to re-open.