Coder Social home page Coder Social logo

Comments (6)

t1gu1 avatar t1gu1 commented on August 17, 2024

It seems to happend only if I wrote a patterns or replacement before I toggle the dir or files option.

image

from muren.nvim.

t1gu1 avatar t1gu1 commented on August 17, 2024

Oh, directly when I active dir option and I write something in the patterns, it freeze too.

from muren.nvim.

t1gu1 avatar t1gu1 commented on August 17, 2024

I finally find why.

My project is too "big" and it search everywhere.
I simply change the files argument to: src/**/* and it was ok.

Is there a way to exclude files?
Like /ios/Pods/,/vendor/bundle/,.history,node_modules,dist,.git,build/

from muren.nvim.

AckslD avatar AckslD commented on August 17, 2024

Hi @t1gu1, if you're doing recursive replacements in a directory it can be useful to disable preview while typing the replacements and setting the options since that will do the replacements for each keystroke.

from muren.nvim.

AckslD avatar AckslD commented on August 17, 2024

Regarding your question to exclude files, currently muren calls out to :vimgrep but maybe we can optionally instead call :grep which the user can configure to use rg or anything and custom configs to ignore eg .gitignore.

But the syntax for patterns for both the search-term and files would then potentially have to be different.

from muren.nvim.

t1gu1 avatar t1gu1 commented on August 17, 2024

Considering the .gitignore file would be a nice enhancement.
I would'nt had any issues with that.



Some Ideas


Maybe it could be an idea to remove de default value of the files options.

  • When there is nothing, it will list all the files except the one in the .gitignore with that command git ls-files.
  • If the git ls-files list nothing, it will default to the */**

You can try it with a: vimgrep thingsToSearch `git ls-files` | cw


Maybe add a call to action to make the search?
e.g. when you pass from insert mode to normal mode it call the search.

In the options, it could have a live preview option instead of a preview and the preview could be always on with the call action.

from muren.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.