feat: configurable session shortcut keys for sidebar#10
Merged
Conversation
Default to stock tmux choose-session alphabet; configurable via work config get/set.
Read alphabet from @work-session-shortcut-keys global option, falling back to work config session-shortcut-keys.
Support id ($N-1, default) and choose-order (choose-tree -s list position).
Resolve shortcut index from choose-tree -s list position when session-shortcut-index is choose-order. Optional @work-session-shortcut-index tmux global overrides work config.
Explain how sidebar labels relate to choose-tree -K, stock tmux key assignment, and work/tmux configuration options.
3b95314 to
aa40398
Compare
compliance-session-shortcut-index-unsettable: add parseConfigValue case for session-shortcut-index so `work config set` matches README. performance-choose-order-repeated-sort: precompute SessionShortcutContext once per sidebar render instead of re-sorting sessions per row. quality-unit-tests-read-ambient-config: isolate unit tests from host work config and tmux globals via XDG_CONFIG_HOME and index-source override.
aa40398 to
ef8f0c7
Compare
ef8f0c7 to
313f571
Compare
compliance-readme-workd-cache-lifetime: document that tmux globals are cached for the work sidebar client process, not workd. compliance-tmux-client-config-coupling: resolve session-shortcut-keys and session-shortcut-index from src/sidebar/session-shortcut.ts; keep src/tmux/ as a thin CLI wrapper without config imports. Includes prettier table alignment in README for pre-commit.
313f571 to
9eb1681
Compare
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #8 (session shortcut keys portion; VCS cache/throttle was addressed in #9).
session-shortcut-keysconfig (default stock tmux alphabet) with optional@work-session-shortcut-keystmux global overridesession-shortcut-indexconfig (iddefault, orchoose-orderfor choose-tree list position) with optional@work-session-shortcut-indextmux globalConfiguration
Or via tmux globals alongside
bind-key s choose-tree -sZ -K …:set-option -g @work-session-shortcut-keys "0123456789abcdegiopu" set-option -g @work-session-shortcut-index choose-orderTest plan
npm run typechecknpm run lintnpm run test:unit(15 tests)choose-order, confirm sidebar labels matchprefix + spicker with gapped session idsMade with Cursor