Skip to content

Instantly share code, notes, and snippets.

@vifon
Created March 30, 2022 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vifon/97faf202802b05fe37881839929b141c to your computer and use it in GitHub Desktop.
Save vifon/97faf202802b05fe37881839929b141c to your computer and use it in GitHub Desktop.
Ripe Grape - A fzf-based wrapper around ripgrep.
#!/usr/bin/env bash
# Ripe Grape - A fzf-based wrapper around ripgrep.
set -o errexit -o nounset -o pipefail
rg --color=always --line-number --with-filename "$@" \
| fzf --ansi --reverse \
--delimiter=: \
--bind 'ctrl-v:execute(vim +{2} {1})' \
--bind 'ctrl-l:execute(less +{2}g {1})'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment