Talking about UDC "Go To" and scripting "goto". I'd say when you want to go somewhere using these commands, you either want go to the unfiltered location or set a new filter. You hardly want to keep any current filter (which is unknown to you in the moment you write the command).
So, I suggest if the location is stated without any filter then any current filters should be removed (as if it would be "location|").
Okay?
Should Goto always reset the filter?
-
admin
- Site Admin
- Posts: 66297
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Hmm.. if you go that way can I suggest a change to the Filter command to allow turning the filter on without changing it.
Perhaps change Filter [Pattern] to Filter [-|+||Pattern]
So we could do:
Filter -
or
Filter
To turn off the current filter.
Filter +
To turn on the current filter.
Filter |*.jpg
To activate a new filter of "*.jpg"
It's a little confusing writing the documentation but using a | to start a pattern keeps with the quick filters format, and still allows us to use - or + as the pattern.
Perhaps change Filter [Pattern] to Filter [-|+||Pattern]
So we could do:
Filter -
or
Filter
To turn off the current filter.
Filter +
To turn on the current filter.
Filter |*.jpg
To activate a new filter of "*.jpg"
It's a little confusing writing the documentation but using a | to start a pattern keeps with the quick filters format, and still allows us to use - or + as the pattern.
-
admin
- Site Admin
- Posts: 66297
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
::#355 = View / Current Tab / Toggle No/Last Visual FilterTheQwerty wrote:Hmm.. if you go that way can I suggest a change to the Filter command to allow turning the filter on without changing it.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66297
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Maybe we can solve it with a parameter? E.g. ::Filter \ or ::Filter / ...TheQwerty wrote:Fine can we have a new command?
::FilterToggle = ::#355
For what do you need it? I find toggles unpractical for scripting.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Actually forget everything I've said in this thread.admin wrote:Maybe we can solve it with a parameter? E.g. ::Filter \ or ::Filter / ...TheQwerty wrote:Fine can we have a new command?
::FilterToggle = ::#355
For what do you need it? I find toggles unpractical for scripting.
I do oppose to this idea.
As it stands I can easily remove the filter from the UDC or goto command myself, but there is no good way for me to re-apply the filter that's in use if you automatically remove it.
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
hum, no.admin wrote:Okay?
I don't think I like this idea. Because sometimes I do browse around and I have a VF set and I expect it to stay on, very useful for quick "manual search job". Besides, how would one get to disable any VF then ?
Now reading your first post again I need to ask : you really mean only UDC and script, not any other way to call the goto feature ?
- If you mean all calls to go to, then I'm definitely against it.
- If you do mean only UDC/Scripting, then I find it quite odd, as it's inconsistency and a source for confusion : goto works one way, except for UDC/Scripting ?
Despite that, I guess most the times when I browse around with a VF on, I use Tree, Favorites or Catalog, so I guess I would be fine. Im not sure how others would feel, when they have other way to work...
But if you are to do it, I would think that :
- command filter should allow to turn it on/off, like toggle only we "decide" the state. Eg: "::filter 0" would turn it off (to filter items with a zero, we can just quote: ::filter "0")
- there should be a way, extra param?, to do a goto and ask to let VF unchnaged. Because today we can do a goto and decide : no change, turn it off, set specified VF.
Proud XYplorer Fanatic
-
admin
- Site Admin
- Posts: 66297
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
My reason to suggest a change is: I see myself suffixing locations with "|" only to turn off any filter (or start every script with "filter;") . Not good. I believe the standard desire is "filter off" when you go to a new place. Whereas "keep filter" is rather an exceptional thing in the context of scripting. The exceptional things should always be harder to get. That's a universal law of work economy. So I'll look for a way to say "Goto X and keep any VF".TheQwerty wrote:Actually forget everything I've said in this thread.admin wrote:Maybe we can solve it with a parameter? E.g. ::Filter \ or ::Filter / ...TheQwerty wrote:Fine can we have a new command?
::FilterToggle = ::#355
For what do you need it? I find toggles unpractical for scripting.
I do oppose to this idea.
As it stands I can easily remove the filter from the UDC or goto command myself, but there is no good way for me to re-apply the filter that's in use if you automatically remove it.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66297
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Yes, I see the inconsistency. You are right, it would be confusing. I think about it. There are many options. E.g. a new command ("go"?) to browse a location unfiltered. Or add a parameter to goto to optionally open the location in a new tab (which is always unfiltered).jacky wrote:...No!...
FAQ | XY News RSS | XY X
XYplorer Beta Club