ActiveState Powered by ActiveState

ActiveState Community


Macro set to implement Mac-like tab keybindings

Posted by jeffg on 2008-03-27 08:02
OS: All / Any

Attached is a set of macros that implements and extremely hacky version of the common Mac convention of tab switching using Cmd+$nbr, where $nbr is a number key on your keyboard. I wrote this a while ago because I really wanted this behavior in Komodo to work the same way it does in Firefox and iTerm.

Why is it hacky? There are a few gotchas:

  • the simplest way to get it to work ( for the ten minutes I spent working on it ) was to create 11 macros: 1 generic function and 10 stubs that each are bound to a different key.
  • If you use split view this behaves oddly; instead of cycling through each tab group as a container, the Macro just goes Left-to-right for the first ten tabs.
  • There is proably some way to get the tabs out of sync by moving them.
  • It doesn't go to 11.

Hopefully someone finds this useful/interesting. Patches welcome! I'd eventually like to see this implemented more elegantly in an extension, or even in Komodo itself?

AttachmentSize
Tabs.kpz4.4 KB
-->