You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a neat idea, but I see a few challenges with it:
We can't just detect capslock on a single platform, we need to be able to do it across all our supported platforms. At a minimum, this means
Linux X11
Linux Wayland
Linux TTY
MacOS
Windows
BSD X11
Android (does Termux even have the concept of a Caps Lock?)
We can't trigger a redraw of starship from within the Rust code--only the shell that we're working with can trigger a redraw of the prompt. That means that we need some mechanism for triggering a prompt redraw upon Caps ON/OFF for all 10 of the shells we currently support.
I'll be honest---this seems like a pretty daunting list of requirements to fulfill, but if someone can do it without making the existing code ridiculously complex, it might be worth merging. A simpler way to handle item 1 might be to rely on reading environment data out of the host shell (similar to how the jobs and cmd_duration module currently work), but I have no idea how you could implement item 2 at the moment.
Feature Request
It would be nice to get an indication in my prompt if caps lock is enabled.
The text was updated successfully, but these errors were encountered: