2026-06-13

· 👁 19 · 1824

· 👁 18 · 1823

#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

https://sw.kovidgoyal.net/kitty/kittens/hyperlinked_grep/

· 👁 16 · 1822

#tbc
#money

This is why we have #crypto?