Emacs: List Matching Lines
List Matching Lines and Other Line Commands
- Alt+x
list-matching-lines
【Alt+s o】 (alias ofoccur
) -
List all lines in the current file that matches a Regex text pattern.
- Alt+x
copy-matching-lines
-
Copy lines that matches a regex pattern.
- Alt+x
count-matches
(alias ofhow-many
) -
Count matching lines.
- Alt+x
kill-matching-lines
-
Copy and delete matching lines
- Alt+x
delete-matching-lines
(alias offlush-lines
) -
- Delete lines that match a Regex.
- Works on text selection or starts at the line your cursor is on.
- Alt+x
delete-non-matching-lines
(alias ofkeep-lines
) -
Delete non-matching lines.
- Alt+x
delete-duplicate-lines
-
Delete duplicated lines in text selection.
Clicking the line jumps to the match location.
List Lines in ALL Buffers
Alt+x multi-occur
if you want to list lines in ALL buffers.
Emacs, Work on Lines
Emacs Find Replace
- Emacs: Search Text in Current File
- Emacs: Search Current Word 🚀
- Emacs Init: isearch Whitespace Regex
- Emacs Init: isearch by Arrow Keys
- Emacs: Highlight Word, Line
- Emacs: List Matching Lines
- Emacs: Search Text in Directory
- Emacs: Find Replace in Current File
- Emacs: Interactive Find Replace Text in Directory
- Emacs: Xah Find Replace (xah-find.el)
- Emacs: Regular Expression