this post was submitted on 23 Nov 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
 

When I do package-list-packages and I'm searching for a package, the search is not restricted to the package names, but searches the descriptions as well, and this requires scrolling down before starting the search.

Can the search be restricted to the column with the names?

top 9 comments
sorted by: hot top controversial new old
[–] LoneRider11@alien.top 1 points 11 months ago (1 children)

Not sure because i cant try it now, but how about narrowing to a rectangular selection, which is the package list column and using swiper in that?

[–] vfclists@alien.top 1 points 11 months ago

I didn't know that narrowing could also apply to columns, but narrowing to a rectangular selection means scrolling to the bottom of the listing, which is why I prefer to search in the first place.

[–] gusbrs@alien.top 1 points 11 months ago (1 children)
[–] SlowValue@alien.top 1 points 11 months ago (1 children)

What is the meaning of that?
Just typing this at the swiper prompt searches for /-n....

[–] vfclists@alien.top 1 points 11 months ago (1 children)

The command is specific to the packages list.

It won't work with regular sniper.

[–] SlowValue@alien.top 1 points 11 months ago

Thanks for the explanation, that possibility did not cross my mind, since I'm used to use swiper. :)

TIL
So then it is / n.

[–] gruzel@alien.top 1 points 11 months ago

M-x narrow-to-region ? (maybe not, I'm not at a computer now)

[–] deaddyfreddy@alien.top 1 points 11 months ago (1 children)

just add two spaces at the beginning the search string

[–] vfclists@alien.top 1 points 11 months ago

Clever🙂, but doesn't generalize to other documents.

Is there a command to select a range of characters on a line and extend it as a column to the end of the buffer or narrowed region without scrolling down to mark the actual area?