-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lua Plugin API #292
Comments
The values provided by When retreiving the same line as the cursor is on, then only the text underneith and after the cursor is available. For other lines, the whole line is available. eg |
This should be fixed by e399562
The intention is that all byte values (like |
Great 👍. Thanks
That sounds very sensible. I came across an error, rather than incosistancy (I think). When using
Edit: Sorry, the last line is the single addressable newline, so column 1 is correct. |
Negative and fractional arguments should now generally be rejected. Beyond EOF should be handled individually and needs to be revisited. I would like to avoid adding special purpose arguments (like |
bump: clamping cursor.pos to max bytes would be nice! ( from Lua ) |
Here is a a link to vim's autocmd doc, it might be helpful in determining API events. |
i'd like access to the last inserted text; currently i have to find the current line and slice it up. vim puts this into the dot edit: actually, this doesn't help me. i want the currently being inserted text. edit: basically, i want normal mode commands (without entering normal mode) as an api. not sure how that would work. i need to rethink this. |
I can't see a way to access the registers now from LUA, maybe there should be an API like:
|
Some issues/inconsistencies in the current state of the lua API.
cursor:to(line,col)
should implycursor.line == line
andcursor.col == col
n <= 0
andn > size of file
.cursor:to()
file:content()
file:delete()
file:insert()
I'll add any more here that I come across while testing. Feel free to ignore any points that are dumb or obvious that I haven't thought properly about. vis is already a really solid editor, its acting as my daily driver for most of my editing needs, just looking to improve further :)
The text was updated successfully, but these errors were encountered: