5digits/dactyl

[plugin] :tabmattach command (attaches matching tabs to another window)

alphapapa opened this issue · 0 comments

I often find myself wanting to move multiple tabs from a single web site to another window, but doing it tab-by-tab is cumbersome, so I hacked up this plugin: https://github.com/alphapapa/pentadactyl-tabmattach/blob/master/tabmattach.js It allows matching by tab name, so for example, if there are several GitHub tabs open, you can do :tabmattach github 1 to move them all to window 1.

  • The command name is kind of silly, a combination of "match" and "attach", but it gets the point across.
  • It would be nice to match windows by name instead of number. This does complete by window name, but the user must press tab to complete the name into the window number. It would be nice if that could work without having to press tab if the match is unambiguous.
  • It would be even better to make the :tabattach command handle matching multiple tabs with a string, but I'm not much of a JS hacker, so this is at least a start.