-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global search and replace #4335
Comments
How should this behaviour interact with the undo? Add the change only to the alread open buffers? I think this solution is quite dirty, but it is the best that comes to my mind. I think that letting this feature to be handled by external programs would be a better choice. |
One approach I've seen before is a prompt where you'd say if to open all files when replacing (adding to undo buffer) or replace without opening (no undo). The prompt can be handled in many other ways of course, just that it's an explicit choice. |
Open a buffer for the result, any changes on that buffer would effect related files? This can undo, something like https://github.com/mhayashi1120/Emacs-wgrep |
#4381 sounds exactly like this 🙂 |
What we need is something like Vim’s My suggestion, add a simple command call |
The plan is very much something like #4381 that would leverage helixes existing multi-cursor support. That PR just needs a better PR and for that larger changes are likely needed |
Add some form of support for global search-and-replace.
Discussed in #3793
Originally posted by nour-dev September 11, 2022
hey, the question is the title.
I know how to make per file search and replace. what I want to do is to search + replace in the entire workspace files (or sub of them by ext or some sort of regex).
for example when I want to search
'test'
I do:space+/
.then when I want to replace it I need to go to each file and replace manually.
so there is not way to replace them all with one or more commands.
is there any hack to do this ? or I need to use external shell tools like
sed
orsd
?thanks.
The text was updated successfully, but these errors were encountered: