yassinebridi / serpl

A simple terminal UI for search and replace, ala VS Code.
MIT License
567 stars 4 forks source link

Support for one-by-one file and line replace #24

Closed Dunqing closed 4 months ago

Dunqing commented 4 months ago

Thanks for your useful tool! It would be nice to support this feature.

yassinebridi commented 4 months ago

Thanks. Can you explain more why you need this. There is already the ability to remove files you don't need for replace. Also, i'm working on another feature to better select files, select all, bulk removing files from the list, etc...

Dunqing commented 4 months ago

Personally, when I have a lot of files to replace and a lot of similar files that don't need to be replaced I find it more careful to me to replace them one file at a time. Also, I know VSCode has the same feature.

Also, i'm working on another feature to better select files, select all, bulk removing files from the list, etc...

That's great. That's useful too!

yassinebridi commented 4 months ago

Interesting, i will add this to the list, thanks for the suggestions 🙏

julienvincent commented 4 months ago

I have the same request. I love the tool but it's super unintuitive to me to first remove files and then perform a replace. I'd much rather replace results one-by-one.

Would love to see this feature added!

When I first used the tool I got a bit of a surprise when pressing ctrl-o as I was expecting it to operate on the item I had selected instead of the entire list.

I think the existing ctrl-o keybinding should maybe also be renamed to something like "Replace all" or "Process replace on all items" to make it clearer what it does.

yassinebridi commented 4 months ago

Thanks for your input @julienvincent, i will prioritize this since a lot of people requested it.

yassinebridi commented 4 months ago

I pushed a new version adding this feature

julienvincent commented 4 months ago

Already trying it out! Haha it works beautifully thank you!