Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

SublimeText 3 version for OracleSQL file oracle_commands.py (https://github.com/bizoo/OracleSQL)

View oracle_commands.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
import sublime
import sublime_plugin
import OracleSQL.oracle_lib
 
 
class OracleGotoBodyCommand(sublime_plugin.TextCommand):
def run(self, edit):
def _on_change(result):
try:
ln = int(result) - 1
 
if ln >= 0:
row, col = self.view.rowcol(pkgbody.begin())
pos = self.view.text_point(row + ln, 0)
reg = sublime.Region(pos, pos)
self.view.sel().clear()
self.view.sel().add(reg)
self.view.show(reg)
except:
ln = None
 
pkgbody = oracle_lib.find_body(self.view)
if pkgbody:
self.view.window().show_input_panel('Package body line number:', '', _on_change, _on_change, None)
else:
sublime.error_message('Error: Package body not found !')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.