Two wishes for boxed area in tree

Features wanted...
Post Reply
autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Two wishes for boxed area in tree

Post by autocart »

Both low prio.

(1) Two pics say more than ...
Now it is like this:
boxed branch as of 211101.png
boxed branch as of 211101.png (7.91 KiB) Viewed 710 times
I would like it to be like this:
boxed branch wish for after 211101.png
boxed branch wish for after 211101.png (7.85 KiB) Viewed 710 times
 
(2) Expose the boxed state (Yes/No & Color) for a given branch to scripting.
Right now I can set a box (color) via scripting but I cannot read the value of a given branch before deciding if I want to set a box color. (Unless I go the detour via ini file, which is not pretty.)

In my case particularly I would like to always automatically box the current branch in the tree with my chosen color. Then I can better differentiate the subfolders of the current location from the rest of the tree. Well, I am doing that now already. But if I there was already some box color on a branch for some other reason, then I would like to either not overwrite it in such an exception case or else maybe restore the previous box coloring as soon as I leave that folder. But for that I have to be able to read wheter a box color has already been set before and which one.

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

Re: Two wishes for boxed area in tree

Post by admin »

1) I like it as it is.

2) Next beta.

autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Re: Two wishes for boxed area in tree

Post by autocart »

admin wrote: 10 Nov 2021 12:16 1) I like it as it is.
I assume that is why you made it that way in the first place? :biggrin:
But aside from aesthetics, do you see the improved logic in the new suggestion?

2) Thank you.

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

Re: Two wishes for boxed area in tree

Post by admin »

I don't. Enlighten me.

autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Re: Two wishes for boxed area in tree

Post by autocart »

I am surprised, but happy to be of service: :)

In the current way, the box of the branch also covers the dotted line that goes down to the sibling branches following afterwards.
However, this dotted line is not part of the current branch. Also visually this becomes apparent because it just goes down and leaves the box without connecting to anything. (For the record, it also does not belong to the sibling branch(es) either.) That dotted line really is part of the parent branch(es) of the current branch but not of the current branch itself.

The box in its current state also kind of visually cuts off any following sibling branches from the tree.

All this mentally throws me off a little bit every time that I see it.

EDIT: The way it is now, you have to look twice to understand the relationship of the current branch and the sibling branches.

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

Re: Two wishes for boxed area in tree

Post by admin »

Depends. To me the expansion icon is part of the branch. I only have to look once to understand the relationship of the current branch and the sibling branches. :)

autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Re: Two wishes for boxed area in tree

Post by autocart »

Yea, although I hope you are aware of the fact that I was not talking about the expansion icon, just about the dotted line going directly down from it (if any).
v22.40.0218 - 2021-11-10 12:49
+ SC get got a new named argument "box". Use it to find out whether a tree
folder is boxed and what's the background color.
Syntax: get("box", [path])
path: If missing the current tree path is used.
return: If boxed: the background color in RRGGBB
Else: nothing
Remarks:
- In dark mode it still returns the color it would have in light mode.
That's the value you can use for SC box.
- It does not return a color for a node within a box, just for the boxed
node itself.
Examples:
echo get("box"); //eg "F7F7F4"
echo get("box", "E:\XY");
Thank you.

Post Reply