this post was submitted on 23 Oct 2023
1 points (100.0% liked)

Emacs

311 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

Yes isearch is powerful, but you have to learn and remember its keybindings, because if you don't: isearch quits (and I need to start that search at the beginning).

Isearch's help C-h b doesn't make it better, because I would need to scroll that long list in the help window, but if I do so .... isearch quits.

Therefore I installed the package isearch-mb (*) and used easy-menu to add a drop down menu for isearch. Now, if I can't remember an isearch keybinding, I am able to look at the menu bar, without isearch quitting.

(*) As always with Emacs: there are other ways to solve that.

[–] [email protected] 1 points 1 year ago

A couple of the Isearch+ features that let you limit the search space/context.

  1. You can limit isearching to the text in the region. Controlled by a user option, and can be toggled with C-x n during Isearch. Works also for a noncontiguous region, such as a rectangle.

  2. You can switch any time to isearching outside, instead of inside, the region.

  3. You can search within/without the zones of text defined by the lazy-highlight matches of a previous search.

Or search within/without the zones of text that have a certain text property or set of properties (optionally considering their values) -- any properties.

  1. Dynamic Isearch filtering: add/remove any number of search filters while isearching.