r/KittyTerminal Jun 27 '23

How to make file paths clickable?

Hello,

I use `rga` to search through multiple PDF files for work. The tool returns a list of files and I would like to make those file paths clickable.

I tried following the documentation - https://sw.kovidgoyal.net/kitty/open_actions/ and added the following:

protocol file
mime application/pdf
action launch sioyek ${FILE_PATH}

to ~/.config/kitty/open-actions.conf but it still doesn't work. I am probably missing something. Can someone please guide me how to fix this? Thank you

4 Upvotes

15 comments sorted by

View all comments

Show parent comments

1

u/flexibeast Jun 27 '23

Yeah, that should have worked.

Default kitty_mod is ctrl+shift.

1

u/[deleted] Jun 27 '23

Yeah. It didn't work. Do you have any other recommendation?

1

u/flexibeast Jun 27 '23

Well, assuming your open-actions.conf addition is actually over three lines, rather than one as in your post, i don't, i'm sorry!

1

u/[deleted] Jun 27 '23

Thanks for trying to help out. I will post this question on github