-20

The title says it all—the editor does not seem to have a search&replace feature. It needs one!

New contributor
kjetil b halvorsen is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
18
  • 10
    or you can just use your favorite (real) editor Mar 17 at 14:24
  • 9
    "it needs one!" but why?
    – Andrew T.
    Mar 17 at 14:25
  • @AndrewT.: It will facilitate editing questions, and doing it on-site is faster than using an external editor Mar 17 at 14:27
  • All web browsers have a search feature, you can do the replacing on a case by case basis. Posts on SO aren't big enough to warrant using such a feature.
    – Kevin B
    Mar 17 at 14:33
  • The main reason I would see for doing that is to make code or data anonymous by mass replacing names and such. I would really do that in an external editor. Browser text areas suck no matter how much Javascript is thrown at it.
    – Gimby
    Mar 17 at 14:33
  • 2
    @Gimby you should throw jQuery at it ...
    – rene
    Mar 17 at 14:43
  • 3
    I can count the times I've needed a search and replace on the fingers of one hand. Is there really that much of a call for it? Could you give examples of common enough tasks you found where it would be useful?
    – VLAZ
    Mar 17 at 14:55
  • 1
    I tend to use browser control+f and manual replace. When I need something more than that, I use Regex101, since I'm likely doing complicated replacements (e.g. code table to markdown table). I don't think there's a good way to integrate all this into the site.
    – Laurel
    Mar 17 at 15:17
  • "The title says it all" [sic!] Maybe it first needs a Grammar-Checker... :idea:
    – chivracq
    Mar 17 at 15:57
  • 7
    @chivracq: Please educate me about my wrong english grammar, I am not a native speaker Mar 17 at 16:15
  • 2
    The editor needs more than search&replace: at a minimum, automatic indentation, removing trailing space, a 'block' mode (to do the same operation to many lines at once), and some means of changing case. Nice to have (usually requires some kind of macro facility): enclosing of text with some presets (e.g., in <kbd></kbd>), built-in commonly-used text fragments, and - Mar 17 at 17:21
  • 2
    cont' - some support for transformation of code blocks (e.g., as mitigation for the new weird syntax highlighter). Mar 17 at 17:23
  • 2
  • 4
    Every tool needs to have enough features to become Emacs. 2 days ago
  • 2
    @kjetilbhalvorsen I haven't used a browser extension for it since before Firefox switched over to exclusively WebExtensions. At that point, the one I was using stopped working, due to using browser UI features which aren't available in WebExtensions. Thus, I'm not comfortable recommending one, as I'd need to review the extensions and their code before doing so. I was able to find some alternatives with a search for "<browser name> browser extension textarea search and replace" and/or "<browser name> browser addon textarea search and replace".
    – Makyen Mod
    2 days ago

0

You must log in to answer this question.

Browse other questions tagged .