anamnesis

Anamnesis is a SIMBL-based plugin for Safari on OS X that implements “Reopen Last Closed Tab,” a feature I’m tired of waiting for Apple to add.  The plugin is open-source and can be checked out from the git repository.  The source code is released under the MIT License.  Features include the following:

  1. Reopen tabs that have been closed on the current window, obviously.
  2. Maintains all history for closed tabs.
  3. Reassigns the “Hide/Show Tab Bar” key combination to ⌥⇧⌘T so that the ⇧⌘T key combination can be assigned to reopen the last closed tab.
  4. Adds a Reopen Last Closed Tab option to the History menu.
  5. Works on both 32-bit and 64-bit Safari.

There are still a few quirks that I’m working out, but they shouldn’t affect usage for most people:

  1. The “Reopen Last Closed Tab” option replaces “Reopen All Windows From Last Session” in the History menu.  This isn’t due to a technical restriction, but for some reason the History menu doesn’t like being modified.  I suspect that this has something to do with the fact that it displays a variable number of history items underneath “Reopen All Windows From Last Session.”
  2. Reopening the last tab doesn’t restore user input.
  3. If you reopen a window, you can’t reopen tabs in that window.

I’m still working on these, but I suspect the first won’t bother most people and the last two only make it slightly less useful.

Anyway, if you want to give it a shot, do the following:

  1. Quit Safari.
  2. Download and install SIMBL.
  3. Download Anamnesis below and extract.  Place Anamnesis.bundle into either /Library/Application Support/SIMBL/Plugins or ~/Library/Application Support/SIMBL/Plugins (create one of these directories if they don’t exist).
  4. Fire up Safari.

To uninstall, just delete Anamnesis.bundle from wherever you put it and restart Safari.

The bundle is compiled to be a universal binary, but I have only tested this on Mac OS X 10.6.2 with Safari 4.0.4 in 32-bit and 64-bit mode.  Feel free to leave a comment or shoot me an email if you run into problems with it and I’ll see what I can do about getting it working on your system.  If you think you might be able to help with any of the aforementioned issues, please email me.  If you find this software useful and would like to buy me a proverbial beer, please feel free to donate.

Download Anamnesis