Hi,
I am trying to create a shortcut for the Navigate to Commit
command but I don’t know how that command is called. Does anyone know? Also how can I find out? It looks that Ctrl + ` does not bring a console.
Cheers
Hi,
I am trying to create a shortcut for the Navigate to Commit
command but I don’t know how that command is called. Does anyone know? Also how can I find out? It looks that Ctrl + ` does not bring a console.
Cheers
Hi @bempelise,
The command you’re looking for is called navigate_to_commit
.
Which takes a commit ID (partial or full) using the commit
parameter.
Kind regards,
- Dylan
I see that this immediately runs the command with any argument that is given to it. I would like it to get me to the point where I am about to give the hash. Is this possible?
A Ctrl+G
(to go to the navigate to commit prompt) and Ctrl+V
to paste the hash would be great.
Now I have to do
Ctrl+P
type ‘navigate commit’
Ctrl+V
Hi @bempelise,
It should pop up with a dialog to enter the commit ID if none has been provided. This sounds like a potential bug. I’ll be investigating this further, and will get back to you.
Thanks,
- Dylan
Hi @bempelise,
Just following up on my previous comment. As it’s an interactive command (we’re relying on the command palette), you’ll want to use the following instead:
{
"keys": ["ctrl+g"],
"command": "show_command_palette",
"args": { "command": "navigate_to_commit" }
},
Let me know if this works for you
Thanks,
- Dylan