Skip to content
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

feat: support kitty remote control along with tmux #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kofm
Copy link

@kofm kofm commented Nov 24, 2022

Hey there, thanks for this helpful package!

This is my attempt at adding support for the kitty (https://github.com/kovidgoyal/kitty) terminal emulator. I prefer kitty over tmux for being much more lightweight and less of a "hacky" solution (see kovidgoyal/kitty#2422)

Unfortunately, I couldn't find a way to "automagically" check if we're working inside a kitty instance, except for $TERMINAL or $TERMINFO environment variables which are, of course, set globally by the user irrespective of the current terminal effectively being used. If you have any suggestions on how to do this (or if the author of kitty will read this and have one), I'm happy to integrate it. However, with this PR, the user can set the "rvisidata.cmd" option to the string "kitty" to use the default cmd that I provided within the package, which opens visidata in a new tab. If you try to run a kitty remote cmd outside kitty, it simply goes on timeout after 10 secs, so we shouldn't worry too much about breaking things.

I hope this is of interest to you and the users of the package, and I look forward to hearing your thoughts about this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant