-
-
Notifications
You must be signed in to change notification settings - Fork 995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hints kitten: selected path not opened in current window #5462
Comments
The current kitty window is already used by something, presumably a Have kitty listen on a socket for commands and have the program be kitty @ launch --type=overlay nvim Alternately, use https://sw.kovidgoyal.net/kitty/kittens/hints/#completely-customizing-the-matching-and-actions-of-the-kitten and you can just do boss.new_window_with_cwd(['nvim'] + args) |
Thank you for the quick reply and explanation! The more I use kitty, the more I learn that I don't know everything it can do. Thanks for your amazing work! Kitty continues to make me smile whenever I use it to make stuff easier once again. 🙂 |
Ok, it seems that I have to investigate a bit further. Running
standalone opens up nvim in the current window, but it doesn't do anything, if I provide it for the |
you need to write a wrapper script for program. And in it do something exec kitty @ --to=unix:whatever launch nvim "$@" though I will make a change for the next release that will make the --to |
This means that the I would suggest adding an option like You need to know that programs run directly by kitty are not the same as run by a shell, especially with environment variables, and there are some differences in the functionality of overlay compared to regular kitty windows. |
@kovidgoyal I installed kitty from
thanks! :) |
Is your feature request related to a problem? Please describe.
I tried using this keybinding:
but then I realized, that
--program
expects a new window to be opened!Describe the solution you'd like
Reusing the current kitty-window to open the selected hint in Neovim
Describe alternatives you've considered
I still got the selected file to be opened in Neovim with:
which is almost there and I'll use this, if no other option is present.
Additional context
The text was updated successfully, but these errors were encountered: