• Stars
    star
    191
  • Rank 202,877 (Top 4 %)
  • Language
    TypeScript
  • License
    GNU Affero Genera...
  • Created almost 10 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Advanced Tab management

TabAttack Browser Extension

Save browser memory by exporting your tabs as Markdown. The extension allows you to edit the document in a text editor before you save it.

Later, you can import these Markdown documents and restore all windows exactly like they were before.

Installation

Get the extension from the Chrome Web Store.

Features

The extension adds a tab counter to the toolbar:

Tab counter

When you click it, you will see an overview of all tabs (organized by window) that you have open:

Exported tabs

You can now edit the document as you wish. After that you can:

  • Download the current state of the editor as a *.md file

  • Close all tabs (except the current one)

  • Open a file that you saved earlier (drag and drop on top of the editor also works)

  • Re-open all links as individial tabs that are currently in the editor. This will restore each unordered list in its own window. This whole acion only works if all links are inside of an unordered list, though.

There are keyboard shortcuts for these actions:

Action OS X Windows
Download ⌘S Ctrl+S
Close all tabs ⌘Q Ctrl+Q
Open a file ⌘O Ctrl+O
Open all links ⇧⌘O Ctrl+Shift+O
Copy the whole document ⌘C Ctrl+C

Furthermore, there are many keyboard shortcuts for text editing inside the Ace editor.

Tab management keyboard shortcuts

This extension also adds a few useful, general tab management keyboard shortcuts. Most of them have to be set manually by going to “Keyboard shortcuts” at the bottom of chrome://extensions/.

Keyboard shortcut overview

Building

Clone the repository:

git clone https://github.com/JannesMeyer/TabAttack.git

Install the dependencies:

cd TabAttack/
npm install

Build and watch for changes (you need to have webpack installed globally):

webpack -w

Contributing

Pull requests and bug reports are welcome. If you submit a pull request, please try to match the code formatting of the rest of the project. Some examples:

  • Tabs for indentation
  • Spaces before the parentheses of control structures (e.g. if (true) instead of if(true))
  • Curly braces on the same line
  • etc.

Acknowledgments

Icon shape based on Diamond by Catia Marsh Mallow from the Noun Project

Special thanks to these projects:

Icons from Firefox (MPL v2):

  • /icons/firefox/extension.svg
  • /icons/firefox/tab.svg
  • /icons/firefox/tab-audio-muted.svg
  • /icons/firefox/tab-audio-playing.svg
  • /icons/firefox/tab-loading.png
  • /icons/firefox/[email protected]

License

Affero GPL v3

Todo

  • Tab move, tab discard
  • Fix keyboard selection
    • Use keybinding library
    • Add popup with keyboard shortcuts
  • Figure out why discarding resets the TabId
  • Style indicator for: audio, muted, ...
  • "open links" doesn't work with file:, moz-extension:, about:, chrome:
  • Add "ignore protocols" option
  • "1 Tab" instead of "1 Tabs" in tab list
  • Find icons for:
    • Search
      • URL view (settings)
      • Export
      • Import
      • Help