Feature idea: Letter keys in scenario picker dialog -> Goto alphabetical #336
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?)
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.
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.
I think instead of this, an actual search field should be added.
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.