I'd like to redefine the shortcut for 'comment/uncomment' from 'SHIFT+APPLE+/' to 'CTRL+§'.
Of course I could copy the command (code) from the source bundle, but I'd prefer to only call the existing command from my bundle. Is this possible? Or is there any other easy way?
Thanks and cheers, Hans-Peter
On 8 Feb 2009, at 19:40, Hans-Peter Suter wrote:
I'd like to redefine the shortcut for 'comment/uncomment' from 'SHIFT+APPLE+/' to 'CTRL+§'.
Of course I could copy the command (code) from the source bundle, but I'd prefer to only call the existing command from my bundle. Is this possible? Or is there any other easy way?
Very easy, go to Bundles → Commands and locate the command (Source bundle), then click the key equivalent field and press ⌃§.
Allan Odgaard <mailinglist@...> writes:
On 8 Feb 2009, at 19:40, Hans-Peter Suter wrote:
I'd like to redefine the shortcut for 'comment/uncomment' from 'SHIFT+APPLE+/' to 'CTRL+§'. [snip]
Very easy, go to Bundles → Commands and locate the command (Source bundle), then click the key equivalent field and press ⌃§.
Sorry I was not clear: I didn't want to redefine the shortcut globally, but only for my bundle. (But maybe it's not such a good idea to make bundle specific redefinitions and for the moment it works with the copied source command). Thanks anyway!
Hans-Peter
On 10 Feb 2009, at 11:21, Hans-Peter wrote:
Sorry I was not clear: I didn't want to redefine the shortcut globally, but only for my bundle. (But maybe it's not such a good idea to make bundle specific redefinitions and for the moment it works with the copied source command).
You can easily change key bindings for certain scopes using the scope selector, but yeah, it seems like a bad idea to take a standard (global) key and redefine it only for a certain language/scope.