4 ms·
> The first innovation outside of Emacs that springs to mind is find-and-replace that lets you easily switch between literal, case-insensitive, regex, current l
by TeMPOraL 8y ago
> The first innovation outside of Emacs that springs to mind is find-and-replace that lets you easily switch between literal, case-insensitive, regex, current line/selection/whole file, and current file/across multiple files.
Not sure what you mean, but from my experience, you can do all that in Emacs. They're not one feature, but a couple distinct one. Incremental find/replace with or without regex, literal, case-insensitive within a buffer is one facility, easily accessible through C-s / C-r / C-M-s / C-M-r keys (they're all for the same feature, just "s" for forwards, "r" for backwards, also press Meta for regexes), you can switch "modes" on the fly, switch to replacement mode, or even show the whole list of matches, each with a single keychord.
Incremental searches across multiple files or open buffers can be done too, though it's not something I've tried personally (I usually pawn off multi-file searches to grep / find+grep combo, which have a built-in support in Emacs, and AFAIR also a polyfill for Windows). Consult [0] for discussion.
Editing-wise, I can't think of an outside-Emacs innovation that couldn't - and wouldn't - get ported over, ending up better than in its source place because of how Emacs deep interoperability makes all features together better than the sum of them. The main convenience you're abandoning when switching from an IDE to Emacs is the lack of deep semantic features - like really smart autocomplete, or high-quality automatic refactors - but with the development and popularization of Language Server Protocol and Debug Adapter Protocol, one can hope this won't be a problem much longer.
--
[0] - https://www.reddit.com/r/emacs/comments/7tf1ln/incremental_search_with_multiple_files/ https://www.reddit.com/r/emacs/comments/7tf1ln/incremental_s...
- WalterGR 8y agoNot sure what you mean, but from my experience, you can do all that in Emacs. They're not one feature, but a couple distinct one. That’s why I said “easily switch between”. As in, a single piece of UI. If you’ve used any modern editor or IDE I’m sure you’ve seen this. I can't think of an outside-Emacs innovation that couldn't - and wouldn't - get ported over The person I was talking to uses fairly stock Emacs, so that’s not a useful point.