chromix icon indicating copy to clipboard operation
chromix copied to clipboard

usage: how to cycle through all tabs

Open Gunstick opened this issue 9 years ago • 2 comments

I want to cycle through all tabs, but cannot figure out if there is an equivalent of CTRL+TAB. Currently I use xdotool to send keyboard events, but this does not work well with screenlock.

Gunstick avatar Jan 08 '16 15:01 Gunstick

Assuming Chrome... Have you tried ctrl-1, ctrl-2, etc.?

packetgeek avatar Aug 30 '17 23:08 packetgeek

I think you'll have to write a little script of your own to do that.

This works...

chromix = require("chromix-too")().chromix

chromix "chrome.tabs.getSelected", {}, (tab) ->
  chromix "chrome.tabs.query", {}, {currentWindow: true}, (tabs) ->
    index = (tab.index + 1) % tabs.length
    chromix "chrome.tabs.update", {}, tabs[index].id, {active: true}, ->

smblott-github avatar Sep 14 '17 09:09 smblott-github