Skip to content
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

Advanced mode: use context to send to headless neovim? #35

Open
BlueDrink9 opened this issue Feb 4, 2020 · 6 comments
Open

Advanced mode: use context to send to headless neovim? #35

BlueDrink9 opened this issue Feb 4, 2020 · 6 comments

Comments

@BlueDrink9
Copy link

The v2 project looks absolutely awesome. Would you be willing to look into sending the context you can obtain to a headless neovim, and reading out the result, rather than possibly-imperfectly duplicating the correct behavior in lua? It seems like it would be a much more long-term sustainable approach, and would give the user the benefit of all the neovim tools, configurations and plugins?

@dbalatero
Copy link
Owner

dbalatero commented Feb 4, 2020 via email

@BlueDrink9
Copy link
Author

Excellent, glad to hear. I'm working on my own imperfect, since X11 doesn't have any general-text emulators, but mine's more OS-generic so I envy being able to access the context.

@dbalatero
Copy link
Owner

dbalatero commented Feb 4, 2020 via email

@BlueDrink9
Copy link
Author

I was considering clipboard, good to know about. Damn. That being said, if you only need it occasionally I'm hoping it isn't so bad. Mine will be even worse I imagine, because of the extra os-independent layer.

Yeah, I'm broadly going down the v1 route. I might look at how you've done your maps some time.

@dbalatero
Copy link
Owner

@BlueDrink9 I'm working on the neovim client version, and I have it passing keys pressed over RPC to Neovim: https://github.com/dbalatero/VimMode.spoon/compare/nvim

It's a mess right now but I'm just trying to get something basic working.

Have you looked into the accessibilty APIs on linux? This might provide you access to cursor position and line values: https://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface

@alok
Copy link

alok commented Apr 4, 2021

@dbalatero would any of the updates in nvim since last year help with this? i'd be willing to sponsor this for up to $200.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants