BPyTextPlugin now has descriptors for variables, functions and classes (and their variables/functions). Each descriptor also holds the line number of the definition allowing a simple outliner to be written.

Text.setCursorPos(row, col) now pops the text into view if it is in the active window space. The outliner uses this to jump to any definition in a script; it is invoked with Ctrl+T.
This commit is contained in:
2008-07-21 00:38:42 +00:00
parent f042a468fd
commit 6352cd509e
7 changed files with 247 additions and 96 deletions

View File

@@ -23,7 +23,7 @@ def main():
(line, c) = current_line(txt)
# Check we are in a normal context
if get_context(txt) != NORMAL:
if get_context(txt) != CTX_NORMAL:
return
# Look backwards for first '(' without ')'