Re: Re: drop down box or something like it.

"Jochen Ritzel" <[email protected]>
Newsgroups gmane.comp.windows.shells.litestep
Message-ID <op.ttl0v5pgd9nuum@w00t>
Since i never even looked at the xtextedit or alias modules ( lua ftw ), i  
might be wrong about it but i guess it's like this:

He uses something like !PopupDynamicActionFolder:!savesettings  
MYSETTING:"$FOLDER$*/"
%1 and %2 in the alias module are then replaced by the bang arguments,  
which would be MYSETTING and some file in FOLDER you clicked, creating  
something like

!execute [!setEvar MYSETTING > $FOLDER$FILE_I_CLICKED.TXT][!xtextSaveEvar   
$settingsFile$@ @MYSETTING@ @$FOLDER$FILE_I_CLICKED.TXT@]

whatever the first '>' means, probably you'll see it in the alias docs (or  
just a typo).
What is does should be clear now i guess.

As for the regex, hmm ...
(^%1 > \=)(.*\\)(.*\..*\=)

everything inside ( ) are captures, which in turn get assigned to \1, \2,  
\3.
So \3 would be what (.*\..*\=) matches, which is, "any character, as often  
as possible, then a . then any character, as often as possible, then the  
end of the string." ... in a string like' E:\hello\test.txt' that would be  
'test.txt'.
But you'll have to learn regex and xtextedits special syntax to fully  
understand it ( or just use the simpler lua patterns ^^ )

On Fri, 08 Jun 2007 16:47:36 +0200, Hale, Paul <Paul.Hale-uv/[email protected]>  
wrote:

> SNIP
>> >> *Popup "Select color scheme" !new !popupSchemes
>> >>    *Popup "Select color scheme"
>> >> !popupDynamicACtionFolder:!apply_colors:"$SchemesDir$"
>> >> *Popup ~New
>> >>
> SNIP
>> >
>> > Wow... That is perfect actually. Okay, now how about saving the
>> > filename as an evar?
> SNIP
>>
>> That's why I defined bangs like these:
>>
>> *alias !saveSetting !execute [!setEvar %1 > %2][!xtextSaveEvar
> @$settingsFile$@ @%1@ @%2@]
>> *alias !stripPath !execute [!xtextReplace @$settingsFile$@ @(^%1 >
> \=)(.*\\)(.*\..*\=)_@ @\1\3@]
>> *alias !stripExtn !execute [!xtextReplace @$settingsFile$@ @(^%1 >
> \=.*)(\..*\=)_@ @\1\=@]
>>
>
> OK, bear with me as I am slow. As I understand it, the popupaction uses
> the data after the " : " as the arguments, so when looking at your
> Alias's I am trying to figure where the file path is represented. I
> don't understand the %1 %2. Also, in this example, is $settingFile$ the
> themevars? If so, where is the Var that it is trying to replace? I am
> used to the
>
> !xTextSaveEvar @file_the_Var_is_in@ @var_to_be_changed@ "new_value"
>
> format. In my head, I am trying to figure out how your configs work.
> Sorry if I sound dumb on this, I just don't get it yet.
>
>>
>>
>
> ------------------------------------------------------------------------------
> The information transmitted is intended only for the person or entity to  
> which it is addressed and may
> contain confidential, proprietary and or privileged material. Any  
> review, retransmission, dissemination
> or other use of, or taking of any action in reliance upon this  
> information by persons or entities other
> than the intended recipient is prohibited. If you received this email in  
> error, please contact the sender
> and delete the material from all computers.
>
> This electronic mail message was sent from L. M. Berry & Company or  
> Berry Network, Inc. Our primary business
> address is 3170 Kettering Blvd., Dayton, OH 45439. This message may  
> constitute a commercial solicitation or
> advertisement as defined by the CAN-SPAM act of 2003. If you do not wish  
> to receive future commercial
> electronic mail solicitations or advertisements from L. M. Berry &  
> Company or Berry Network, Inc.,
> please send a request to [email protected]
> ==============================================================================
>
>
> ---------------------------------------------------------------------
>     Can't Unsubscribe? Check http://desktopian.org/listunsub.html
>         LS List Homepage: http://wuzzle.org/list/litestep.php
>             Get the LS FAQ: http://lsfaq.shellfront.org


---------------------------------------------------------------------
    Can't Unsubscribe? Check http://desktopian.org/listunsub.html
        LS List Homepage: http://wuzzle.org/list/litestep.php
            Get the LS FAQ: http://lsfaq.shellfront.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.