List the multi lines to another buffer, which is able to squeeze by any words you input. At the same time, the original buffer's cursor is jumping line to line according to moving up and down the line list.
- Squeeze all lines in buffer with your input
- Highlight multiple matched pattern
- Jumping line to line according to list buffer's move
- Cache result until modifies the buffer
- Go back to the last line
- Multi separated line culling
- Culling lines are editable
M-x helm-swoop
when region activeM-x helm-swoop
when the cursor is at any symbolM-x helm-swoop
when the cursor is not at any symbolM-3 M-x helm-swoop
orC-u 5 M-x helm-swoop
multi separated line culling- During isearch
M-i
to hand the word over to helm-swoop - While doing
helm-swoop
pressC-c C-e
to edit mode, apply changes to original buffer byC-x C-s
It's able to use words within a region or a word at symbol as search query when it called. Also use a keybind you set just type like M-i instead of M-x helm-swoop
.
While doing helm-swoop
type C-c C-e
to enter the edit mode.
Before enter the edit mode, you can choose some lines marked by C-SPC
or M-SPC
to edit.
Apply changes to original buffer type C-x C-s
.
M-4 M-x helm-swoop
or C-u 4 M-x helm-swoop
;; helm from https://github.com/emacs-helm/helm
(require 'helm-config)
(helm-mode 1)
;; Locate the helm-swwop folder to your path
(add-to-list 'load-path "~/.emacs.d/elisp/helm-swoop")
(require 'helm-swoop)
;; Change the keybinds to whatever you like :)
(global-set-key (kbd "M-i") 'helm-swoop)
(global-set-key (kbd "M-I") 'helm-swoop-back-to-last-point)
;; When doing isearch, hand the word over to helm-swoop
(define-key isearch-mode-map (kbd "M-i") 'helm-swoop-from-isearch)