-
-
Notifications
You must be signed in to change notification settings - Fork 964
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
Enable URI Scheme handler for ssh:// #2847
Comments
I dont know what you are asking for. If you want to open kitty running kitty ssh ssh://whatever If you want a single executable that takes ssh:// urls just create a
and put it somewhere in your PATH and chmod +x it |
I want kitty to register itself as a handler for the URL scheme ssh:// - Applications will use the default handler for ssh:// to open up ssh connections instead of just default to the Terminal.app. Or even as the system default terminal application; But i'm not sure if macOS has that anywhere to be defined. The problem with the script as you have it above is it opens up another instance of Kitty.app , not a window of an existing Kitty.app. I'll look some more as an interim solution. The goal of having this built into Kitty is control how the handler responds to the existing session (new window, tab, session, etc). But to allow other apps to integrate with Kitty without having every app write custom code to make that work. By default Terminal.app registers itself as application for URL Schemes
Uniform Type Identifiers
Having kitty being able to register and handle each of these is the request. The primary ones for my day to day use are ssh://, com.apple.terminal.session, com.apple.terminal.shell-script and public.unix-executable. Iterm2 actually creates and handles even more. Let me know if I can provide more info. |
If you want to open a new window running ssh or whatever, use remote Or if you dont want to use remote control, use --single-instance which will cause each invocation to open in a new OS window rather than a new kitty.app |
Is your feature request related to a problem? Please describe.
When trying to open SSH connections from external applications; They'll send the URI
ssh://user@server:port
, Using SwiftDefaultApps (newer RCDefaultApps) I can switch the ssh:// handler to kitty but it just opens the last use window and not doesn't connect.Describe the solution you'd like
Please add the ability to associate kitty with ssh:// and provide option to use existing window; use new window or use new tab.
Describe alternatives you've considered
I thought about building an AppleScript to implement as a work around; but it doesn't appear to have Dictionary to be able to manipulate the windows.
The text was updated successfully, but these errors were encountered: