feat(buf live grep): use buffer previewer #664
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Regresion test
Platforms
Tasks
CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-R
to switch between restricted/unrestricted mode, and the lines count is consistent when press multiple times.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file, and open thetest/hello world.txt
,test/goodbye world/goodbye.lua
files.fd
andfind
works.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-R
to switch between restricted/unrestricted mode, and the lines count is consistent when press multiple times.-w
to match word only, use-g *.lua
to search only lua files.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file, and open thetest/hello world.txt
,test/goodbye world/goodbye.lua
files.rg
andgrep
works.CTRL-J
/CTRL-K
to move down/up and preview contents.-w
to match word only, use-g *.lua
to search only lua files.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file.rg
andgrep
works.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-D
to delete buffers, and delete thetest/hello world.txt
,test/goodbye world/goodbye.lua
buffers.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-W
to switch between workspace/current folder mode.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file.CTRL-J
/CTRL-K
to move down/up and preview contents.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-W
to switch between workspace/current folder mode.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file.delta
works.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-R
/CTRL-O
to switch between local/remote branches.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to checkout branch.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-A
to switch between git repo commits/current buffer commits.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to copy commit hash.delta
works.CTRL-J
/CTRL-K
to move down/up and preview contents.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to copy commit hash.delta
works.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-W
to switch between workspace/current buffer diagnostics.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file.CTRL-J
/CTRL-K
to move down/up and preview contents.ESC
to quit,ENTER
to open file.CTRL-J
/CTRL-K
to move down/up and preview contents.ESC
to quit,ENTER
to open file.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-E
/CTRL-A
to switch between user/ex/all vim commands.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to feed vim command.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-O
/CTRL-I
/CTRL-A
/CTRL-V
to switch between normal/insert/visual/all vim key mappings.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to feed vim keys.CTRL-J
/CTRL-K
to move down/up and preview contents.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file.CTRL-J
/CTRL-K
to move down/up and preview contents.CTRL-U
/CTRL-R
to switch between filter/include hidden files mode.ALT-L
/ALT-H
to cd into folder and cd upper folder.V
/W
/P
/R
variants (visual selection, cursor word, yank text, resume last).ESC
to quit,ENTER
to open file, and open thetest/hello world.txt
,test/goodbye world/goodbye.lua
files.eza
/lsd
/ls
works.