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

Request SUPER+k hotkey interceptor #32

Open
joshmanders opened this issue Nov 22, 2024 · 2 comments
Open

Request SUPER+k hotkey interceptor #32

joshmanders opened this issue Nov 22, 2024 · 2 comments

Comments

@joshmanders
Copy link

Not entirely sure how this would work and what the implications of it are when ran inside things such as VSCode's terminal or what, but on macOS cmd+k in the terminal clears the terminal as if you typed clear manually. I use this extensively to a point that it's my muscle memory to hit it when I'm inside a solo tab such as logs.

While solo redraws the UI every tick, it's not a gigantic issue because if I clear out the screen like that and solo "disappears" I just hit one of the other usual hotkeys such as left or right to cause the screen the redraw. But it would be nice to intercept cmd+k and map it to the clear command inside solo.

@aarondfrancis
Copy link
Owner

Yes! Love this. I have a WIP PR #4 that I accidentally did one million things on, but that includes the ability to register custom hotkeys / palettes. For example, here's the WIP of a Vim palette: https://github.com/aarondfrancis/solo/pull/4/files#diff-72e45d27c61e4656602b1f5c3902c6e848fb131919bfd24e207f62918989b7e5.

So you could register a Josh set of keys and include cmd k in that. I'll try to get that merged soon!

@joshmanders
Copy link
Author

I <3 you, Aaron.

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