Type Ahead Find: First match beginning, then match anywhere
-
grindax
Re: Type Ahead Find: First match beginning, then match anywh
.
Last edited by grindax on 23 Jan 2016 15:34, edited 1 time in total.
-
admin
- Site Admin
- Posts: 67340
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Type Ahead Find: First match beginning, then match anywh
I don't get it. Example, please.
FAQ | XY News RSS | XY X
-
grindax
Re: Type Ahead Find: First match beginning, then match anywh
.
Last edited by grindax on 23 Jan 2016 15:35, edited 1 time in total.
-
admin
- Site Admin
- Posts: 67340
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Type Ahead Find: First match beginning, then match anywh
This example does not add anything new. You can do this now.
I'm losing interest. I stop following this topic now, sorry.
I'm losing interest. I stop following this topic now, sorry.
FAQ | XY News RSS | XY X
-
grindax
Re: Type Ahead Find: First match beginning, then match anywh
.
Last edited by grindax on 23 Jan 2016 15:35, edited 1 time in total.
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Type Ahead Find: First match beginning, then match anywh
Don before you bow out please consider this post... (I was typing it while you and grindax continued.
)
Given:
a.txt
app.txt
t.txt
tapp.txt
There will be no way to jump to 't' ('t.txt'), let the timeout expire, and then use 'a' to get to 'tapp.txt' instead of it focusing 'a.txt'. If that's what the user is after they should use 'ta'.
That's a sacrifice one would make for this option but I don't see it as ambiguous since the user has to first make the choice to use 'Beginning then anywhere'.
Coincidentally, this is another reason that supporting wildcards in TAF would be awesome since the user could use 't' to get to 't.txt' and then once the timeout expires use '*a' to get to 'tapp.txt'. In this scenario the user has match anywhere disabled - with it enabled XY would automatically treat non-wildcard patterns as surrounded by '*' (so they'd need to use 't*' and then 'a').
EDIT: And the problem with the current options is if you want the ability to match anywhere you typically lose the ability to immediately jump to files beginning with that letter.
In the previous example if the user wanted to use 'tar' to find 'altar.txt' they need match anywhere. But to jump to 't.txt' requires them to at least type two characters ('t.').
See this doesn't seem ambiguous to me but just the way it works. If the timeout has expired focus will jump to the 'a*' items. It will function exactly like TAF does when 'match anywhere' is disabled in that regard.admin wrote:You use "t" to jump to the files starting with "t". Now you want to "match anywhere" from here, right? Say you want to match "app": You type "a"... wham, focus jumps up to the files starting with "a". So the whole "t" thing was pointless.
The ambiguity is that "a" can be a jump letter or the beginning of a multi-character pattern.
Given:
a.txt
app.txt
t.txt
tapp.txt
There will be no way to jump to 't' ('t.txt'), let the timeout expire, and then use 'a' to get to 'tapp.txt' instead of it focusing 'a.txt'. If that's what the user is after they should use 'ta'.
That's a sacrifice one would make for this option but I don't see it as ambiguous since the user has to first make the choice to use 'Beginning then anywhere'.
Coincidentally, this is another reason that supporting wildcards in TAF would be awesome since the user could use 't' to get to 't.txt' and then once the timeout expires use '*a' to get to 'tapp.txt'. In this scenario the user has match anywhere disabled - with it enabled XY would automatically treat non-wildcard patterns as surrounded by '*' (so they'd need to use 't*' and then 'a').
EDIT: And the problem with the current options is if you want the ability to match anywhere you typically lose the ability to immediately jump to files beginning with that letter.
In the previous example if the user wanted to use 'tar' to find 'altar.txt' they need match anywhere. But to jump to 't.txt' requires them to at least type two characters ('t.').
-
admin
- Site Admin
- Posts: 67340
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Type Ahead Find: First match beginning, then match anywh
OK, I have understood it now.
In the next version try to tweak TAFMatchAnywhere=2 and see if this is what you meant.
My confusion came from this:
My confusion came from this:
I understood these as connected: First you jump to the movies beginning with T, then from there you jump to a movie with "hot" in the name. This will not work since pressing "h" will move you up again. But when you meant these as two completely unrelated actions, then okay, it makes sense.grindax wrote:Example use case:
I want to find movies starting with 'T' and I'm currently at the top of the List. So I hit 't' to scroll the List to that area.
Later I want to find a particular movie, so I type one word from the movie title to scroll the List to that file.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 67340
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Type Ahead Find: First match beginning, then match anywh
A problem with TAFMatchAnywhere=2: If at least one file has the sequence "hot" at the beginning, then you will not be able to jump to or highlight any files with "hot" somewhere in the middle (because "match anywhere" is only triggered when there is NO match at the beginning).
Suggestion: trigger "match anywhere" if there is NO match at the beginning OR if the pattern is longer than 1 character.
Suggestion: trigger "match anywhere" if there is NO match at the beginning OR if the pattern is longer than 1 character.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Type Ahead Find: First match beginning, then match anywh
Hmm.. yes that does seem problematic.admin wrote:A problem with TAFMatchAnywhere=2: If at least one file has the sequence "hot" at the beginning, then you will not be able to jump to or highlight any files with "hot" somewhere in the middle (because "match anywhere" is only triggered when there is NO match at the beginning).
Suggestion: trigger "match anywhere" if there is NO match at the beginning OR if the pattern is longer than 1 character.
Your suggestion seems reasonable to me, but would we run the risk of possibly beating XY by typing two characters before it had managed to focus the first-character's match?
-
admin
- Site Admin
- Posts: 67340
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Type Ahead Find: First match beginning, then match anywh
No, XY cannot be beaten. 
FAQ | XY News RSS | XY X
-
grindax
Re: Type Ahead Find: First match beginning, then match anywh
.
Last edited by grindax on 23 Jan 2016 15:35, edited 1 time in total.
-
admin
- Site Admin
- Posts: 67340
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Type Ahead Find: First match beginning, then match anywh
That would kill TAFMatchAnywhere=2 for me. It's fine to have the option to jump to files by first letter, but it's more important for me to cycle all files with "snake" somewhere in the name when I type "snake", and not get stuck with that one file that happens to start with "snake".
FAQ | XY News RSS | XY X
-
grindax
Re: Type Ahead Find: First match beginning, then match anywh
.
Last edited by grindax on 23 Jan 2016 15:36, edited 1 time in total.
-
admin
- Site Admin
- Posts: 67340
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Type Ahead Find: First match beginning, then match anywh
FAQ | XY News RSS | XY X
-
avsfan
- Posts: 554
- Joined: 29 Jun 2006 09:00
- Location: Fort Collins, Colorado
Re: Type Ahead Find: First match beginning, then match anywh
Here's another possibility: If you prefix the find with the caret "^" then force the match at the beginning of the line (i.e. regexp syntax). Otherwise find anywhere.grindax wrote:Is it possible perhaps to separate out the actions of focusing vs. highlighting and jumping to by keyboard shortcut? For example, focus/select by file beginning if possible, but highlight and jump between all matches anywhere.admin wrote:That would kill TAFMatchAnywhere=2 for me. It's fine to have the option to jump to files by first letter, but it's more important for me to cycle all files with "snake" somewhere in the name when I type "snake", and not get stuck with that one file that happens to start with "snake".
So typing "^list" would only match files that started with "list" whereas typing just "list" would match all files containing "list" anywhere in the file name.
Since we already have the "*" as part of the TAF keys, I would think adding this as a prefix would be a natural fit. Since it uses regexp syntax, it's not likely to create much (if any) confusion, and makes a very powerful addition -- no tweaks needed. It just works!
XYplorer Beta Club