Skip to content

Small fix needed for align_indentation command #1

@fredcallaway

Description

@fredcallaway

First off, great plugin; thanks!

Secondly, I couldn't get the align_indentation command to work as given (syntax error at line 64):

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 556, in run_
    return self.run(edit)
  File "/Users/fred/Library/Application Support/Sublime Text 3/Packages/SelectionTools/SelectionTools.py", line 65, in run
    edit = self.view.begin_edit()
TypeError: begin_edit() missing 2 required positional arguments: 'edit_token' and 'cmd'

I looked into it and it doesn't seem like commands should need to create their own edits (they receive an edit through the argument to run(), so I just deleted that line, and line 67 along with it. Now it works great!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions