New Columns

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: New Columns

Post by LittleBiG »

Code: Select all

      - Script (8): Script.
                On left-click XYplorer will run the script.
                Editable via right-click, multi-line edit box.
                NOT IMPLEMENTED. Might be too crazy.
Crazy? Crazily amazing! If you wanted to do something with only 1 file, this would be the fastest way to achieve. You could create special file popups, for example. I would love it.

highend
Posts: 14953
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: New Columns

Post by highend »

Yeah, some kind of PFA on speed^^

+1
One of my scripts helped you out? Please donate via Paypal

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

Re: New Columns

Post by admin »

Note that this is possible already now. The "Link" column type (which BTW I renamed to "Location" column) also supports scripts (just like the Address Bar...). There are two things missing yet, which I have just added some minutes ago:

Code: Select all

    + New temporary variable <taggeditem>, resolves to the item (full path) that 
      is being tagged via clicking a column cell. In a script called by 
      this click event <taggeditem> can be used. After the click is fully 
      processed the variable is reset to nothing.
      For example, in a column of type Location you give a script as location:
        ::echo <taggeditem>;
    + New temporary variable <taggedcolumn>, resolves to the column ID (as used 
      by SC tag) that is being tagged via clicking a column cell. In a script 
      called by this click event <taggedcolumn> can be used. After the click is 
      fully processed the variable is reset to nothing.
      For example, you now can design a a self-destroying tag à la Mission 
      Impossible (again in a Location column):
        ::tag '::echo "I''m gone.";', <taggeditem>, <taggedcolumn>;
      So, with <taggeditem> and <taggedcolumn> you have sort of the X and Y 
      coordinates of the clicked tag cell. Hence XYplorer. :)
:biggrin:

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

Re: New Columns

Post by admin »

binocular222 wrote:Link column should:
- Left click launch the 1st link (ctrl+left click maybe more common sense)
- allow relative to <curpath> instead of <xypath>

Edit:
Date Column:
When enter date like this: 2010-07-21 17:16:33
XY trim off the ms and display as: 2010-07-21 17:16
What if I want to display full ms or display only the yyyy-mm-dd? Can XY rely on systme's regional setting or we need format switch?
Hm, Left click DOES launch the 1st link. :?

The date display format should be the same as in the other date columns (Modified, etc). (Fractions not yet supported, might come later)

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: New Columns

Post by binocular222 »

I have full row selection ON, so left click does not launch the link
How to turn full row selection OFF?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

calude
Posts: 355
Joined: 13 Aug 2008 10:16
Location: Switzerland
Contact:

Re: New Columns

Post by calude »

- YesNo (3): Two states, internally 1 and 0, displayed as localized "Yes" and "No".
By default initialized to 0 ("No").
Left-click toggles the state.
Editable via right-click, menu options.
It would be very useful to have the [empty] value as init

Calude

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

Re: New Columns

Post by admin »

calude wrote:
- YesNo (3): Two states, internally 1 and 0, displayed as localized "Yes" and "No".
By default initialized to 0 ("No").
Left-click toggles the state.
Editable via right-click, menu options.
It would be very useful to have the [empty] value as init

Calude
Why? (I'm planning to display this as a checkbox).

calude
Posts: 355
Joined: 13 Aug 2008 10:16
Location: Switzerland
Contact:

Re: New Columns

Post by calude »

admin wrote:
calude wrote:
- YesNo (3): Two states, internally 1 and 0, displayed as localized "Yes" and "No".
By default initialized to 0 ("No").
Left-click toggles the state.
Editable via right-click, menu options.
It would be very useful to have the [empty] value as init
admin wrote: Why? (I'm planning to display this as a checkbox).
_no answer_ is a state for me, but if you show it as as _no_ check box this is fine
Cal

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

Re: New Columns

Post by admin »

I'm not sure about that. Other opinions?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: New Columns

Post by binocular222 »

2 states only:
- Empty
- Yes
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: New Columns

Post by Marco »

Well, if you consider a fresh XY you have 7 labels, one being "None". Internally, tag.dat-wise, an item labeled "None" has no label (provided it has some other sort of tags that makes it listed in tag.dat). Therefore, a "No"-checked item should have no value and thus all items are initialized to "No".
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: New Columns

Post by binocular222 »

But XY should display as empty instead of the word "No" (reduce clutter)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: New Columns

Post by Marco »

Eventually there will be a checkbox instead of a Yes/No.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: New Columns

Post by binocular222 »

v13.70.0121:
- Y/N column: Select 1 file then click on check box which belongs to another file will toggle the box in the former file instead of the box under cursor
- Link column: link to xys script will goto that xys file instead of launching the script
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: New Columns

Post by admin »

binocular222 wrote:v13.70.0121:
- Y/N column: Select 1 file then click on check box which belongs to another file will toggle the box in the former file instead of the box under cursor
- Link column: link to xys script will goto that xys file instead of launching the script
1. You should put "I use Full Row Select" in your signature. In the FRS world a lot of things are strange. I will see if I can do something about this...
2. use ::load ...

PS: While point 1. is generally true in this case you really caught a bug in FRS and non-FRS.

Post Reply