AB und SC weirdness [it's a BranchView Setting!]

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

AB und SC weirdness [it's a BranchView Setting!]

Post 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
Last edited by Filehero on 09 Nov 2013 07:49, edited 2 times in total.

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

Re: AB und SC weirdness

Post by admin »

Works fine here, but only if you don't forget the colon in /:flatfiles ;)

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: AB und SC weirdness

Post 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). :whistle:


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

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

Re: AB und SC weirdness

Post by admin »

It works all fine here.

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: AB und SC weirdness

Post by Filehero »

admin wrote:It works all fine here.
Checked it on two machines today, no way.

With

Code: Select all

E:\aaa\bbb\ccc\? /:flatdirs

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

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

Re: AB und SC weirdness

Post by admin »

Tried it as well fresh. All perfect. :| Probably a misunderstanding. What exactly do you do?

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: AB und SC weirdness

Post 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

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

Re: AB und SC weirdness

Post by admin »

Moin, the script works perfectly here. Hm. :veryconfused:

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: AB und SC weirdness

Post by Filehero »

admin wrote:Moin, the script works perfectly here. Hm. :veryconfused:
I did expect it, lol (was obvious from your first posts).

Well, I'll have another look - but not today. :wink:


Cheers,
Filehero

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: AB und SC weirdness [it's a BranchView Setting!]

Post 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

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

Re: AB und SC weirdness [it's a BranchView Setting!]

Post by admin »

Moin, I had tested that already and it still works fine here! (also in fresh) :veryconfused:

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: AB und SC weirdness [it's a BranchView Setting!]

Post by Filehero »

Hi,

yes, with fresh all is fine. Replacing the 'do unbranch' line with

Code: Select all

msg <curpath>;
goto <curpath>;
changes nothing either, I'm out of ideas now as well.

Having breakfast now seems to be a good idea. :om:


Cheers,
Filehero

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

Re: AB und SC weirdness [it's a BranchView Setting!]

Post by admin »

Got it! It was the Locked Tree.

grindax

Re: AB und SC weirdness [it's a BranchView Setting!]

Post by grindax »

.
Last edited by grindax on 23 Jan 2016 17:33, edited 1 time in total.

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

Re: AB und SC weirdness [it's a BranchView Setting!]

Post 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. :whistle:

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? :shock: Win8? They should pay me for this! :mrgreen:

Post Reply