Comments (6)
It seems to happend only if I wrote a patterns or replacement before I toggle the dir
or files
option.
from muren.nvim.
Oh, directly when I active dir option and I write something in the patterns, it freeze too.
from muren.nvim.
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.
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.
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.
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 commandgit 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)
- Calculate preview asynchronously?
- History of replacements
- Highlight replacement
- Lsp rename
- <CR> does nothing with default configuration HOT 12
- Weird text highlighting HOT 2
- Quickfix list
- Feature request: Apply replacement in selected region HOT 5
- Feature request: enable confirmation HOT 4
- Feature request: Subvert support HOT 2
- feature request: Position popup window HOT 7
- FEAT: Turn an already entered `:s/.../.../` command into a muren window HOT 1
- Problem with installation HOT 2
- [Question]: pattern to exclude files HOT 3
- Feature request: replace only in selected area HOT 3
- [Bug]: Wrong range replacing HOT 6
- Very slow performance on large repos HOT 6
- Error on MurenOpen HOT 5
- Is it possible to search and replace in the entire project? HOT 5
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 muren.nvim.