Feature idea: Letter keys in scenario picker dialog -> Goto alphabetical #336

Closed
opened 2023-02-01 21:38:14 +00:00 by NQNStudios · 4 comments
NQNStudios commented 2023-02-01 21:38:14 +00:00 (Migrated from github.com)

If I have the whole archive of scenarios installed it can be painful clicking through pages of 3 to find one. What if pressing a letter key jumped to the first page with a custom scenario that starts with that letter? (Edge case: If no custom scenario starts with the letter, maybe do nothing?)

If I have the whole archive of scenarios installed it can be painful clicking through pages of 3 to find one. What if pressing a letter key jumped to the first page with a custom scenario that starts with that letter? (Edge case: If no custom scenario starts with the letter, maybe do nothing?)
CelticMinstrel commented 2023-02-02 01:01:58 +00:00 (Migrated from github.com)

I think if no scenario begins with that letter it should jump to the position where a scenario beginning with that letter would fit into the listing.

I think if no scenario begins with that letter it should jump to the position where a scenario beginning with that letter would fit into the listing.
NQNStudios commented 2023-02-02 21:27:36 +00:00 (Migrated from github.com)

Part of this would involve extracting the alphabetization behavior here:

ca816995ba/src/game/boe.fileio.cpp (L344)

It discounts articles "a" and "the" from alphabetization. (Which would also be a "gotcha" if the game were translatable.)

Letter key shortcuts would want to do the same, so the stripping of those articles should be made into a reusable function name_for_sort or something, which the std::sort comparator would use, and the hotkeys would use.

Part of this would involve extracting the alphabetization behavior here: https://github.com/calref/cboe/blob/ca816995ba9da539ed08a568616fbf36bea8bde0/src/game/boe.fileio.cpp#L344 It discounts articles "a" and "the" from alphabetization. (Which would also be a "gotcha" if the game were translatable.) Letter key shortcuts would want to do the same, so the stripping of those articles should be made into a reusable function name_for_sort or something, which the std::sort comparator would use, and the hotkeys would use.
NQNStudios commented 2025-05-24 20:44:08 +00:00 (Migrated from github.com)

I think instead of this, an actual search field should be added.

I think instead of this, an actual search field should be added.
NQNStudios commented 2025-05-25 01:33:07 +00:00 (Migrated from github.com)

I guess a search field is a little bit worse in some cases. if you type Q it could highlight a scenario closer in the list to your current page, but not starting with Q.

I guess a search field is a little bit worse in some cases. if you type Q it could highlight a scenario closer in the list to your current page, but not starting with Q.
Sign in to join this conversation.
No description provided.