about Custom Status Bar Info

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
kuiwu_zh
Posts: 42
Joined: 24 May 2018 15:38

about Custom Status Bar Info

Post by kuiwu_zh »

Custom Status Bar Info, this is a very good function.

This is my setting:

<prop #image.dimensions> <prop #27> <prop #194> <prop #195>

For example:
F:\Tmp.png
F:\Tmp.lnk

Question 1. For an image shortcut, I hope to get the size of the image and the target pointed by the shortcut.

I hope it to look like this: 200 x 900 F:\Tmp.png

Question 2. I selected a shortcut, and the status bar does not display the file suffix.


I selected a shortcut, and the status bar does not display the file suffix..png
I selected a shortcut, and the status bar does not display the file suffix..png (24.16 KiB) Viewed 1958 times

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

Re: about Custom Status Bar Info

Post by admin »

1) Some of your properties are of the LNK file, some are of the target of the LNK file. The app cannot know which is meant, so I will add a way for you to make it clear to the app:

Code: Select all

    + Variable <prop ...>: Now there is an alternative <propt ...> which will 
      retrieve the properties from the link target if there is any. For example, 
      if "rocky-3.jpg.lnk" is selected:
        echo <prop #image.dimensions>;  //returns nothing (LNK is not an image)
        echo <propt #image.dimensions>;  //returns "770 x 513"
      If "rocky-3.jpg" is selected then both return the same ("770 x 513").
So in the next beta, you definition should look like this:
<propt #image.dimensions> <propt #27> <prop #194> <prop #195>

2) Strange. I cannot reproduce this here.

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: about Custom Status Bar Info

Post by PeterH »

Seems he has suppressed file extensions for list view - could this be the reason?

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

Re: about Custom Status Bar Info

Post by admin »

I saw that and tried it, but still could not repro it.

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: about Custom Status Bar Info

Post by PeterH »

it was a try :roll:

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

Re: about Custom Status Bar Info

Post by admin »

Thinking about it I guess he has suppressed extensions also in Explorer. That could explain it because the link target is returned by a shell function that obeys to these settings.

PS: I will never understand why anybody decides to hide the most important part of a filename.

kuiwu_zh
Posts: 42
Joined: 24 May 2018 15:38

Re: about Custom Status Bar Info

Post by kuiwu_zh »

Thank you very much.

I found the reason. Now I know that the return values of the following two commands are different.

Code: Select all

  text property ("#ShortcutTarget");
  text property ("#194");


The reason why I hide the suffix is:

1. I know what type of file this is by looking at the icon.
2. Remove the suffix name to make it more concise.
3. My list is sorted by file type, and the files with the same suffix are arranged together. In addition, I have a special column to display the suffix.


Thank you very much.

01.png
01.png (103.17 KiB) Viewed 1892 times
02.png
02.png (100.42 KiB) Viewed 1892 times
03.png
03.png (99.88 KiB) Viewed 1892 times
04.png
04.png (82.95 KiB) Viewed 1892 times
05.png
05.png (96.32 KiB) Viewed 1892 times
06.png
06.png (59.23 KiB) Viewed 1892 times

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: about Custom Status Bar Info

Post by PeterH »

OK: I do understand the wish to sort by ext.

I usually see full names, and no ext-column. If sometimes I need to sort by ext I add that col and click it. But now I see ext double.
Here it could be very nice if the full filenames would have a double header: Name *and* Ext :-) (At least there is enough space for that. :roll: )
Result: I see the full name, but can sort by name or ext however it's needed.
(If I use base-name plus extra ext, the full name is split up in a very ugly way.)

I do realize: this would be very unconventional. But helpful :-)

Edit: typo

Post Reply