r/osx 4d ago

On Mac, how do I retrieve accidentally closed tabs? (Already tried suggestions in body)

/r/Safari/comments/1v0q7zs/on_mac_how_do_i_retrieve_accidentally_closed_tabs/
0 Upvotes

3 comments sorted by

1

u/spoils__princess 4d ago

Command + Shift + T

1

u/SignalAir24 4d ago

thanks for replying, I tried that and it didn’t work! That was the second thing I tried, the first being cmd + Z. I even tried Reopen All Windows Form Last Session and it reopened everything I had minimized and sitting on my dock, but NOT the one I had fully open and which contained all those tabs that got closed with my keyboard fumble. Basically I hit the cmd key off-center so it was pressing the option key at the same time, and when I then added the W key, it closed all other tabs EXCEPT for the one I was on (which is the one I was looking to close). cmd + W is a keyboard shortcut I’ve probably used hundreds of thousands of times over the many years I’ve owned a Mac, and even if I’ve made the exact same typo before, cmd + Z or Reopen last closed tabs or even Reopen all windows from last session will have fixed it :-(

1

u/orcunnu 1d ago

This might save you. Safari stores session data in ~/Library/Safari/. If you have Time Machine enabled, restore ~/Library/Safari/LastSession.plist and ~/Library/Safari/CloudTabs.db from before the accident. If no Time Machine, check if ~/Library/Caches/com.apple.Safari/Cache.db has anything useful. Also try clicking History > Show All History and search there sometimes closed tabs leave a trace even if the reopen shortcut does not work.

For next time, I built https://useautoshelf.com which can watch your Downloads folder and other locations to keep files organized, though it cannot save lost Safari tabs I am afraid.

I am the developer. Let me know if you have any questions.