Page 1 of 1

about Custom Status Bar Info

Posted: 14 Dec 2021 05:54
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

Re: about Custom Status Bar Info

Posted: 14 Dec 2021 12:28
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.

Re: about Custom Status Bar Info

Posted: 14 Dec 2021 12:33
by PeterH
Seems he has suppressed file extensions for list view - could this be the reason?

Re: about Custom Status Bar Info

Posted: 14 Dec 2021 12:34
by admin
I saw that and tried it, but still could not repro it.

Re: about Custom Status Bar Info

Posted: 14 Dec 2021 12:36
by PeterH
it was a try :roll:

Re: about Custom Status Bar Info

Posted: 14 Dec 2021 12:40
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.

Re: about Custom Status Bar Info

Posted: 14 Dec 2021 13:44
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
02.png
03.png
04.png
05.png
06.png

Re: about Custom Status Bar Info

Posted: 14 Dec 2021 18:44
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