Giter VIP home page Giter VIP logo

sublime-edit-history's Introduction

Edit History

Sublime Text 3 note: This functionality is included by default (as Jump Back and Jump Forward), and so this plugin is not needed any more. Thanks for using it!

Navigate back and forward between edit locations in the current file.

"Rules"

  • A new edit location is only created if it is greater than 5 lines away from the previous saved edit location. ( number customizable via settings file )
  • When you go back to a point and then create a new edit location all the "future" locations are cleared, as in a web-browser.

Commands

Edit history provides three commands: previous_edit, next_edit and clear_edits

Keybindings

No default keybindings are provided as I couldn't find defaults that I liked that didn't override existing ones. I suggest super+[ on Mac and ctrl+[ on Linux and Windows. This overrides unindent and indent (I use Tab and Shift+Tab for this functionality). You can add the following to your User Keybindings:

Mac

  { "keys": ["super+["], "command": "previous_edit" },
  { "keys": ["super+]"], "command": "next_edit" }

Linux/Windows

  { "keys": ["ctrl+["], "command": "previous_edit" },
  { "keys": ["ctrl+]"], "command": "next_edit" }

Context Menu

Edit History adds "Back" and "Forward" entries to the context/right-click menu.

sublime-edit-history's People

Contributors

stuk avatar titobouzout avatar zuthan avatar

Stargazers

 avatar Mr Stickel avatar Blanco avatar Allyson Beckers avatar Rob Cherny avatar  avatar DigitalLexicon avatar Dinesh Kr. Choudhary avatar Yoshihisa Tanaka avatar Jared Williams avatar Angelo Cork avatar  avatar  avatar

Watchers

 avatar  avatar James Cloos avatar  avatar

sublime-edit-history's Issues

Remove package-metadata.json

This file is automatically generated by Package Control when installing the plugin and is used to track the currently installed version.

If you are looking to explicitly version your package, you'll need to create a custom packages.json file like https://raw.github.com/timonwong/sublime_packages/master/packages.json. If you do that, just be sure to specify a tag the download URL so that everyone who has the same version number is running the same code. If you specify master as the download URL and commit a change, but don't update the packages.json file then it could start getting confusing in terms of knowing what version of code a user is running.

ST3 compatibility

This is a great plugin. Would be awesome to get it compatible with Sublime Text 3.

Port to sublime text 3

While Jump back and forward functionality helps, that's cross-files and thus it's not like this plugin used to be.

Not working

Previous edit point throws this:

Traceback (most recent call last):
  File "/Applications/Sublime Text 2.app/Contents/MacOS/sublime_plugin.py", line 350, in run_
    return self.run(edit)
  File "./Edit History.py", line 153, in run
  File "./Edit History.py", line 50, in back
  File "./Edit History.py", line 40, in _set_next
TypeError: No registered converter was able to produce a C++ rvalue of type SelectionRegion from this Python object of type NoneType

Next edit point throws this :

Traceback (most recent call last):
  File "/Applications/Sublime Text 2.app/Contents/MacOS/sublime_plugin.py", line 350, in run_
    return self.run(edit)
  File "./Edit History.py", line 163, in run
  File "./Edit History.py", line 63, in forward
  File "./Edit History.py", line 95, in next
IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.