You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please include help for rga-fzf and rga-fzf-open (like rga-fzf -h, rga-fzf-open -h)
I just started using this tool, and I am not sure how to use these. I have fzf. May be prevent fzf from using its own config file as I get the following error: Error: fzf output not two line
And may we can specify the config from fzf in ripgrep-all/config.jsoc in the same way mpv specify the config for yt-dlp so that it does not conflicts with the standard config of yt-dlp and can override it.
The text was updated successfully, but these errors were encountered:
xdg-open is fine, but I want to vim to the line found in regex match.
How to edit rga-fzf so I get both filename and line of regex match? And if file of type text (and default text editor is vim, alike: xdg-mime query default text/plain) then vim that file to the returned line.
Workaround withoutrpa. Thanks to @BuonOmocomment. Call it like: fzf_jump_to_regex_in_multiple_files "regex1" "regex2" "etc"
Press Enter to vim file at regex match line.
fzf_jump_to_regex_in_multiple_files() {
# ripgrep (rg) searchs an empty regex pattern (everything) --> every line of every file --> slow !!
rg --line-number --no-heading "" |
fzf \
--delimiter=: \
--preview='batcat --color=always {1} --highlight-line={2}' \
--preview-window='~3,+{2}+3/4' \
--query="$*" \
--bind "enter:become(vim {1} +{2})" \
--bind 'down:preview-down,up:preview-up'
}
Edit: example and output
git clone https://github.com/ohmyzsh/ohmyzsh
cd ~/.oh-my-zsh
fzf_jump_to_regex_in_multiple_files "oh" "my" "plug"
Please include help for rga-fzf and rga-fzf-open (like
rga-fzf -h
,rga-fzf-open -h
)I just started using this tool, and I am not sure how to use these. I have fzf. May be prevent fzf from using its own config file as I get the following error: Error: fzf output not two line
ripgrep-all/config.jsoc
in the same waympv
specify the config foryt-dlp
so that it does not conflicts with the standard config ofyt-dlp
and can override it.The text was updated successfully, but these errors were encountered: