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

194 views      
 

Messages in this Thread

 
94,704 Postings in 11,942 Threads, 348 registered users, 31 users online (2 registered, 29 guests)
Index | Admin contact |   Forum Time: Jan 19, 2020 - 7:03 pm EST  |  Hits:29,736,106  (7,385 Today )
RSS Feed