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

Add window relative to non-active window #8295

Closed
adamslc opened this issue Feb 6, 2025 · 2 comments
Closed

Add window relative to non-active window #8295

adamslc opened this issue Feb 6, 2025 · 2 comments

Comments

@adamslc
Copy link

adamslc commented Feb 6, 2025

Is your feature request related to a problem? Please describe.
I am using the remote control protocol to automatically launch and close new windows tailing various log files. I want these windows to be below (splits layout) another specific window. My current solution is to focus the existing window, and launch the new window, but this is disruptive if I am actively typing.

Describe the solution you'd like
Ideally if kitten @ launch --match title:... matched a window, it would treat that window as active for the purposes of creating the new window, without actually stealing focus.

Describe alternatives you've considered
A current hack is to record the active window, focus, launch, focus, and hope that it is fast enough that the user doesn't notice.

@kovidgoyal
Copy link
Owner

Is there some reason you expect changing focus to be actually slow
enough to disrupt user activity? The whole operation should be done in
a few milliseconds at most unless you are running remote control over a
slow SSH link.

And note that launch --match is for matching tabs not windows.

@kovidgoyal
Copy link
Owner

Oh and if you use --no-response then it will be few ms even over ssh as it wont wait for a response from kitty.

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

No branches or pull requests

2 participants