#7 More python API functions

open
nobody
None
5
2004-03-22
2004-03-22
Anonymous
No

There are probably a gazillion functions that could be added,
but a few basic new functions would make the python stuff
more useful:

getLineNumber
getIndexPosition
moveCursorRelative (up, down, left and right)
getLine (text on line)
getChar (char at line and index)
typeInsert (insert char and move cursor right - like typing, or
change current insert function to do this)
openNewline (after current line and after specified line
(optional line augument) and then indent)

These functions would give some basic control to python
which will allow inteligent modification of the buffer. My first
idea is like emacs inteligent braces, which would bind to the
{} keys and auto indent themselves.

Do you have a place to build a library of python extensions
as people write them?

Discussion