mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
docs(fzf): add comment to explain why this works
This commit is contained in:
3
zshrc
3
zshrc
@@ -183,7 +183,8 @@ fdr() {
|
|||||||
cd "$DIR"
|
cd "$DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Find in files with ripgrep and fzf
|
# Find in files with ripgrep and fzf and open on that line
|
||||||
|
# -> Works together with Vim Plugin bogado/file-line
|
||||||
frg() {
|
frg() {
|
||||||
file=$(rg . --line-number | fzf | cut -d: -f1 -f2)
|
file=$(rg . --line-number | fzf | cut -d: -f1 -f2)
|
||||||
if [ "$file" != "" ]
|
if [ "$file" != "" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user