Sort Order of profiles

73 views
Skip to first unread message

keenonkites

unread,
Sep 27, 2023, 9:31:34 AM9/27/23
to iterm2-discuss
Hi all,

probably I'm missing something but I have a problem regarding sort order of the profiles.

Description of my setup:
  • iTerm2 3.4.20
  • very few 'normal' static profiles
  • lot's of dynamic profiles created by a python script based on a toml file, inheriting things from the static profiles (and also multistep inheriting from other dynamic profiles)
What happens is the following:
  • 'reloading' Profiles (by touching the files containing the dynamic profiles)
  • quitting/restarting iTerm2
    -> profiles sorting order seems to be 'import order'
  • quitting/restarting iTerm2
    -> no change, sort order is still import order
  • clicking on one of the columns in the 'Profiles' Window to sort it according that column (Profile Name, eg)
    -> properly sorted according to my 'click', sort indicator displayed correctly in column 'Profile Name)
  • quitting/restarting iTerm2
    Profile sort order still according to my last click (e.g. Profile Name), but without indicator in the colum
Questions:
  • Why is after restarting iTerm2 the sort indicator missing despite the fact that it is still sorted by my last choice
  • Is there a way to get back to 'default' sort order ('import order') without having to reload the dynamic profiles ?
I would expect following 'natural' behaviour:
  • sort order is sticky over restarts (that's already the case)
  • sort indicator is also shown properly after restart (not working today)
  • A Click on a column should cycle through
    - ascending
    - desending
    - no sorting
    Right now the 'no sorting' is missing, means reloading the dynamic profiles is needed to get back to 'no sorting'
Hope I explained the problem/misbehaviour understandable enough.

Thanks and regards
Patrik

George Nachman

unread,
Oct 5, 2023, 2:38:54 PM10/5/23
to iterm2-...@googlegroups.com
Commit 3479aa18bd78a94dcf968960f743fb9748651aec modifies the code to record the sort order so that dynamic profiles will restore their position. Because DPs are added at app launch, there was previously no record of where they belonged in the ordered list.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/b234d47b-5139-47d6-81d2-853aafd92ffbn%40googlegroups.com.

Patrik Brunner

unread,
Oct 9, 2023, 3:29:12 AM10/9/23
to iterm2-...@googlegroups.com, George Nachman

Thanks for changing/fixing it... as I can see from the commit history/logs on github, this change didn't make into the new 3.4.21. An the other available builts are either too old (iTerm2 3.50beta15) or do not work on my intel (?) mac (Latest nightly build).

I'm happy to check and test if possible without compiling it on my end.

Cheers

Patrik


Am 05.10.23 um 20:38 schrieb George Nachman:
You received this message because you are subscribed to a topic in the Google Groups "iterm2-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/iterm2-discuss/UHpaitHYzOE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/CAB5Rqo%3DDLSY-iNJf%3D6EV7sFQayA-76COrBq3AoF3fq%3D5O%3DZz4g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages