-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
My first idea
- Change the
rgandgrepto include thepatternin the grep-cmd - Then use
printfto interpolatefzf's{q}to interpolate the query back into thegrep-cmd
archsway/config/elvish/lib/rgf.elv
Lines 29 to 43 in 967ca23
| } elif ?(e:git rev-parse --is-inside-work-tree stdout>$os:dev-null stderr>&stdout) { | |
| # TODO: git doesn't support having `pattern` at the end when path is | |
| # specified .ie `git grep directory/ "pattern"` | |
| set cmd = [ | |
| env | |
| LC_ALL=C | |
| git | |
| grep | |
| --untracked | |
| --perl-regexp | |
| --color=always | |
| --line-number | |
| --column | |
| --ignore-case | |
| ] |
archsway/config/elvish/lib/rgf.elv
Lines 94 to 95 in 967ca23
| --bind "start:reload("$rg-prefix" {q})+unbind(ctrl-r)" ^ | |
| --bind "change:reload:"$rg-prefix" {q}" ^ |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels