mirror of
https://github.com/Ascyii/scripts.git
synced 2026-01-01 04:44:24 -05:00
Init
This commit is contained in:
8
shell/search.sh
Executable file
8
shell/search.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Usage: rgnvim KEYWORD
|
||||
rg --vimgrep "$@" |
|
||||
fzf --delimiter : --nth 1,2,3,4 \
|
||||
--preview 'bat --style=numbers --color=always --highlight-line {2} {1}' |
|
||||
awk -F: '{print $1, $2}' |
|
||||
xargs -r sh -c 'nvim +"$1" "$0"'
|
||||
Reference in New Issue
Block a user