diff options
Diffstat (limited to 'rc/connect/modules/fzy/commands/:fzy-grep')
| -rwxr-xr-x | rc/connect/modules/fzy/commands/:fzy-grep | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/rc/connect/modules/fzy/commands/:fzy-grep b/rc/connect/modules/fzy/commands/:fzy-grep index 788a774..e6d17d4 100755 --- a/rc/connect/modules/fzy/commands/:fzy-grep +++ b/rc/connect/modules/fzy/commands/:fzy-grep @@ -6,13 +6,6 @@ # Dependencies: # – ripgrep (https://github.com/BurntSushi/ripgrep) -rg --line-number --with-filename '.+' "$@" | +rg --column --with-filename '.+' "$@" | fzy --prompt='(g)>' | - -while read line; do - # Output format: <file>:<line>:<text> - file=${line%%:*} - line_number=${line#*:}; line_number=${line_number%%:*} - - :edit "$file" "+$line_number" -done +:edit-search |
