JulianEberius / SublimePythonIDE

ST3 only: A rewrite of SublimeRope for ST3, uses the Rope library to add python completions and refactoring to ST3
GNU General Public License v2.0
267 stars 38 forks source link

Command to go to the next error #57

Closed kstrauser closed 9 years ago

kstrauser commented 10 years ago

Could you add a command, SublimeLinter-like, to move to the next detected error? That way I can quickly zip through a file and address them without scrolling until I manually spot something.

JulianEberius commented 10 years ago

I have implemented this command in a new branch called "testing". Notice that SublimePythonIDE does not come with pre-defined keybindings, you will have to set some of your own, e.g.,

{
    "keys": ["ctrl+r", "ctrl+n"], "command": "python_next_error", "context":
    [
        { "key": "selector", "operator": "equal", "operand": "source.python"}
    ]
},
{
    "keys": ["ctrl+r", "ctrl+p"], "command": "python_previous_error", "context":
    [
        { "key": "selector", "operator": "equal", "operand": "source.python"}
    ]
},

If you have some time please check it out. Notice however, that it contains several other new features and some refactorings, so if you use it, you're automatically a beta tester for the other features as well :-)

kstrauser commented 10 years ago

Wow! Thanks! I'm on testing now and I'll report back if I find anything unexpected.