This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
class PhpThisToThisArrowCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
# Get the current cursor position | |
for region in self.view.sel(): | |
if region.empty(): | |
# Get the position of the cursor | |
pos = region.begin() |