Skip to content

Instantly share code, notes, and snippets.

@vifon
Created March 30, 2022 00:18
Show Gist options
  • 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