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

Feature Request: Return to last focused window on close #1450

Closed
jpfeltracco opened this issue Mar 8, 2019 · 1 comment
Closed

Feature Request: Return to last focused window on close #1450

jpfeltracco opened this issue Mar 8, 2019 · 1 comment

Comments

@jpfeltracco
Copy link

One thing I've noticed in Kitty is that focus doesn't seem to return to the last active window after a new window is closed. I have a use case for this using fzf in Kakoune with Kitty, where I spawn a new window for my query, then on enter the window closes and should jump back to the originating window.

Ex:

Start out with focus on the left
+---------------------+---------------------+
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|       Focus         |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
+---------------------+---------------------+

Open a new window (fzf in Kakoune for example)
+---------------------+---------------------+
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     +---------------------+
|                     |                     |
|                     |                     |
|                     |       Focus         |
|                     |                     |
|                     |                     |
|                     |                     |
+---------------------+---------------------+

On window close, focus goes to the "wrong" window, I have to manually 
move back to the originating window.
+---------------------+---------------------+
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |        Focus        |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
+---------------------+---------------------+

This would be the ideal, going to the last active window after a window close.
+---------------------+---------------------+
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|       Focus         |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
|                     |                     |
+---------------------+---------------------+


@elasticdog
Copy link

@kovidgoyal thank you so much for this fix and for all of your amazing work on kitty in general. I coincidentally had the same exact use case of Kakoune and fzf, and was going to file this same feature request. Looking forward to the 0.14.0 release!

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

No branches or pull requests

2 participants