Skip to content

Feature Enhancement - Add Find and replace command #1519

Closed

Description

@aferriss

Nature of issue?

  • Existing feature enhancement

Feature enhancement details:

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?

Activity

  1. catarak commented on Jul 28, 2020

    @catarak
    Member

    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.

  2. added
    Good First Issue
    Priority:High
    Feature Request
    Help Wanted
    on Jul 28, 2020
  3. RadheTians commented on Jul 31, 2020

    @RadheTians

    Hello @aferriss and @catarak!!
    Can I please follow up on this issue?

  4. catarak commented on Aug 3, 2020

    @catarak
    Member

    @RadheTians absolutely! Feel free to work on it.

  5. RadheTians commented on Aug 3, 2020

    @RadheTians

    Thanks for confirmation @catarak.

  6. SundeepChand commented on Aug 11, 2020

    @SundeepChand
    Contributor

    Hello @RadheTians! Just wanted to ask if you are working on this? If not then, I would like to do it.

  7. RadheTians commented on Aug 11, 2020

    @RadheTians

    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.

  8. SundeepChand commented on Aug 12, 2020

    @SundeepChand
    Contributor

    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.

  9. RadheTians commented on Aug 14, 2020

    @RadheTians

    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!!

  10. SundeepChand commented on Aug 15, 2020

    @SundeepChand
    Contributor

    Okay @RadheTians.
    All the best for your interview.

  11. added a commit that references this issue on Sep 18, 2020
  12. added 3 commits that reference this issue on Sep 26, 2020
  13. added 8 commits that reference this issue on Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestGood First IssueHelp WantedPriority:High

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions