ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Go​To​Last​Edit

by khrizt ALL

Sublime plugin to go to last edit position

Details

Installs

  • Total 4K
  • Win 2K
  • Mac 970
  • Linux 763
Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29
Windows 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

GotoLastEdit

A Sublime Text plugin that jumps to previous edit locations — including edits in other tabs.

Install

Manual

  1. Open the Sublime Text Packages folder (Preferences → Browse Packages…).
  2. Clone or copy this folder there as GotoLastEdit:
cd "$(python3 -c 'import os; print(os.path.expanduser("~"))')"  # then open Packages via the menu
git clone <this-repo-url> GotoLastEdit
  1. Restart Sublime Text (or wait for the plugin to reload).

From the original Package Control package

If you already have the Package Control package installed, replace its files with the ones from this repo (or remove it and use the manual install above) so you pick up these fixes.

Usage

Default binding (all platforms):

Ctrl + Q

Each press walks further back through recent edit locations. When the most recent edit was in another tab, the command focuses that tab and selects the edited line.

Key binding conflicts

On some Linux builds and Sublime Text ¾ setups, Ctrl+Q is also bound to quit. Remap via Preferences → Package Settings → GotoLastEdit → Key Bindings, for example:

[
    {
        "keys": ["ctrl+alt+q"],
        "command": "last_edit_line"
    }
]

The command name is last_edit_line.

Settings

Preferences → Package Settings → GotoLastEdit → Settings:

{
    "history_size": 50
}

Increase history_size to keep more edit locations (both per buffer and across views).

Development / tests

These tests run without Sublime Text, using lightweight API stubs:

python3 -m unittest discover -s tests -v

License

Free to use and modify