We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wf
1 parent e0652f5 commit c194e37Copy full SHA for c194e37
home/.zshrc
@@ -60,6 +60,13 @@ add-zsh-hook chpwd print_readme
60
# example. Works with Tab completion.
61
alias rr='git rev-parse --show-toplevel 2>/dev/null || pwd'
62
63
+wf() {
64
+ # "`w`here `f`ile": which files contain the given regex?
65
+ local editor=${EDITOR:-vim}
66
+ # `--open-tty` for https://unix.stackexchange.com/a/732101
67
+ rg --files-with-matches "$1" | fzf | xargs --no-run-if-empty --open-tty "$editor"
68
+}
69
+
70
pullall() {
71
gh auth status 1>/dev/null 2>&1 || gh auth login
72
0 commit comments