Filter by Selected Extension(s)

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Filter by Selected Extension(s)

Post by jacky »

Code: Select all

    * Menu View|Tab: renamed "Filter by Focused Extension" to "Filter by 
      Selected Extension(s)", and changed the functionality: now the 
      extensions of all selected items are used. Only if there are no 
      selections, the extension of the focused item is used. 
hmm got a couple of questions here:
- Seems it doesn't work anymore if the focused/selected item(s) are folders; but only files. Used to work with folders though, why did you change it?
- Also, if the item has no extension, it used to go for !*.* which was a nice trick I thought. I understand it cannot be used when more than one item are selected (as invertion flag is global), but if there's only one item to deal with or all have no extension, then why not keeping this up?
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Filter by Selected Extension(s)

Post by admin »

jacky wrote:

Code: Select all

    * Menu View|Tab: renamed "Filter by Focused Extension" to "Filter by 
      Selected Extension(s)", and changed the functionality: now the 
      extensions of all selected items are used. Only if there are no 
      selections, the extension of the focused item is used. 
hmm got a couple of questions here:
- Seems it doesn't work anymore if the focused/selected item(s) are folders; but only files. Used to work with folders though, why did you change it?
- Also, if the item has no extension, it used to go for !*.* which was a nice trick I thought. I understand it cannot be used when more than one item are selected (as invertion flag is global), but if there's only one item to deal with or all have no extension, then why not keeping this up?
Yes. Both points could be solved by one little change: set pattern to "!*.*" if no extension and < 2 items selected. Note that folders and extension-less files are treated the same.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

So can we presume this little change may be implemented sometime soon? :wink:
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

j_c_hallgren wrote:So can we presume this little change may be implemented sometime soon? :wink:
When I said "could be solved" I meant past tense, not maybe-tense. So it has been solved already. :)

"could " is ambiguous, right?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

I tend to think of "could" as either occuring right now or in future...but mainly future...however, my dictionary says it's past tense of "can"...and as a polite form in the present....now I'm confused!

Anyway, had you said that problem "was solved" instead of "could be", I'd not said a word.. :wink:
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Post by lukescammell »

Ain't English grand :roll:
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Filter by Selected Extension(s)

Post by jacky »

admin wrote:Yes. Both points could be solved by one little change: set pattern to "!*.*" if no extension and < 2 items selected. Note that folders and extension-less files are treated the same.
Cool :) Technically, not sure why the "< 2 items selected" is needed, just if all items don't have extension if enough, or?

Also, you say folders & extension-less file are treated the same, but folders are always treated as extension-less item, evn when they do have "extension" (as in a dot in their name), and I don't think this is such a good idea.
First off, because one could want to filter items by the extension of one folder! And second, well IMO it doesn't make sense to treat them as extension-less here, while they'll be treated otherwise with !*.* (which will only show folders with no extension (dot) in their names!!)
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Filter by Selected Extension(s)

Post by admin »

jacky wrote:
admin wrote:Yes. Both points could be solved by one little change: set pattern to "!*.*" if no extension and < 2 items selected. Note that folders and extension-less files are treated the same.
Cool :) Technically, not sure why the "< 2 items selected" is needed, just if all items don't have extension if enough, or?

Also, you say folders & extension-less file are treated the same, but folders are always treated as extension-less item, evn when they do have "extension" (as in a dot in their name), and I don't think this is such a good idea.
First off, because one could want to filter items by the extension of one folder! And second, well IMO it doesn't make sense to treat them as extension-less here, while they'll be treated otherwise with !*.* (which will only show folders with no extension (dot) in their names!!)
Part 1: You are right. If all items don't have extension is enough.
Part 2: I was wrong. Gotta change something there...

2:0 for jacky. :)

Post Reply