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

Keybinding Action to "Bring all to front" #4704

Open
mitchellh opened this issue Jan 6, 2025 · 2 comments
Open

Keybinding Action to "Bring all to front" #4704

mitchellh opened this issue Jan 6, 2025 · 2 comments

Comments

@mitchellh
Copy link
Contributor

Discussed in #4696

Originally posted by massimopalmieri January 6, 2025
It would be great to be able to have a keybind action to focus the terminal ("Bring all to front"), just like toggle_visibility Shows/hides all windows.

Proposal

Add a new keybinding bring_all_to_front that does this. I believe we can make this work on GTK too.

@jaysonfrancis
Copy link

Rather then a new keybinding, I propose this could be achieved with modifying the default behavior of toggle_visibility.

From this

If window is state;background, and toggle is pressed --> state;hidden

to

If window is state;background, and toggle is pressed --> state;focus_bring_to_front

In summary,

state_transition = {
 "hidden": "focus_bring_to_front",
 "background": "focus_bring_to_front",
 "focus_bring_to_front": "hidden"
}

@mitchellh
Copy link
Contributor Author

I believe that is how that toggle should work, but I felt it may be useful to have an single-behavior action as well (instead of a toggle).

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