Page 1 of 2
AB und SC weirdness [it's a BranchView Setting!]
Posted: 06 Nov 2013 20:58
by Filehero
Hi Don,
didn't find a proper title, thus I've chosen a catchy one.
Strange things happen with
AddressBar and SC
goto/replace over here.
Following combination
works
Code: Select all
AB before: D:\aaa\bbb\ccc\? /:flatfiles
Script run: goto replace(tab(get, "term"), "? /:flatfiles", "? /:flatdirs");
-> AB after: D:\aaa\bbb\ccc\? /:flatdirs
Fine.
Following combination (the
Undo BranchView)
doesn't work
Code: Select all
AB before: D:\aaa\bbb\ccc\? /:flatdirs
Script run: goto replace(tab(get, "term"), "? /:flatdirs", "");
-> AB after: D:\aaa\bbb\ccc\? __>/:flatdirs<___UNCHANGED
Strange!
Any idea?
Cheers,
Filehero
Edit: Added copy-missed colons
Re: AB und SC weirdness
Posted: 07 Nov 2013 09:50
by admin
Works fine here, but only if you don't forget the colon in
/:flatfiles 
Re: AB und SC weirdness
Posted: 07 Nov 2013 11:11
by Filehero
admin wrote:Works fine here, but only if you don't forget the colon in
/:flatfiles 
Ah damn, updated my post (copy&paste error).
So, if your AB displays something like
Code: Select all
C:\Temp\IrfanView\Plugins\? /:flatdirs
you can get rid of the Branch View switches by running
Code: Select all
goto replace(tab(get, "term"), "? /:flatdirs", "");
For me it works with all checked tokens
except "flatdirs".
Can someone else repro?
Cheers,
Filehero
Re: AB und SC weirdness
Posted: 07 Nov 2013 11:24
by admin
It works all fine here.
Re: AB und SC weirdness
Posted: 07 Nov 2013 19:32
by Filehero
admin wrote:It works all fine here.
Checked it on two machines today, no way.
With
Code: Select all
goto replace(tab(get, "term"), "? /:flatdirs", "");
leaves AB seemingly untouched,
whereas
Code: Select all
goto replace(tab(get, "term"), "? /:flatdirs", "ddd");
at least raises an error
"Could not find:
E:\aaa\bbb\cccddd"
It's not a biggie, but strange.
Cheers,
Filehero
Re: AB und SC weirdness
Posted: 07 Nov 2013 20:22
by admin
Tried it as well fresh. All perfect.

Probably a misunderstanding. What
exactly do you do?
Re: AB und SC weirdness
Posted: 08 Nov 2013 06:34
by Filehero
Moin Don,
actually I'm trying to understand why the last statement in
this script has stopped working, so that XY can't "unbrunch" anymore.
admin wrote:What exactly do you do?
I set the AB to the path+QNC as stated in my previous. Then I'm running the
goto replace statement via Scripting|Run Script...
Cheers,
Filehero
Re: AB und SC weirdness
Posted: 08 Nov 2013 09:54
by admin
Moin, the script works perfectly here. Hm.

Re: AB und SC weirdness
Posted: 08 Nov 2013 13:26
by Filehero
admin wrote:Moin, the script works perfectly here. Hm.

I did expect it, lol (was obvious from your first posts).
Well, I'll have another look - but not today.
Cheers,
Filehero
Re: AB und SC weirdness [it's a BranchView Setting!]
Posted: 09 Nov 2013 07:55
by Filehero
Moin Don,
I had another look (I actually really feared that I had to go through every single item of my ini again) and found it's the BV setting
Persist Across Folders. When checked the behaviour described above gets evident, if unchecked all is fine.
Now I do wonder why this happens because the entire toggle cycle occurs without any folder change.
Cheers,
Filehero
Re: AB und SC weirdness [it's a BranchView Setting!]
Posted: 09 Nov 2013 08:11
by admin
Moin, I had tested that already and it still works fine here! (also in fresh)

Re: AB und SC weirdness [it's a BranchView Setting!]
Posted: 09 Nov 2013 08:54
by Filehero
Hi,
yes, with fresh all is fine. Replacing the 'do unbranch' line with
changes nothing either, I'm out of ideas now as well.
Having breakfast now seems to be a good idea.
Cheers,
Filehero
Re: AB und SC weirdness [it's a BranchView Setting!]
Posted: 09 Nov 2013 12:50
by admin
Got it! It was the Locked Tree.
Re: AB und SC weirdness [it's a BranchView Setting!]
Posted: 09 Nov 2013 13:00
by grindax
.
Re: AB und SC weirdness [it's a BranchView Setting!]
Posted: 09 Nov 2013 13:11
by admin
grindax wrote:admin wrote:Got it! It was the Locked Tree.
Considering it is a frequent factor in bug reports, I would recommend you keep Locked Tree enabled in your development environment.
btw, Windows Explorer / File Explorer in modern versions of Windows use a locked tree by default.
1.

Yes, with locked tree things go along a different path.
2. Really?

Win8? They should pay me for this!
