You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Enhancement - Add Find and replace command #1519
Feature RequestProposal for adding a new functionalityGood First IssueA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Priority:HighShould be addressed soon but not critical
Hi there! I'd like to propose that a find and replace feature could be added to the editor. Currently we have a find function, as well as find next and find previous, but I think it'd be super handy to also be able to find and replace either single or all instances of a search query. This might also mean some UI changes on the find pop-up bar.
I'm hoping that since the find functionality is already built out that this wouldn't be too big a lift. Sorry if this has already been proposed, I looked around in the issues but didn't see anything. Thoughts?
Thanks for the suggestion 😸 This is built into CodeMirror (demo) so I don't think this would be too hard to implement! In fact, if you look at the code for the Search popup, some code that handles replace is commented out. The hardest part would be adding in the UI and hooking up the keyboard shortcuts.
Hi @SundeepChand !!
I appreciate your interest but currently I am working on it and looking for the way by which I can add code in UI. It would be great if you share your idea so that we can come up with potential pull request.
Sure @RadheTians, continue working on this. For the UI part, from what I've done so far, changes have to be made in Nav.jsx & Editor.jsx as well as the translations have to be defined in translations.json (under translations directory). Its extremely helpful to use "Find" as a reference.
Feature RequestProposal for adding a new functionalityGood First IssueA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Priority:HighShould be addressed soon but not critical
Activity
catarak commentedon Jul 28, 2020
Thanks for the suggestion 😸 This is built into CodeMirror (demo) so I don't think this would be too hard to implement! In fact, if you look at the code for the Search popup, some code that handles replace is commented out. The hardest part would be adding in the UI and hooking up the keyboard shortcuts.
RadheTians commentedon Jul 31, 2020
Hello @aferriss and @catarak!!
Can I please follow up on this issue?
catarak commentedon Aug 3, 2020
@RadheTians absolutely! Feel free to work on it.
RadheTians commentedon Aug 3, 2020
Thanks for confirmation @catarak.
SundeepChand commentedon Aug 11, 2020
Hello @RadheTians! Just wanted to ask if you are working on this? If not then, I would like to do it.
RadheTians commentedon Aug 11, 2020
Hi @SundeepChand !!
I appreciate your interest but currently I am working on it and looking for the way by which I can add code in UI. It would be great if you share your idea so that we can come up with potential pull request.
SundeepChand commentedon Aug 12, 2020
Sure @RadheTians, continue working on this. For the UI part, from what I've done so far, changes have to be made in Nav.jsx & Editor.jsx as well as the translations have to be defined in translations.json (under translations directory). Its extremely helpful to use "Find" as a reference.
RadheTians commentedon Aug 14, 2020
Since my placement section is going on, therefore, I'm not able to spend time on this issue so, it's handover to you @SundeepChand.
All the very best!!
SundeepChand commentedon Aug 15, 2020
Okay @RadheTians.
All the best for your interview.
[processing#1519] Minor styling changes
[processing#1519] Minor styling changes
[processing#1519] Minor styling changes
[processing#1519] Minor styling changes
[processing#1519] highlight find matches when focused on search
[processing#1519] Update replace UX to match VSC
[processing#1519] Updating icons for search with theming
[processing#1519] Update selection highlight colors
[processing#1519] Update replace keyboard shortcut to match VSC
[processing#1519] Update replace keyboard shortcut in Nav
[processing#1519] Update Nav snapshot
[processing#1519] Update pixel measurements to rems