After being able to require C modules inside Xplr I've started playing around with nvim xplr plugin pairs to integrate xplr into nvim.
Xplr is my favourite file manager and having xplr seamlessly integrate within xplr would be an ideal workflow.
Starting features and implementation status
features of nnn fork of xplr: mappings, layout - working
Hover selection to nvim - currently unstable
open selection in nvim - through msgpack - working, would like to create some additional configuration so users can decide how they would like to open
simple msgpack API callings custom functions/commands from xplr functions - working
Ideas - why?
If the relevant xplr data is available within nvim, the user can do whatever they want with it.
e.g: Send xplr selected files to qflist, preview hovered file in telescope driven previews (working on atm as an extra feature, very awesome :D ), change cwd, modify other plugins based on xplr data (switch nvim file managers cwd), run custom lua functions inside nvim on xplr selected files...
My questions
Do you know of anyone already creating something similar? If so, would could work together.
Any other features that would be a good addition to above?
And regarding hover selection instability, I was trying to find a way to access the hover selection in the lua environment (to send it over msgpack). Is this possible?
Currently the hover selection is implemented like this:
xplr keybind triggers xplr lua function that executes StartFifo
and calls an nvim function that connects to pipe using libuv (job) on nvim side.
Currently sometimes get broken pipe error
or xplr closing when executing this function which most likely can be fixed by working on it some more, but feels like this would be a lot cleaner doing xplr lua env --> nvim lua env
with msgpack and bypassing pipes completely.
Testing
if anyone would like to try out the plugins above, let me know about the install process etc, any feedback/improvements, that would be awesome, a major help.
It's definitely a WIP state atm, just uploaded so I can share to test. There are definitely some bugs. (hover selection/Telescope previewer is broken atm), apart from that all the other features should work.