GithubHelp home page GithubHelp logo

Support broot? about fm-nvim HOT 5 CLOSED

is0n avatar is0n commented on July 24, 2024
Support broot?

from fm-nvim.

Comments (5)

is0n avatar is0n commented on July 24, 2024 1

Latest commit fixes the issue. LMK if there's anything that's missing or that is buggy :)

from fm-nvim.

is0n avatar is0n commented on July 24, 2024

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.

IndianBoy42 avatar IndianBoy42 commented on July 24, 2024

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.

is0n avatar is0n commented on July 24, 2024

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.

is0n avatar is0n commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.