Last active
January 16, 2022 02:08
-
-
Save kidd/ccce7836e016687b46d43a16878175af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e() { | |
IFS=: read e_file e_line rest <<<"$1" | |
emacsclient -n +${e_line:-1} "$e_file" | |
} | |
rge() { | |
rg -n $* | fzf --tac | xargs e | |
} | |
compdef rge=rg | |
# rge foo | |
# rge -t lua function | |
# rge -t clojure defn test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment