Comments (5)
Latest commit fixes the issue. LMK if there's anything that's missing or that is buggy :)
from fm-nvim.
Would it be possible to add support for broot in this plugin?
I'm not sure as I've never used broot before. How might you suggest I accomplish this?
from fm-nvim.
So actually I think I could implement this if createWin
and setMappings
were public.
broot has --outcmd
which is similar to what you use with the other file managers, although it outputs a whole command, not just the filename of the selected file/dir. So I would need a custom on_close to parse that somehow
from fm-nvim.
So actually I think I could implement this if createWin and setMappings were public
The most recent commit should have done this.
For future reference, you could also clone the repo and include it in your list of plugins. The following should work assuming you use packer...
$ git clone https://github.com/is0n/fm-nvim ~/fm-nvim
use {'~/fm-nvim'}
With that, you wouldn't need to have those functions be public.
Hope this helps! 😄
from fm-nvim.
After some tinkering around, I've found one possible way of supporting broot.
It's by using...
$ broot --out /tmp/fm-nvim
Using the following will use /tmp/fm-nvim
as a temp file. The only problem is that if you now want to open a file, you have to select it and do :print_path
in broot. Do you know how we can map Return/Enter
to :print_path
in broot? I imagine it's by using --conf
.
The following resources may help...
If you would like to try it out, use the following in neovim...
:lua require('fm-nvim').createWin("broot --out /tmp/fm-nvim")
and then type...
:print_path
in broot once you have selected a file.
from fm-nvim.
Related Issues (20)
- Open browser with current file selected HOT 9
- Allow directional splits HOT 1
- Ctrl-j and Ctrl-k not working when using Broot HOT 4
- enter key doesn't work as expected when using xplr HOT 6
- FEATURE:bookmark HOT 2
- LF icons not working HOT 6
- split mode does not work HOT 1
- [Feature] Change current directory HOT 2
- Close buffer along with window HOT 1
- Update buffer on file action with LF HOT 9
- [Feature Request] Allow custom border characters HOT 1
- Joshuto does not work HOT 3
- Make it possible to disable or override a mapping
- lazygit not open file in nvim HOT 3
- Xplr not open file inside already open buffer
- Can it run in the background permanently
- Joshuto does not work HOT 2
- broot just.. doesn't work?
- Add support for Yazi HOT 1
- Cannot open files that contain spaces in file/path name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fm-nvim.