LONGMAN wrote: bizoo wrote:
Using your example code above, I will try something like (totally untested):
- Code: Select all
view = self.window,active_view()
And call the test_win command in place of your test command.
Or insert your code directly in the TestWinCommand, depend of what you want to do.
Thanks for answer. Now I have not edit variable in run function and I can't replace text in view.
view.replace(edit, file_text, new_text) not works
There's no edit in WindowCommand, you can create one yourself but it's incompatible with ST3.
This is why the WindowCommand (test_win) run the TextCommand (test).
You can use the solution from robertcollier4 too.
Without knowing what you want to do, I couldn't tell you what's the best solution (IMHO).