facelessuser wrote:Thanks
view.show(placeToGo)import sublime_plugin
class NextInterestingThing(sublime_plugin.WindowCommand):
rex = '(^[\ \t]*(class|def)[\ \t]+\w+[\ \t]*\(.*$|(?![\w\W])|\Z|\n\n\w)'
def run(self):
view = self.window.active_view()
# get current line
curPoint = view.line(view.sel()[0].a).b
found = view.find(self.rex, curPoint)
placeToGo = view.line(found.b)
if placeToGo:
view.sel().clear()
view.sel().add(placeToGo)
view.show(placeToGo)
for delta in [1, -1]:
x, y = view.viewport_position()
view.set_viewport_position((x, y + delta))significantly improved performance on Retina displays
gregor.hoch wrote:In ST2 there used to be this option for high resolution or retina displays. Is it correct that ST3 sets this option automatically depending on the resolution of your display?
Any chance that you can fix "Look Up"?
Users browsing this forum: reddshack and 8 guests