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?

1 point

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?

permalink
report
reply
1 point

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.

permalink
report
parent
reply
1 point

/-n

permalink
report
reply
1 point

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

permalink
report
parent
reply
1 point

The command is specific to the packages list.

It won’t work with regular sniper.

permalink
report
parent
reply
1 point

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

TIL
So then it is / n.

permalink
report
parent
reply
1 point

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

permalink
report
reply
1 point

just add two spaces at the beginning the search string

permalink
report
reply
1 point

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?

permalink
report
parent
reply

Emacs

!emacs@communick.news

Create post

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

Get Emacs

  • Windows
  • Mac OS X
  • GNU/Linux and BSD (Just get it from your distribution’s package manager)

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

Community stats

  • 18

    Monthly active users

  • 562

    Posts

  • 2.4K

    Comments