VCS History keyboard shortcut
I used to use the H shortcut a lot. It was a very handy way of displaying the Git history for a file.
I noticed that in the latest PhpStorm version (2024.2) this shortcut became more “greedy”. To the point that whenever I type in the terminal anything containing the letter h while a file that is under VCS is active, the history tab gets triggered. The only way to type an “h” in the terminal is to select a file that is not under VCS.
请先登录再写评论。
1. What OS do you use? If it's Linux, please specify your Linux version, Window manager (Gnome, KDE, etc), and if you have Wayland or x11 (`echo $XDG_SESSION_TYPE`).
2. Do you use any Virtual machine or WSL?
3. Do you connect to your IDE remotely, or is it just a physical machine in front of you?
Sure, here it is:
1. Ubuntu 22.04.4, Gnome, x11.
2. No virtual machines or WSLs.
3. Running the IDE directly on a physical machine.
1. Did I understand correctly, that you used not `Ctrl+H` or `Meta+H`, just `H` as a shortcut?
2. Please share your settings (`File | Manage settings | Export settings`). Upload to https://uploads.jetbrains.com/ and share upload ID with us.
I thought that the `H` shortcut (not `Ctrl+H` or `Meta+H`) was the default one for “Keymap[GNOME] > Version Control Systems > Show History” (or at least used to be at some point). But I see that I have copied the default keymap to make some changes and although I can't remember adding this particular shortcut, I can't exclude it either.
But maybe whether it is default or not is not that important. I thought that since I could press `H` when editing a file with the expected result (the letter h appears, and the VCS history is not triggered) there is no reason why when I press `H` while typing in the terminal the result should be different (the letter h does not appear, the VCS history is triggered).
If anything it should be the other way round. When I'm editing a file I'm in the context of that particular file (so in theory I could be able to display its VCS history). When I'm typing in the terminal usually I'm not in the context of any file. Just to clarify: I'm not advocating for it to work this way. It would be more logical, but even a bigger nuisance.
Let me know if this makes any sense before we proceed with the settings upload.
Krzysztof Wolowski, using letters as shortcuts is a thin ice. Though generally, it's possible (we have a VIM plugin), we don't have any default keymaps with letters as shortcuts because this can often lead to a conflict. Apparently, it's your case.
Is there any specific reason why you prefer “H” as a shortcut? Do you have more similar shortcuts?
The reason was probably ease of use. Pressing just H is simpler than pressing Ctrl + H or Alt + H.
And since:
- the option to add single-key shortcuts was available,
- it worked without issues up to this point,
the choice was understandable.
I was able to reproduce this issue, and it's probably caused by the major changes inside the Terminal subsystem. Did you notice “h” being “greedy” outside the terminal?