Couldn’t you query the system for the resulting action for a given key press instead of trying to replicate the logic? At worst, request a list of the active key equivalents, and search through the results.
I think that CheatSheet manages it somehow... http://www.mediaatelier.com/CheatSheet/
On Jan 9, 2014, at 10:39 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 8 Jan 2014, at 21:57, boissonnfive wrote:
I use ⌃ ⌘ T to look into the bundles, but what if the key equivalent is used in TM itself ? […]
For now there is no way to search the key equivalents assigned to non-bundle item actions, but it is a common request.
It’s a little tricky because we rely on the system to resolve non-bundle item key equivalents and the exact algorithm used (by the system) is complex (and would have to be replicated by TextMate).
Furthermore, is there a way to record the settings in the "Select Bundle Item dialog" ? If I previously set «Key equivalent» instead of «Title», I would like to have «Key equivalent» selected the next time I call the dialog. Idem for «Current Scope» and «Actions».
The settings are not remembered. However, the buttons can be activated using ⌘1-n for the i’th button.
For example to switch to key equivalent search press ⌘4.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate