import sublime
import sublime_plugin
class LinjumingCommand(sublime_plugin.TextCommand):
def run(self, edit):
lineNum = xxxx ?
import sublime
import sublime_plugin
class LinjumingCommand(sublime_plugin.TextCommand):
def run(self, edit):
lineNum = xxxx ?
tank you,try success
import sublime
import sublime_plugin
class LinjumingCommand(sublime_plugin.TextCommand):
def run(self, edit):
sel = self.view.sel()
region = self.view.sel()[0]
lineNum = self.view.rowcol(region.begin())[0]
print(lineNum)