This isn't a bug or a feature request. I was unable to find any kind of support forum or wiki (is there one?) so here goes:
First of all I love kitty. I don't fully understand all it does but I think it will do what I want.
What I am having trouble with right now is actions in hyperlinks.
(https://sw.kovidgoyal.net/kitty/open_actions.html)
I think I understood protocol:///FILE_PATH/FILE#FRAGMENT (took a while to figure out what FRAGMENT was, I didn't see it explained anywhere).
As a simple test I added
protocol filelist
action launch --type=overlay ls
As a test, at the prompt I typed:
echo -e '\e]8;;filelist:///This/Doesnt/Matter\aShow me the files\e]8;;\a'
When I ctrl-shift-click on the "Show me the files" link I get the prompt:
What would you like to do with this URL:
filelist:///This/Doesnt/Matter
I hit O and nothing happens, it just goes back to the prompt.
I realized launch is opening a new window (not what I want anyway) so I changed my action to
action launch --type=overlay ls|less
so I wouldn't miss the output (just to see it work). Now I get:
Failed to launch child: ls|less
With error: No such file or directory
Press Enter to exit.
I tried: action launch --type=overlay ls | less
And now I see nothing again.
I gave up on that (as I said I don't want a new window anyway) and simply tried:
protocol filelist
action ls
And still I get nothing.
What am I doing wrong?
Or is this just not possible?
Thanks!
This isn't a bug or a feature request. I was unable to find any kind of support forum or wiki (is there one?) so here goes:
First of all I love kitty. I don't fully understand all it does but I think it will do what I want.
What I am having trouble with right now is actions in hyperlinks.
(https://sw.kovidgoyal.net/kitty/open_actions.html)
I think I understood protocol:///FILE_PATH/FILE#FRAGMENT (took a while to figure out what FRAGMENT was, I didn't see it explained anywhere).
As a simple test I added
protocol filelist
action launch --type=overlay ls
As a test, at the prompt I typed:
echo -e '\e]8;;filelist:///This/Doesnt/Matter\aShow me the files\e]8;;\a'
When I ctrl-shift-click on the "Show me the files" link I get the prompt:
What would you like to do with this URL:
filelist:///This/Doesnt/Matter
I hit O and nothing happens, it just goes back to the prompt.
I realized launch is opening a new window (not what I want anyway) so I changed my action to
action launch --type=overlay ls|less
so I wouldn't miss the output (just to see it work). Now I get:
Failed to launch child: ls|less
With error: No such file or directory
Press Enter to exit.
I tried: action launch --type=overlay ls | less
And now I see nothing again.
I gave up on that (as I said I don't want a new window anyway) and simply tried:
protocol filelist
action ls
And still I get nothing.
What am I doing wrong?
Or is this just not possible?
Thanks!