13 ms·
This is a brilliant piece of work. As someone who has thousands of tabs open, I've always wanted to "close all tabs with a single command", or view all the open
by cocktailpeanuts 6y ago
This is a brilliant piece of work. As someone who has thousands of tabs open, I've always wanted to "close all tabs with a single command", or view all the open tabs and mass select them and close, for years. Otherwise, going through them one by one and deleting takes forever. Now somebody make a vim pluggin so I can delete tabs by visual selecting a bunch of them and typing "d".
- Shared404 6y agoThis does seem like a brilliant idea, doesn't it. I'm thinking about how difficult it would be to setup something like 'surf' but using chromium/firefox, and then driving it completely off the CLI. It honestly sounds like my dream browser.
- frob 6y agoYou can kinda do that with the vimium plugin. Select a bunch of tabs and press "x", but it doesn't support visual selection of tabs.
- db48x 6y agoIf you just want to close all tabs then in Firefox right click a tab and select "Close Other Tabs". Also, you can control-click on tabs to apply commands the the whole set, such as closing them, sending them to your phone, etc.
- drran 6y agoIn Firefox, you can click at tab bar and select "Select all tabs", then bookmark them all, then close them all. Also, "Auto discard tab" plugin does a good job by keeping unused tabs closed, to save resources.
- db48x 6y agoI'm not sure an addon is necessary for that. Firefox automatically unloads any tab that hasn't been used in a while.
- rasz 6y ago>thousands of tabs open yeah about that, are you sure they are open and not hibernated? Chrome had proactive-tab-freeze-and-discard , later renamed to proactive-tab-freeze and finally forced On in 80 with no option of turning it off. 'hibernated' tabs are merely a bookmark without loaded content. I dont think this extension would be able to work with non loaded tabs without forcing them all to load. 300 tabs is able to easily eat 16GB of ram, Im scared to think what would happen with 1000 tabs loaded in Chrome. I remember good old Opera 12.x where you could sit on 200 actually loaded and active tabs and RAM usage was somewhere around 2GB.
- superkuh 6y agoUsing single process Firefox forks I often load in 500 tabs plus another 500+ suspended in under 4 GB. Of course I'm also running NoScript temp whitelist only and most sites are websites not web applications. But 1000 loaded tabs is certainly doable in way less than 16GB of ram if you don't use a multi-process browser. It's just a shame this is written as a chrome style extension (which modern FF supports) and not a firefox extension.
- eitland 6y agoWhich fork do you use? I'm starting to get seriously tempted to go with one of the forks. I seriously miss the old extensions.
- superkuh 6y agoPale Moon. Although I usually try to not say which fork aloud on HN because anything but FF gets massively downvoted.
- mcdevilkiller 6y agoYou can use auto tab discard. I've done 1500 tabs on an 8GB windows machine.
- saurik 6y agoSomehow, Chrome doesn't seem to actually do this despite claims to, which is why I use The Great Suspender (a Chrome extension that actually hibernates tabs).
- axbytg 6y ago> As someone who has thousands of tabs open This behavior always confuses me. To what end? Have you ever derived any value from a tab you chose not to close?
- saagarjha 6y agoYes–I go back and read them occasionally. By keeping things open I get frequent reminders to look at things and sometimes I do.
- rohan1024 6y agoI used to do this now I just search again and occasionally I will bookmark a page that is too valuable to miss in future searches. This keeps my bookmarks clean.
- Firerouge 6y agoChrome only preserves browsing history for 90 days. Keeping tabs open can work around that limitation
- samb1729 6y agoWithout even bothering to check, this seems like it can't possibly be true. You are surely not saying that the billions of Chrome users worldwide have no browsing history from September or earlier, right?
- brw 6y ago"Your History page shows the webpages you've visited on Chrome in the last 90 days."[0] Google's My Activity[1] stores everything though. [0] https://support.google.com/chrome/answer/95589 https://support.google.com/chrome/answer/95589 [1] https://myactivity.google.com/myactivity https://myactivity.google.com/myactivity
- saurik 6y ago
- aoeusnth1 6y agoVim already supports a decent file explorer view, if you edit a directory instead of a file. It’s sort of like emacs’ dired (DIRectory EDit).
- yudlejoza 6y ago1 - Right-click empty space next to the tabs and select 'Bookmark all tabs' 2 - Name the bookmark folder (within the top-level bookmark folder) something like: 'Tab-mess-from-<date-time>' 3 - Ctrl-F4 close them. Press and hold Ctrl, then F4 them one at a time. You can close 200+ tabs in a minute. (or as other suggested, right-click any tab and use the option 'close other tabs').
- rohan1024 6y ago> Ctrl-F4 close them. Press and hold Ctrl, then F4 them one at a time. Ctrl-F4 shuts down entire browser, Ctrl-W closes each tab with a press of w. This is behavior in Ubuntu and it holds true for most application windows.
- mulmen 6y agoI open a new window for each "task" and open tabs in that window, if it is non trivial I also move that window to a new Desktop/Space. When I want to shelve a task I bookmark all the tabs in that window into a dedicated folder then close the whole window and the desktop.
- catchmeifyoucan 6y agoyou should try amna, which basically automates that process. You make a task, it gives you a chrome window for the task and syncs your work. You can then close the browser, and the data is saved. http://getamna.com http://getamna.com
- polm23 6y agoOnetab is great for dealing with that. https://www.one-tab.com/ https://www.one-tab.com/
- ksec 6y agoSame here, currently sitting at 300 tabs ( Lost about 800 a few weeks ago from Safari crash again ). I just wish the Show All tabs on Safari put up a list of tabs so I could quickly navigate through them ( and selectively close them ). Right now Show All Tabs Reloads all the tabs. That is the same on macOS and iOS. Your phone gets quite warm doing it.
- lilyball 6y agoShow All Tabs on iOS definitely does not reload tabs. I know on macOS it used to force all tabs to load but I had the impression lately that it wasn’t doing that anymore (though I rarely use this feature).
- ksec 6y agoiOS reloads them ( or partially load them ) as you scroll through it to get a screenshot. I tried it just now. Or they somehow saved a Screenshot of it. ( But then there is no reason why macOS safari isn't doing the same. ) macOS does the same except without the scrolling.
- lilyball 6y agoiOS saves screenshots of tabs. I scrolled through my own and found a bunch of old tabs (didn't realize I had so many) that just showed pure black. macOS saves screenshots too, to show when hovering over a tab. Curiously, it doesn't seem to use these saved screenshots in Show All Tabs. Also I just tested, Show All Tabs on macOS is no longer loading unloaded tabs. I have a window with 13 tabs right now, only two of which I've visited since launching Safari, and the others just remain as blank in Show All Tabs.
- theelous3 6y ago> Lost about 800 a few weeks ago from Safari crash again Sounds like someone taking a corner at 200 mph and rolling their eyes when they hit the crash barrier. Not often is the following true, but - you're using that tool wrong.
- eitland 6y ago> I've always wanted to "close all tabs with a single command", or view all the open tabs and mass select them and close, for years. In Firefox you can right-click on a tab and close - all tabs - or all tabs to the right If you use tree style tabs you can also close a tree or a subtree. Edit: and there is an extension (yep :) to the tree style tab extension to allow you to export a subtree as a nested list of links - in Markdown!
- franga2000 6y agoSince recently, you can also ctrl- and shift-select them and either move or close just those tabs. Sounded like a gimmick when I first saw it, but it has proven to be a huge time saver when I neeed to split a window in two because my browsing session has expanded far beyond the original scope or kill a bunch of tabs in the middle somewhere because a thread of searching has proven fruitless.
- nine_k 6y agoIn Firefox, you can install the Tree-Style Tabs extension, and have a reasonable tree of tabs. It does resemble a filesystem tree a bit. I think it's the most important extension for people who do heavy browsing, research things online, etc.
- netsharc 6y agoVivaldi has a tabs panel that lists all open tabs (as well as recently closed ones) like files in Windows Explorer, you can multi-select them and hit delete, or indeed hit Ctrl-A and delete. Sadly afaik there's no filter to e.g. select all Stack Overflow tabs.
- bayesianbot 6y agoYou can a) right-click a stack overflow tab, stack them and then close them all or b) control-ddubleclick one site and Vivaldi will autoselect all from same domain.
- deleted 6y ago[deleted]
- m463 6y agoI keep a few tabs open, and close the browser regularly. A friend of mine keeps basically infinity tabs open. I sort of rolled my eyes, but accepted his rare behavior. However as time has gone on, I've been surprised to find I may have the rare behavior and it is common for people to work this way. So.. maybe this is a way he can backup his "filesystem" and not suffer a nervous breakdown when his machine reboots or some othe browser failure where he loses his world.
- kapilkaisare 6y agoIs having several tabs open in a browser rare? My social circle - which comprises mostly software engineers, admittedly - sees browsers with 30+ tabs open as normal.
- coliveira 6y agoI can have as much as 100 tabs open, depending on what I'm doing.
- weaksauce 6y agoI am like your friend... basically tabs are a "working memory" that you don't want to store permanently in bookmarks. each window or sets of windows is typically a different topic that is being research on with a bunch of middle clicks to open tabs. I have so many open that I wrote a small webext for it that shows a page of all your tabs that you can click on to navigate to that tab with a click. just a nicer interface to see all the windows open and all the tabs. https://github.com/fiveNinePlusR/tabist https://github.com/fiveNinePlusR/tabist
- jsrcout 6y agoThis is the extension I didn't know I needed, thank you!
- weaksauce 6y agoI hope you find it useful :) if you have any suggestions let me know. i have been working on a small upgrade to it where the tabs can be closed with a middle click and reordered in the windows but i don't work on it very often as it's quite useful as it stands for my needs edit cmd-shift-e/ctrl-shift-e will open up the extension which I guess I should update on the homepage.
- Havelock 6y agoI have the same problem. I'm currently testing out the new tabmanager.io extension that seems to have a lot of potential.
- npongratz 6y agoWith vim's netrw plugin [0], I'm able to do this: $ cd ~/tmp/foo $ touch a b c d e $ vim . Then select the file(s) you wish to delete, press D (must be capital "D"), confirm the deletion, and Bob's your uncle. [0] https://www.vim.org/scripts/script.php?script_id=1075 https://www.vim.org/scripts/script.php?script_id=1075
- tobestobestobes 6y agoIt's a huge leap forward in browser management. Not exactly a replacement for headless browsing/scraping etc, but for personal use, nothing compares. A big contribution to the "personal data management" toolbox. In the realm of tab management, I use this one liner in console of chrome://inspect every once in a while, then just close all of my tabs: collection = document.getElementById("pages").getElementsByClassName("subrow"); final_output_tsv = "title\turl\n"; for (let item of collection) {final_output_tsv += `${item.children[0].innerHTML}\t${item.children[1] ? item.children[1].innerHTML : "N/A"}\n`}; copy(final_output_tsv) Substitute "devices" for "pages" to get android chrome tabs This way I can backup all my tabs in simple, non-bookmark format and search them using python etc.
- dsp_person 6y agocool this seems handy, but when I try my chrome://inspect/#pages only contains a small subset of tabs out of the few dozen windows I have open. Any tips?
- tobestobestobes 6y agoLooks like only recently opened tabs (or some variation on that) show up here. To test, reload all tabs In one window (I used an extension) and check out chrome://inspect again. It's all there. Maybe there's a good reason for not showing all pages in inspect. Who knows. Another problem is that my script grabs page subprocess urls also. I've mainly used this for grabbing my android tabs. This is an adapted version that skips grabbing subprocesses collection = document.getElementById("pages").getElementsByClassName("subrow"); final_output_tsv = "title\turl\n"; for (let item of collection) {if(new RegExp("([a-zA-Z0-9]+://)?([a-zA-Z0-9_]+:[a-zA-Z0-9_]+@)?([a-zA-Z0-9.-]+\\.[A-Za-z]{2,4})(:[0-9]+)?(/.*)?").test(item.children[0].innerHTML) === false) final_output_tsv += `${item.children[0].innerHTML}\t${item.children[1] ? item.children[1].innerHTML : "N/A"}\n`}; copy(final_output_tsv) edit: I used reload all tabs extension with reload all tabs in all windows option turned on. This could get messy.
- jmercouris 6y agoThis is possible in Nyxt browser, :-)
- ssalka 6y agoFWIW in Chromium-based browsers you can shift+click tabs to select multiple, then close all selected at once or drag selected to new window
- twobitshifter 6y agoThe author mentioned dired for emacs which is the perfect tool for this. Is there an equivalent file plugin for vim?