-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[WIP] nvim_put #6819
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
[WIP] nvim_put #6819
Conversation
works in insert mode, but redo doesn't work (neither in normal nor insert mode) |
redo could be implemented as such: put the contents in the drop register, and add |
Alternatively consider it a low-level primitive and let redo be implemented by the plugin using this. But |
Could it be a linked list? BTW where is insert-mode implied? What happens if nvim_put is called in some other mode? |
implied how? It just doesn't do anything special on insert mode (except CURSEND on the latest push). Make |
It does what we want it to do. In visual mode we can either do nothing special (except adjusting cursor/VIsual afterward), most flexible for plugins, or simulate the delete implicit in |
maybe should be nvim_win_put if an ui drops data over a specific window. Or maybe it should just do atomic(set_current_window, nvim_put) in that case....