Page 1 of 1
Fuzzy Search for "List of All Commands"
Posted: 23 Nov 2019 22:52
by BlueFx
Heyho!
This is a kind feature request for the "List of All Commands" feature. I use it quite often since IntelliJ IDEs trained me to just type if I want to do something instead of searching within menus and menus of menus - very comfortable and I was very happy that this is also impemented in XY.
I think you could improve it a lot when you allow fuzzy search here. For example, I want to add a comment to a file. So I search for "Comment" - Now I have to press two times down to reach it, there is not an option to take a shortcut for me.
My preferred way would be instead to search for "ta co" - since "tags" and "comment" is both included in the full label "Tags | Comment" - well, this is not a problem here but it can be annoying when doing it often.
ListCommands.png
This would also work perfectly well for sorting columns.
Let's also say I want to sort by modified column. So I type "modified". It would be the 7th entry - I now would like to add "sort" to the query to get the right result. Instead, I either need to press <down> quite often (which is not nice if I use this frequently), or I have to change my search term to "by | modified" next time which is not that intuitive.
ListCommands2.png
By the way - would it be possible to also add the entries of the context menu of the currently selected file in the commands list? (Could be a performance issue, though..)
Best regards and thanks that you already have build my favorite file manager
BlueFx
Re: Fuzzy Search for "List of All Commands"
Posted: 23 Nov 2019 23:08
by highend
That feature already exists
v19.50.0229 - 2019-01-17 11:36
+ Live Filter Box: Added tweak LiveFilterIsShotgun to enable shotgun mode
without the need to define and use a LiveFilterShotgunPrefix.
The new tweak is a bit field:
LiveFilterIsShotgun=1 'shotgun in the main LFB
LiveFilterIsShotgun=2 'shotgun in the small LFBs in dialogs
LiveFilterIsShotgun=3 'shotgun in both
If the tweak is set then any present LiveFilterShotgunPrefix in your
pattern is NOT removed anymore, so you should not pass any prefix if the
tweak is set.
The tooltip of the LFB icon tells you whether shotgun is enabled.
Later the tweak might be lifted to the right-click menu of that icon...
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 11:22
by admin
So like this?:
Code: Select all
ta co = *ta* and *co*
modi sort = *modi* AND *sort*
No, that's not possible at the moment. But I like the idea. I'll look into it.
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 12:20
by admin
It's nice. Next beta:
Code: Select all
+ Live Filter Box in small dialogs: Extended the LiveFilterIsShotgun tweak
to offer an additional functionality: Fat Gun.
-----------------------------------------------------------------------
Typed Pattern Applied Boolean Pattern Example for a Match
-----------------------------------------------------------------------
ta com *ta* and *co* Tags | Comment...
ag mme *ag* and *mme* Tags | Comment...
odi so *odi* AND *so* View | Sort By | Modified
-----------------------------------------------------------------------
So your patterns are separated by a space, auto-surrounded by asterisks
and AND-ed, i.e. the sequence of the patterns is irrelevant.
To enabled the Fat Gun mode set LiveFilterIsShotgun to 64 (or add 64 to
the current value if you are using the tweak already).
LiveFilterIsShotgun=64 'fat gun in the LFBs in small dialogs
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 12:28
by Marco
Will you ever raise the tweak to UI?
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 12:36
by admin
Why not! But I might try to find better terms first for shotgun and fatgun...

Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 12:56
by highend
So if you'd want to use this new feature for all possible circumstances you'd use 71 as the new value?
1+2+4+64
But using e.g. "so mod" doesn't lead to only a single entry for all commands because the fat gun
doesn't take precedence over the shot gun function...
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 13:08
by admin
I don't think it should be combined with shotgun. Didn't do much testing yet...
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 13:16
by highend
Imho this could be a full replacement for the shot gun feature as well (at least a: either use the one or the other).
E.g. 65: It works fine for the List All Commands... feature but not so good for a normal live filtering in a pane
For example: me aut
Lists (what I'd like to see as the only two entries)
!Meta data field test [original author].doc
!Meta data field test [original author].docx
but also:
NVMe M.2 SSD - Externes Gehäuse.txt
Skoda - Monte Carlo [Auslagen].txt
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 13:33
by admin
Well, it's not implemented in the file list.

See change log: + Live Filter Box
in small dialogs: ...
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 13:45
by highend
Oh, I see. First line...
Well, it would be a nice addition to make this available in all places where shot gun is available.
I would prefer the fat gun, more human to think in words (or better: parts of them) instead of only arbitrary character sequences

Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 13:55
by admin
Yes, I agree. It's bit harder to implement for the list, that's why I did not do it right away. But it will come...
Re: Fuzzy Search for "List of All Commands"
Posted: 24 Nov 2019 16:57
by BlueFx
Well...that was really quick
Thank you highend for the answer, this tweak already helps me a lot! And thanks of course Don for implementing the fat gun!
In my opinion, this search pattern does not have to be "hidden" behind a tweak but could be the default behaviour, at least in the dialogs. I think most of us do not want to type pipes anyway
