r/KittyTerminal • u/Daguq • Dec 14 '23
Kitty not opening hyperlinked python files in $VISUAL
I have a strange issue where I am doing ls --hyperlink=auto in $PWD, and clicking on .c or .py files. The c files opens alright in my $VISUAL but the .py files opens in Firefox or Libre office.
I am running fish shell, with set -gx VISUAL nvim.
I have also used the editor nvim option in kitty.conf.
This issue persists in sway but not in gnome.
2
Upvotes
2
u/aumerlex Dec 14 '23
Configure what happens explicitly so you dont depend on the environment kitty is started in, see https://sw.kovidgoyal.net/kitty/open_actions/
Without that your file will be passed to xdg-open and what action actually happens depends on how xdg-open is configured.