aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matheus Ribeiro <matheusribeiro@touchtec.com.br> 2026-04-01 16:50:49 +0000
committerGravatar Matheus Ribeiro <matheusribeiro@touchtec.com.br> 2026-05-11 11:47:18 +0000
commite1a7851c5e98e226724402b67f0d971b0b3e1551 (patch)
tree5d39e13be3df6629fd68b15933afbe9f14b50019
parentd245165264a727d0eb84ec9e37d9ed97174652a8 (diff)
função pra vimgrep
-rw-r--r--fish/functions/rvg.fish7
1 files changed, 7 insertions, 0 deletions
diff --git a/fish/functions/rvg.fish b/fish/functions/rvg.fish
new file mode 100644
index 0000000..ba85eb3
--- /dev/null
+++ b/fish/functions/rvg.fish
@@ -0,0 +1,7 @@
+function rvg --wraps=rg --description 'ripvimgrep, a wrapper for ripgrep(1) to use vimgrep'
+ if not command --query rg
+ return 127
+ end
+
+ command rg --vimgrep $argv
+end