goto_session: Add --sort-by=alphabetical

Have the interactive session picker list the sessions in a fixed order
rather than by most recent.
This commit is contained in:
Kovid Goyal
2025-09-29 13:03:23 +05:30
parent d8b524c692
commit 2ceddba923
4 changed files with 41 additions and 7 deletions

View File

@@ -55,6 +55,8 @@ easily swap between them, kitty has you covered. You can use the
map f7>h goto_session ~/path/to/hot/hot.kitty-session
# Browse and select from the list of known projects defined via goto_session commands
map f7>/ goto_session
# Same as above, but the sessions are listed alphabetically instead of by most recent
map f7>/ goto_session --sort-by=alphabetical
# Go to the previously active session (larger negative numbers jump further back in history)
map f7>- goto_session -1