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

Feature request: Make session list sort type configurable #508

Open
Avishayy opened this issue Aug 15, 2021 · 2 comments
Open

Feature request: Make session list sort type configurable #508

Avishayy opened this issue Aug 15, 2021 · 2 comments

Comments

@Avishayy
Copy link

Avishayy commented Aug 15, 2021

from the man page:

choose-tree [-GNrswZ] [-F format] [-f filter] [-O sort-order] [-t target-pane] [template]
     Put a pane into tree mode, where a session, window or pane may be chosen
     interactively from a list.  -s starts with sessions collapsed
     ...
     -O specifies the initial sort field: one of ‘index’, ‘name’, or ‘time’.

Adding a new config to pick from either index, name or time would be nice :)

Thank you!

@Avishayy Avishayy changed the title Make session list sort type configurable Feature request: Make session list sort type configurable Aug 15, 2021
@gpakosz
Copy link
Owner

gpakosz commented Oct 19, 2021

Hello @Avishayy 👋

Sorry for the late reply.

I'm not sure I want to add an option for this as it's also just a matter of overriding a binding in your .tmux.conf.local copy.

bind-key -T prefix s choose-tree -Zs -O name
bind-key -T prefix w choose-tree -Zw -O name

@gpakosz
Copy link
Owner

gpakosz commented Oct 31, 2021

Hello @Avishayy 👋

Does it work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants