BrainTool icon indicating copy to clipboard operation
BrainTool copied to clipboard

[Idea] Control Chrome from emacs

Open NightMachinery opened this issue 4 years ago • 3 comments

This was the idea I had when I was searching for an org-mode Chrome extension and found your tool; Chrome has windows, windows have tab groups, and tab groups have tabs. It's a naturally hierarchical structure. Wouldn't it be great if this structure was just an org-mode file, where I could easily bring up my terminal with a keyboard hotkey, and start editing it?

The idea is basically to have BrainTool's sidebar's functionality available from emacs.

Some possible workflows follow:

  • close tabs by adding a :closed: tag
  • open tabs by changing that tag to :open:
  • refile subtrees to move tabs between groups and windows
    • each first-level heading is a window
    • second-level headings are tab groups
  • use org-mode's search and narrowing features to narrow the open tabs
    • (I myself am not very familiar with this functionality, as I hadn't needed narrowing searches before, but I am pretty sure it's available.)
    • E.g., we narrow to only show the tag :trip:, and then invoke a command braintool-sync-open-tabs, and all the extra tabs are closed from Chrome
      • these closed tabs retain their :open: tag, so when we cancel the narrowing, we can again restore them easily

NightMachinery avatar Oct 05 '21 09:10 NightMachinery

BTW, I couldn't find any docs on what emacs integration is currently offered. Is it just opening the org file stored in the Google drive? How is conflict resolution handled?

NightMachinery avatar Oct 05 '21 09:10 NightMachinery

Hi NightMachinary, Interesting ideas. RN I'm focusing on have BrainTool be at least a bridge between the browser and org. The extension checks on file versions every time it gets focused and before any save. It warns if there's been external updates to the file but does not try to manage conflicts.

tconfrey avatar Oct 05 '21 15:10 tconfrey

It is not on the project main roadmap, lets contribute feature into BrainTool. doesn't seem to be hard to do. (I am doom emacs users myself)

add me on discord. Anak#9256 lets have a chat. If you want to work on this features together.

Awannaphasch2016 avatar Feb 15 '22 19:02 Awannaphasch2016