Skip to content

Instantly share code, notes, and snippets.

@ammar-faifi
Created December 6, 2023 18:02
Show Gist options
  • Save ammar-faifi/ed8eea9a688943a618a1379c7413c106 to your computer and use it in GitHub Desktop.
Save ammar-faifi/ed8eea9a688943a618a1379c7413c106 to your computer and use it in GitHub Desktop.
kitty terminal map with regex to open python error in nvim with specified line number
# add this to your kitty config: `~/.config/kitty/kitty.conf`
map ctrl+g kitten hints --type=linenum --regex='(?P<path>\/.*?\.[\w:]+)",\sline\s(?P<line>\d*)' --program='tab nvim +{line} {path}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment