Skip to content

feat: update TUI scheme toggle shortcut to 's' and add --tui-scheme flag - #30

Merged
arran4 merged 3 commits into
masterfrom
jules/tui-scheme-flag-and-shortcut-2982199604136073761
Mar 3, 2026
Merged

feat: update TUI scheme toggle shortcut to 's' and add --tui-scheme flag#30
arran4 merged 3 commits into
masterfrom
jules/tui-scheme-flag-and-shortcut-2982199604136073761

Conversation

@google-labs-jules

Copy link
Copy Markdown

The user requested to change the 'tab' shortcut to change the TUI control scheme to something less common or configurable via a setting/CLI flag.

This PR implements the following changes:

  • Removes the 'tab' shortcut for cycling the control scheme in the TUI, keeping only the 's' key.
  • Updates the TUI text to prompt the user to "press s to change" instead of tab.
  • Adds a new --tui-scheme flag to goplayerctl that allows setting the initial scheme (e.g., arrow, vim, winamp, emacs).
  • Updates shell completion scripts (bash, zsh), documentation (README.md, doc/playerctl-go.1.md) and adds an integration test to cover the new flag.

PR created automatically by Jules for task 2982199604136073761 started by @arran4

…flag

- Removed 'tab' as a shortcut for cycling the TUI control scheme, leaving just 's'.
- Added a new CLI flag `--tui-scheme` to `goplayerctl` to set the initial control scheme (arrow, vim, winamp, emacs).
- Updated the TUI to display the new 's' shortcut in the help text.
- Added bash and zsh auto-completion for `--tui-scheme`.
- Documented `--tui-scheme` in `README.md` and `doc/playerctl-go.1.md`.
- Added a test in `integration_cli_test.go` to ensure `-h` outputs the new flag.
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Comment thread cmd/goplayerctl/tui.go Outdated
m.refreshPlayers()
m.updateCurrentPlayerInfo()
case "tab", "s":
case "s":

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jules let's require a modifier

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Changed to ctrl+s.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jules let's try alt+s ctrl+s means something already in termianl land

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Changed to alt+s.

- Replaced "s" with "ctrl+s" to require a modifier, as requested.
- Updated the visual text to show "ctrl+s".
- Changed the shortcut from 'ctrl+s' to 'alt+s' based on review feedback.
- Updated the TUI text to show 'alt+s'.
@arran4
arran4 merged commit 24296e2 into master Mar 3, 2026
2 checks passed
@arran4
arran4 deleted the jules/tui-scheme-flag-and-shortcut-2982199604136073761 branch March 3, 2026 11:56
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

Successfully merging this pull request may close these issues.

1 participant