#shell
#productivity
#love my mg alias - clickable #grep in #kitty - opens file and line in Vim:
# Grep, click to link - open in Vim, exact line
mg() {
kitty +kitten hyperlinked_grep --smart-case -C 9 "$@"
}
-C 9 is the context - to have a few lines before and after.
For this, also you need to have in ~/.config/kitty/open-actions.conf:
protocol file
fragment_matches [0-9]+
action launch --type=overlay -- vim +$FRAGMENT -- $FILE_PATH

