pharmokan

chrome tabs emacs

May 7th, 2020
353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. This way linked below to do it in 1 chromium window and activate tab through shell script works using jq and some wmctrl bash script:
  2.  
  3. https://unix.stackexchange.com/a/520936/282423
  4.  
  5. Question is would the following idea work:
  6.  
  7. Get output of tabs from jq (this is easy)
  8. Push to mini-buffer list of entries of tab title (considered virtual entries since they do not represent actual Xwindow's ?)
  9. Have those entries (mini-buffer virtual entries that represent open tabs) pass data to a shell script that activates browser and switches to tab selected from mini-buffer
  10.  
  11.  
  12.  
  13.  
  14.  
  15. ====
  16.  
  17.  
  18. I don't use chromium but this sounds good. If you can get the list of tabs+windowID and know bring the tab to the front of a chromium window you'll be able to do this.
  19.  
  20. I would do this by making a new helm source and add it to the list of sources here:
  21. helm-taskswitch/helm-taskswitch.el
  22.  
  23. Line 246 in 59f7cb9
  24.  
  25. helm-source-buffers-list
  26. Here is a good example of calling a program to make a list of candidates:
  27. https://github.com/xuchunyang/helm-chrome-control/blob/master/helm-chrome-control.el
Add Comment
Please, Sign In to add comment