Skip to content

Please add option to disable workspace toggling behavior #24

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

Open
emchristiansen opened this issue Apr 5, 2025 · 0 comments
Open

Please add option to disable workspace toggling behavior #24

emchristiansen opened this issue Apr 5, 2025 · 0 comments

Comments

@emchristiansen
Copy link

emchristiansen commented Apr 5, 2025

Add option to disable workspace toggling behavior

When using tmux-tilish, pressing the same workspace keybinding twice (e.g., Alt+3 twice) currently toggles between the selected workspace and the previous workspace. This creates a toggle behavior that can be confusing and differs from the typical behavior in other window managers where selecting a workspace is idempotent.

Feature Request

Please add a configuration option to disable the workspace toggle behavior. Something like:

set -g @tilish-workspace-toggle 'off'

When this option is set to 'off', pressing a workspace keybinding repeatedly (e.g., Alt+3 multiple times) should either do nothing or consistently select that workspace without toggling back to the previous one.

Current Behavior

As described in the documentation:

"if you press Alt+3 to switch to workspace 3 and then press it again, you will be sent back to the previous workspace you were using."

Desired Behavior

When the proposed option is set to 'off':

  • Pressing Alt+3 would switch to workspace 3
  • Pressing Alt+3 again would either do nothing or reselect workspace 3 (without toggling)

This would make the workspace selection behavior more consistent with standard window managers and more predictable for users who prefer idempotent workspace selection.

Why This Matters

The current toggle behavior can be disorienting for users who are accustomed to idempotent workspace selection in other environments. It can lead to accidentally switching back to a previous workspace when intending to refocus the current one. Having this as a configurable option would improve the plugin's flexibility while maintaining the current behavior for users who prefer it.

Thanks!

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