Closed ibin7777 closed 11 months ago
I just found out about a feature that is there by default and i didn't even know.
If you click somewhere into the preset list (to get focus) and press first few letters of some preset, it will automatically jump to it. For example, if you press 'B' it will jump to the first item starting with B (in your case BrutalDoom64
. If you press B A R, it will jump to Barista
, etc.
This is like a light-weight seach that will find items by the beginning of their name. Of course if you type a word that is in the middle of the preset name, it will not work, but still nice to know.
I just found out about a feature that is there by default and i didn't even know. If you click somewhere into the preset list (to get focus) and press first few letters of some preset, it will automatically jump to it. For example, if you press 'B' it will jump to the first item starting with B (in your case
BrutalDoom64
. If you press B A R, it will jump toBarista
, etc. This is like a light-weight seach that will find items by the beginning of their name. Of course if you type a word that is in the middle of the preset name, it will not work, but still nice to know.
Hmmm it is strange that somehow it works diffenetly on my side. I'm using doomrunner 1.6.5 on windows 11 So I tried out the step you mentioned, when I type the first letter it worked like you said, it jumped to the first preset that started with that letter But when I try to continue typing, it just takes me to other mod that starts with those letters instead.
So this letter-jump style search is something that is facilitated by Windows itself, if I understand correctly. As Youda said, it only works in sequence, meaning it will only look at the start of the preset name. Here's a couple of key points about this feature, one of which should help with your issue with it.
The takeaway here is that if you want to find something specific, you must type the correct sequence in order and in a fairly short time frame in order to home in on the one you want. You will also need to know what the name starts with, rather than a word within the name, as that will not work. If you are trying to scroll through different entries that start with the same letter, you will have to wait a few moments before pressing the same key again, or else it will interpret it as you doing a multi-key search.
None of this is to say that a search feature wouldn't be useful for DoomRunner, this is just to address the preexisting features that can be uses so far. A good search feature would use a regex style search that would highlight or filter anything containing the search string, not just ones that start with it.
In the mean time, you'll be responsible for sorting all your presets. In addition to drag and drop sorting, you can also use Ctrl + Up arrow and Ctrl + Down arrow to move a selected entry one space at a time. With how the jump-search works, you can also name Separators something that uses less common symbols or numbers so that you can jump to sections of your list more quickly.
Edit 1: The terms "letter-jump" and "jump-search" are not official as far as I know, just something I am using to refer to these concepts colloquially.
Edit 2: It is entirely possible that Windows 11 has changed something about the way this works. I tested this on Windows 10. If it is indeed the OS hooking in some of these basic features, then it is possible Windows 11 changed it in some way.
I just found out about a feature that is there by default and i didn't even know. If you click somewhere into the preset list (to get focus) and press first few letters of some preset, it will automatically jump to it. For example, if you press 'B' it will jump to the first item starting with B (in your case
BrutalDoom64
. If you press B A R, it will jump toBarista
, etc. This is like a light-weight seach that will find items by the beginning of their name. Of course if you type a word that is in the middle of the preset name, it will not work, but still nice to know.
Must be a problem on your side. I am running manjaro linux AUR release.
Anyway, can we have a Ctrl-F menu on the top, a simple regex search will do. It would really help and make it objectively better that ZDL. Thanks a lot for the work you have already done bte
Alright then. Seems like the demand for this is rather high.
Alright then
Thanks a lot !
@Youda008 Is it possible if the same search function could be implemented for all fields IWADs, Mods, Maps. I do not think it would be as useful but if the same thing could just be copied then kindly implement it. Thank you a lot for you work so far.
In case anyone is still interested in this feature and knows C++, there are The qt docs, it describes how to create a search feature. Sadly I still dont know C++.
Ok, this is gonna take time. It turns out this "simple feature" kinda breaks the core principles around which the the preset list (and all other lists) are designed. Problem is not how to find the entries, problems is how to display them so that everything else keeps working.
Hello. For those of you still following this, i have an early access preview of the search feature. I made quite a mess in the code trying to make this work, so some bugs are expected. Please try it out and report back with any bugs you find.
Hello. For those of you still following this, i have an early access preview of the search feature. I made quite a mess in the code trying to make this work, so some bugs are expected. Please try it out and report back with any bugs you find.
Just tried it out, it works really well ! Thanks a lot. I believe I have tested everything with the case sensitive and regex searches. Few bugs with the regex search
.*
and .+
do not work[^P]
it seems to be matching this preset even though it should fail. I believe to prevent this regexes should not match substrings but instead match from the beginning of the string.
.*
and.+
do not work
It works fine for me 😮 It selects all the items in my list. What does it do for you?
- if I have a preset "Preset1" and the regex [^P] it seems to be matching this preset even though it should fail. I believe to prevent this regexes should not match substrings but instead match from the beginning of the string.
But that's how regexes are intended to work, they have always been doing this. https://regex101.com/r/xA275W/1
If you want to search items that don't start with P
, you have to write ^(?!P)
if I have a preset "Preset1" and the regex [^P] it seems to be matching this preset even though it should fail. I believe to prevent this regexes should not match substrings but instead match from the beginning of the string.
But that's how regexes are intended to work, they have always been doing this. https://regex101.com/r/xA275W/1 If you want to search items that don't start with
P
, you have to write^(?!P)
I see, I guess it is complete then. Will probably need more testing though.
@Youda008 Could you push the code to the repository, it is enough for me and I would like to use it natively on linux, thank you for your time and effort.
It's already there. I just can't make an official release yet until i sort out https://github.com/Youda008/DoomRunner/issues/105
It's already there
Oh, sorry didnt see it.
Done and released.
First of all, sincere apology for posting this many requests these days, considering that you have mentioned about hte scaling down. But I really like this launcher and want it to be better. I would happily do it myself and pull if I know C++🤦♂️
However I'd imagine this is not a hard one to do:
You see I have a lot of presets, and I don't like sorting them in alphabetical order, which sometime could be a mess when I'm looking for a specific one
So it would be great if the launcher has a search bar or something.
But also if you don't have time to do it it's totally understandable.