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

Highlight currently active shortcut in list dropdown instead of shortcut label #835

Open
appel opened this issue Mar 4, 2024 · 0 comments

Comments

@appel
Copy link

appel commented Mar 4, 2024

Forgive me if this has been asked and answered before. I searched but could not find it. I'm currently using shortcuts in list form. I assumed when selecting a shortcut from the list dropdown that the shortcut name would be listed instead of the label, similar to how an HTML select works, but it appears that's not the case. Is there any way I can make this happen? And if not, might this be a good (optional) feature?

Currently, with SomaFM - Folk Forward playing:

image

What I expected:

image

I realize that the info is duplicated in my mockup, so perhaps it should be optional.

My config:

type: custom:mini-media-player
entity: media_player.downstairs
shortcuts:
  label: Pick a stream...
  list:
    - type: script
      name: SomaFM - Folk Forward
      id: script.media_somafm_folk_fwd
    - type: script
      name: SomaFM - Seven Inch Soul
      id: script.radio_somafm_seven_inch_soul

Thanks in advance!

@appel appel changed the title Highlight currently active item in list dropdown Highlight currently active shortcut in list list dropdown instead of shortcut label Mar 4, 2024
@appel appel changed the title Highlight currently active shortcut in list list dropdown instead of shortcut label Highlight currently active shortcut in list dropdown instead of shortcut label Mar 4, 2024
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

1 participant