parent
f511eb4434
commit
35c1578246
3 changed files with 142 additions and 30 deletions
18
scripts/fzf-grep
Executable file
18
scripts/fzf-grep
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -eEuCo pipefail
|
||||
|
||||
rg \
|
||||
--no-heading \
|
||||
--color always \
|
||||
-n \
|
||||
"$@" \
|
||||
| fzf \
|
||||
--marker=\* \
|
||||
--delimiter=: \
|
||||
--border \
|
||||
--cycle \
|
||||
--layout=reverse \
|
||||
--ansi \
|
||||
--tiebreak=index \
|
||||
--preview 'zat --highlight {2} --limit $FZF_PREVIEW_LINES {1}'
|
Loading…
Add table
Add a link
Reference in a new issue