Page 1 of 1

Visual Filter with Branch View

Posted: 18 Dec 2017 08:43
by autocart
Hello Don,
Hello all,

I would like to basically do this: Generic file types filter with branch view viewtopic.php?f=3&t=16018
Option 1, which I've so far:

Code: Select all

goto "<curpath>? /types={:Image} /flat";
This generally works but it shows the light blue QS-bar, stating: "Quick Search: _/types={:Image}" (_ standing for the "space" visualisation).
The content of the QS-bar is not pretty and I would like to have the brown VF-bar, not the QS-bar.

Option 2:

Code: Select all

goto "<curpath>? /flat";
  filter """Image|Image Files"" {:Image}", 4;
Gives me the results I want, but is much slower - obviously because first the whole branch is loaded before the VF is applied.

I would like an option of how to combine the speed of the first option with the output of the second one.
Any luck that this might come or is it already possible and I overlooked it?
Thx and regards, S.

Re: Visual Filter with Branch View

Posted: 18 Dec 2017 09:04
by jupe
Would it be acceptable to you to put them in a temp paper folder, it seems to meet your criteria,

Code: Select all

paperfolder("images", quicksearch("/types={:Image} /flat", "<curpath>"));

Re: Visual Filter with Branch View

Posted: 18 Dec 2017 10:08
by autocart
jupe wrote:

Code: Select all

paperfolder("images", quicksearch("/types={:Image} /flat", "<curpath>"));
Thx, that also is an option (3). The downside is that it does not auto-refresh itself as a normal branch view does.

Re: Visual Filter with Branch View

Posted: 16 Jan 2018 07:32
by autocart
Thx, Don, for removing that ugly space substitution character in cases as option 1 above.

Code: Select all

v18.60.0104 - 2018-01-15 18:03
   ...
    ! Quick Search with Branch View: Space substitution character was shown when
      it shouldn't. Fixed.
Still, since I like the brown VF infor bar better, I am using this code now (on a toolbar button):

Code: Select all

if (tab("get", "flags") >= 1 and tab("get", "flags") <= 3) { //1 = Locked Location, 2 = Locked Home Zone, 3 = both
  tab("new");
  }
  filter """Image|Image Files"" {:Image}", 4;
  goto "<curpath>? /flat";
  if(get("View") != 6) {#308;} //view 6 and #308=thumbs3
The last line switches to Thumbnails #3 view.
I am not sure if it behaves "natively" in all possible tab scenarios but for the sake of the more comfortable info bar I prefer it for now.