Emacs: List Matching Lines
List Matching Lines, Copy, Count
- Alt+x
list-matching-lines
【Alt+s o】 (alias ofoccur
) -
List all lines in the current file that matches a Regex pattern.
- Alt+x
copy-matching-lines
-
Copy lines that matches a regex pattern.
- Alt+x
count-matches
(alias ofhow-many
) -
Count matching lines.
Clicking the line jumps to the match location.
Delete Matching Lines, Delete and Copy, Delete Duplicate 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 duplicate lines in text selection.
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