[TxMt] Re: Letters to disambiguate keyboard shortcuts

Jacob Carlborg doob at me.com
Sun Oct 25 18:16:14 UTC 2015


On 2015-10-25 15:16, Allan Odgaard wrote:

> Pressing A-Z already works to select the first item in the menu starting
> with that letter.

That does not seem to work properly. Pressing ⌘Y and then B will select 
"Branches" instead of "Browse Annotated File". For P it will select "Pop 
Stash" instead of "Pull".

One minor disadvantage of the current way that the letters work is that 
it will only select the command, not execute it.

> The Git bundle was developed a little different, and I think the goal
> there was to put the most commonly used items near the top, so that
> these would be reachable with the number keys.

Understandable. It just happens that I use a couple of commands that do 
not have an associated number more often a couple of the commands that 
do have numbers.

> Personally I wouldn’t be against re-arranging the Git menu so that it
> would work better with letter keys, but I fear it would upset a lot of
> people who are e.g. used to ⌘Y + 2 for commit, etc.

If it would be possible to add keyboard shortcuts for the menu that is 
not dependent on the order, the existing order could be preserved for 
backwards compatibility. That is, it would be possible to use both 
numbers and letters.

> The way it works is that the SCM bundle has a proxy item bound to ⌘Y
> (not the Git bundle!).

Aha, that's were it's hiding :)

-- 
/Jacob Carlborg



More information about the textmate mailing list