You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a very light weight plugin for my editor (vi, sublime text, emacs, atom, whatever)
all the plugin does is vmd scroll-to <current text buffer> either on save, or perhaps when the text buffer changes, or perhaps polling - where <current text buffer> is literally the text being displayed by the editor
vmd renders the text buffer to html, and searches for that html, if there's a match then scroll to the beginning of the text
This is easier than trying to exactly co-ordinate scroll positions between an editor and the vmd window, and would make editor plugin creation trivial
Only consideration could be how heavy this is - probably not that heavy, how big is a text buffer, couple of hundred bytes?
The text was updated successfully, but these errors were encountered:
davidmarkclements
changed the title
RPC call to scroll to search text
RPC call to scroll to search text (scroll syncing)
Apr 18, 2016
Vim already supports the Netbeans protocol out-of-the-box. I never dove deeply in to this but I think it allows accessing Vim's buffers and receiving events from it. I believe it would be possible to get the cursor position end even rerender vmd as you type (without saving first) and also scrolling to the right position.
Forgive me if I'm talking bullshit. I haven't actually investigated this. It's just what I remember having read a while ago.
If this Netbeans stuff works, however, it might be possible to support other editors as well if they have a Netbeans plugin.
here's the idea:
vmd scroll-to <current text buffer>
either on save, or perhaps when the text buffer changes, or perhaps polling - where<current text buffer>
is literally the text being displayed by the editorThis is easier than trying to exactly co-ordinate scroll positions between an editor and the vmd window, and would make editor plugin creation trivial
Only consideration could be how heavy this is - probably not that heavy, how big is a text buffer, couple of hundred bytes?
The text was updated successfully, but these errors were encountered: