diff options
Diffstat (limited to 'rc/connect/modules')
| -rwxr-xr-x | rc/connect/modules/dmenu/commands/:dmenu-grep | 11 | ||||
| -rwxr-xr-x | rc/connect/modules/fzf/commands/:fzf-grep | 11 | ||||
| -rwxr-xr-x | rc/connect/modules/fzy/commands/:fzy-grep | 11 | ||||
| -rwxr-xr-x | rc/connect/modules/rofi/commands/:rofi-grep | 11 | ||||
| -rwxr-xr-x | rc/connect/modules/wofi/commands/:wofi-grep | 11 |
5 files changed, 10 insertions, 45 deletions
diff --git a/rc/connect/modules/dmenu/commands/:dmenu-grep b/rc/connect/modules/dmenu/commands/:dmenu-grep index cb02ed4..d6634ba 100755 --- a/rc/connect/modules/dmenu/commands/:dmenu-grep +++ b/rc/connect/modules/dmenu/commands/:dmenu-grep @@ -6,13 +6,6 @@ # Dependencies: # – ripgrep (https://github.com/BurntSushi/ripgrep) -rg --line-number --with-filename '.+' "$@" | +rg --column --with-filename '.+' "$@" | dmenu -l 20 -i -p 'Open files (search by content)' | - -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 diff --git a/rc/connect/modules/fzf/commands/:fzf-grep b/rc/connect/modules/fzf/commands/:fzf-grep index 41b1f89..8a1d52b 100755 --- a/rc/connect/modules/fzf/commands/:fzf-grep +++ b/rc/connect/modules/fzf/commands/:fzf-grep @@ -6,13 +6,6 @@ # Dependencies: # – ripgrep (https://github.com/BurntSushi/ripgrep) -rg --line-number --with-filename '.+' "$@" | +rg --column --with-filename '.+' "$@" | fzf --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 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 diff --git a/rc/connect/modules/rofi/commands/:rofi-grep b/rc/connect/modules/rofi/commands/:rofi-grep index f0215a2..c4adb7b 100755 --- a/rc/connect/modules/rofi/commands/:rofi-grep +++ b/rc/connect/modules/rofi/commands/:rofi-grep @@ -6,13 +6,6 @@ # Dependencies: # – ripgrep (https://github.com/BurntSushi/ripgrep) -rg --line-number --with-filename '.+' "$@" | +rg --column --with-filename '.+' "$@" | rofi -dmenu -i -p 'Open files (search by content)' | - -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 diff --git a/rc/connect/modules/wofi/commands/:wofi-grep b/rc/connect/modules/wofi/commands/:wofi-grep index a8c80fe..e5ccc3b 100755 --- a/rc/connect/modules/wofi/commands/:wofi-grep +++ b/rc/connect/modules/wofi/commands/:wofi-grep @@ -6,13 +6,6 @@ # Dependencies: # – ripgrep (https://github.com/BurntSushi/ripgrep) -rg --line-number --with-filename '.+' "$@" | +rg --column --with-filename '.+' "$@" | wofi --dmenu --prompt 'Open files (search by content)' | - -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 |
