/ChangeList

The missing Change List for Sublime Text 2/3 - History List, Last Edit ...

Primary LanguagePython

The missing Change List for Sublime Text 2/3 - History List, Last Edit ...

It remembers where changes were made.

Installation

  1. Via Package Control

  2. Change key bindings, ignore this if you want to stay with the original keys. The User Key Bindings file can be accessed from Preferences -> Key Bindings - User.

     [
         { "keys": ["ctrl+;"], "command": "jump_to_change", "args": {"move": -1}},
         { "keys": ["ctrl+,"], "command": "jump_to_change", "args": {"move": 1}},
         { "keys": ["ctrl+."], "command": "jump_to_change", "args": {"index": -1}}
     ]
    

Add Vintage support of g+;, g+, and g+. (ignore this if you don't know what it is).

    [
        { "keys": ["g",";"], "command": "jump_to_change", "args": {"move": -1}, "context": [{"key": "setting.command_mode"}]},
        { "keys": ["g",","], "command": "jump_to_change", "args": {"move": 1}, "context": [{"key": "setting.command_mode"}]},
        { "keys": ["g","."], "command": "jump_to_change", "args": {"index": -1}, "context": [{"key": "setting.command_mode"}]}
    ]

Add Vintageous support of g+;, g+, and g+. (ignore this if you don't know what it is).

    [
        { "keys": [";"], "command": "jump_to_change", "args": {"move": -1}, "context":
            [
                { "key": "setting.command_mode" }, { "key": "vi_in_key_namespace", "operand": "g" }
            ]
        },
        { "keys": [","], "command": "jump_to_change", "args": {"move": 1}, "context":
            [
                { "key": "setting.command_mode" }, { "key": "vi_in_key_namespace", "operand": "g" }
            ]
        },
        { "keys": ["."], "command": "jump_to_change", "args": {"index": -1}, "context":
            [
                { "key": "setting.command_mode" }, { "key": "vi_in_key_namespace", "operand": "g" }
            ]
        }
    ]

Usage

  • Launch Change List: Show in Command Palette to show Change List.
  • Launch Change List: Maintenance in Command Palette to maintain Change List.
  • ctrl+; go to previous edited location
  • ctrl+, go to next edited location
  • ctrl+. go to the last edited location

Others

This plugin aims at recovering the full functionality of change list of VIM.
Last 50 history for each file is saved.
This plugin saves history to Packages/User/ChangeList.json.