Re: drop down box or something like it.

Brian Wolven <[email protected]>
Newsgroups gmane.comp.windows.shells.litestep
Message-ID <[email protected]>
Jochen Ritzel wrote:
> 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.

The ">"'s were linewrap/indent characters that got stuck in there somehow. Other 
than that, you were right on target.

> 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 ^^ )


Or learn to speak python. Sssssssssssssss.


---------------------------------------------------------------------
    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.