ZTree.com  | ZEN  | About...  

 Index   Back

[ZEP] A new % value   [ZEP]

By: Walt       
Date: Jul 04,2019 at 03:34
In Response to: [ZEP] A new % value (Hartmut Schneider)

> > After more analysis, %c should not include the root directory.
> You said 'root directory', do you mean the branch root?

Yes, "root" means the branch root.

>
> > It should only return the sub-directory path to the highlighted file.
> Agreed, that's what I think of, too.
>
> > This way, the %1 would be mimicked by %r\%c\%4.%5
> Looks good, this is what I imagine.
>
> > If the root directory is needed, %n\%c would work.
> What do you mean here?
> In the help file's example C:\2010\September\Test_File.txt, %n is
> the Current dir name (September).
> Do you mean another parameter?

No other parameters, just combinations with existing parameters:
Given
-- directory structure C:\AAA\BBB\CCC\DDD\EEE
-- "branch root" is CCC
-- current file is ...\EEE\FILE.EXT
then
-- %c returns DDD\EEE\
-- %n\%c returns CCC\DDD\EEE
-- %r\%c\%4.%5 returns C:\AAA\BBB\CCC\DDD\EEE\FILE.EXT

Walt

88 views      
 

Messages in this Thread

 
94,426 Postings in 11,918 Threads, 348 registered users, 7 users online (0 registered, 7 guests)
Index | Admin contact |   Forum Time: Sep 20, 2019 - 1:13 am EDT  |  Hits:28,651,660  (102 Today )
RSS Feed