mhutchie / vscode-git-graph

View a Git Graph of your repository in Visual Studio Code, and easily perform Git actions from the graph.
https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph
Other
1.89k stars 243 forks source link

Git Graph key binding returns an error in other windows #816

Open jonschz opened 2 months ago

jonschz commented 2 months ago

Hello everyone,

I am not sure if the following is a bug: First I configure a key binding for git-graph.openFile, let's say F4. Now, when I press F4 in an editor that does not belong to Git Graph, I get an error message. Preferably, I would like to use F4 for other functions in other windows (e.g. git.openFile).

If this behaviour is intended, is there a way to define a When statement such that the key binding is only active in Git Graph windows? I have not found any fitting custom key binding contexts in the source code.