Skip to content

Conversation

@waj
Copy link

@waj waj commented Feb 4, 2026

Introduce a new --sort flag for the list-windows command. Supported values are recent, app-name, and window-title, and multiple values may be specified as a comma-separated list.

For backward compatibility, the default sort order is app-name,window-title. Using --sort recent sorts windows by most recently focused.

Although there was no comments in the discussion, this was motivated by #1890.

PR checklist

  • Explain your changes in the relevant commit messages rather than in the PR description. The PR description must not contain more information than the commit messages (except for images and other media).
  • Each commit must explain what/why/how and motivation in its description. https://cbea.ms/git-commit/
  • Don't forget to link the appropriate issues/discussions in commit messages (if applicable).
  • Each commit must be an atomic change (a PR may contain several commits). Don't introduce new functional changes together with refactorings in the same commit.
  • ./run-tests.sh exits with non-zero exit code.
  • Avoid merge commits, always rebase and force push.

Failure to follow the checklist with no apparent reasons will result in silent PR rejection.

Introduce a new `--sort` flag for the `list-windows` command. Supported values
are `recent`, `app-name`, and `window-title`, and multiple values may be specified
as a comma-separated list.

For backward compatibility, the default sort order is `app-name,window-title`.
Using `--sort recent` sorts windows by most recently focused.
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