Giter VIP home page Giter VIP logo

Comments (4)

cloudhead avatar cloudhead commented on August 17, 2024 1

I wanted to do this so I added a FuzzySearch command which should behave similarly, except that like FuzzyOpen it searches from the current directory. It's currently in the dev branch if you want to try it.

from neovim-fuzzy.

jedahan avatar jedahan commented on August 17, 2024

So that is really cool, but works a little bit different than I anticipated: it searches the filenames as well as the contents. So if I have a file called cart.rs, and I want to search for 'cart', it shows every line in cart.rs as matching.

Another interesting thing is that the FzfGit example I showed above, I can do:
:FzfGit cart
, which will first do a full rg search for 'cart', and then in nvim, those results I can filter those results more using normal fzf. I hope this makes sense, I wish I had a gif to explain.

from neovim-fuzzy.

cloudhead avatar cloudhead commented on August 17, 2024

As far as I know, fzf works that way too, at least with the :Ag command and the one you pasted above. Does it work differently for you? It's due to how fzf/fzy are implemented: it's just matching on a string which includes the filename and then extracts the filename from the match. I'd love to have it not match on the filename though.

The example with the pre-filtering is nice though, I can include that easily.

from neovim-fuzzy.

cloudhead avatar cloudhead commented on August 17, 2024

This is now in master, under :FuzzyGrep, it also takes optional arguments. I'll deal with the git tree thing separately. If you are able to get fzf.vim to search without it matching on the filenames, let me know, as I haven't been able to reproduce it here.

from neovim-fuzzy.

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.