Gruntfuggly / todo-tree

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

Keyboard shortcut to focus/unfocus the TODO tree #824

Open jpmvferreira opened 9 months ago

jpmvferreira commented 9 months ago

Looking at the available keyboard shortcuts, I cannot find any where the TODO tree will be focused if it is currently not focused, opening it if necessary, and will focus the editor if it happens to be focused.

This would be very convenient for a user with a keyboard-focused workflow.

Such a behavior already exists for the file explorer, which can be set with

{
  "key": "ctrl+shift+e",
  "command": "workbench.view.explorer",
  "when": "viewContainer.workbench.view.explorer.enabled"
}

although I don't know how to replicate this behavior in TODO tree.

Would it be possible to create something like that?

NONODOKA commented 6 months ago

+1 I would like this feature.