Page 4 of 8

Re: New Columns

Posted: 07 Feb 2014 09:49
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.

Re: New Columns

Posted: 07 Feb 2014 09:53
by highend
Yeah, some kind of PFA on speed^^

+1

Re: New Columns

Posted: 07 Feb 2014 10:04
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:

Re: New Columns

Posted: 07 Feb 2014 10:10
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)

Re: New Columns

Posted: 07 Feb 2014 10:19
by binocular222
I have full row selection ON, so left click does not launch the link
How to turn full row selection OFF?

Re: New Columns

Posted: 07 Feb 2014 10:47
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

Re: New Columns

Posted: 07 Feb 2014 10:55
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).

Re: New Columns

Posted: 07 Feb 2014 10:59
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

Re: New Columns

Posted: 07 Feb 2014 17:47
by admin
I'm not sure about that. Other opinions?

Re: New Columns

Posted: 07 Feb 2014 17:58
by binocular222
2 states only:
- Empty
- Yes

Re: New Columns

Posted: 07 Feb 2014 18:05
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".

Re: New Columns

Posted: 07 Feb 2014 18:09
by binocular222
But XY should display as empty instead of the word "No" (reduce clutter)

Re: New Columns

Posted: 07 Feb 2014 18:24
by Marco
Eventually there will be a checkbox instead of a Yes/No.

Re: New Columns

Posted: 08 Feb 2014 16:57
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

Re: New Columns

Posted: 08 Feb 2014 17:04
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.