You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I setup kitty to be able to open files by double-clicking on the macOS finder. It launches kitty and my $EDITOR (which is Neovim). This works for most filetypes, except a few. Most notably ".tex" or "Makefile".
A clear and concise description of what the bug is.
Kitty complains with {'msg': 'Unknown URL type, cannot open:\n file:///Users/andre/work/biosignal/slides/vital-signs/intro.tex'}
To Reproduce
Steps to reproduce the behavior:
Setup macOS to open .tex or Makefile files with kitty (to setup file associations, I used duti - brew install duti)
Double-click on a .tex file.
See the window come up and then go away
Further information
To debug this problem, I started kitty with kitty --dump-commands. I clicked on the file I wanted to open, and observed the output. At first, it stated:
draw No kitten named show_error
Would that kitten exist, that would have showed me the error, I guess. After implementing a sketchy kitten called show_error.py, I got to the message above about the unknown URL type.
So, I guess there are actually 2 issues? a) a missing show_error kitten somewhere, and b) a mechanism to associate filetypes with Kitty? Or may be I am doing something wrong?
Thanks for this fix, @kovidgoyal - that was quick!
What about the show_error issue that is somewhat related? Can you either provide a default kitten for that with kitty, or document how to provide one? Or should I open another issue for this?
Describe the bug
I setup kitty to be able to open files by double-clicking on the macOS finder. It launches kitty and my $EDITOR (which is Neovim). This works for most filetypes, except a few. Most notably ".tex" or "Makefile".
A clear and concise description of what the bug is.
Kitty complains with
{'msg': 'Unknown URL type, cannot open:\n file:///Users/andre/work/biosignal/slides/vital-signs/intro.tex'}
To Reproduce
Steps to reproduce the behavior:
duti
- brew install duti)Further information
To debug this problem, I started kitty with
kitty --dump-commands
. I clicked on the file I wanted to open, and observed the output. At first, it stated:draw No kitten named show_error
Would that kitten exist, that would have showed me the error, I guess. After implementing a sketchy kitten called
show_error.py
, I got to the message above about the unknown URL type.So, I guess there are actually 2 issues? a) a missing
show_error
kitten somewhere, and b) a mechanism to associate filetypes with Kitty? Or may be I am doing something wrong?Environment details
Additional context
I tried this, and the results are the same.
The text was updated successfully, but these errors were encountered: