-
I often need to copy files across multiple projects, so, multiple neovim instances. When I try to copy files in one neovim and paste them into another, that's not working. Is it possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
IIRC Neo-tree is not "instance aware", meaning it does not "talk" to other neo-tree instances. Which also means that something like this is not currently possible. I could be incorrect and maybe there is some feature baked into Neo-tree that might enable this kind of behavior but if I am not wrong, this would require some work handling "paste" input. I wouldn't say this is "impossible". It might be possible to accomplish something like this using a custom URI on copy (something like Basically "No" unless you want to hack something together. There are events and hooks you can potentially use to implement this behavior yourself but (unless I am mistaken), it is highly unlikely this kind of functionality is already available with Neo-tree. If you are interested in tackling this for yourself, take a peek at the "mappings" table you can provide during neo-tree configuration. The maintainer just dropped a mapping snippet here that does some (completely unrelated) complex logic using mappings, maybe between it and the source you can work your way to what you want :) If you do decide to tackle this and have questions, feel free to |
Beta Was this translation helpful? Give feedback.
-
There is actually an issue for handling copy paste between two windows within the same neovim instance that will probably never happen: #168 Copy across different neovim instances would be another thing altogether. If they are at least on the same computer, I can see implementing the clipboard as a file somewhere in the user's |
Beta Was this translation helpful? Give feedback.
There is actually an issue for handling copy paste between two windows within the same neovim instance that will probably never happen: #168
Copy across different neovim instances would be another thing altogether. If they are at least on the same computer, I can see implementing the clipboard as a file somewhere in the user's
~/.local/
folder which wouldn't be that difficult. I wouldn't do it officially though because I wouldn't want to support the feature.