For example in the default Tab Context.sublime-menu, New File option has a Cmd+N hotkey visible, is it possible to have those printed out for custom context menus? Simply adding commands that have keys assigned didn’t work.
Thanks!
Is it possible to show hotkeys for context menu items?
kritskiy
#1
0 Likes
kingkeith
#2
most likely this is related to how the tab context menu uses the group
and index
args to tell the underlying command which tab/view the menu entry should be executed for. Because the key binding defined doesn’t have the same arguments, ST doesn’t show the keybinding as it is for the same command but with different arguments, which could have wildly different functionality.
I think even if you were to add the { "group": -1, "index": -1 }
args to the keybinding, as the args are changed from -1
to the relevant tab group and tab index at the time the context menu is displayed, it wouldn’t show the keybinding. So I think the answer is, that it is currently not possible.
0 Likes