ZTree.com  | ZEN  | About...  

 Index   Back

%#ZTLine% works, but is not updated in time   [Q]

By: Martijn Coppoolse   Homepage   Voorburg, NL  
Date: Feb 20,2014 at 11:16
In Response to: [Q] #ZTLine in "e" command ??? (Bob Selby)

> Is it possible to use "#ZTLine" in the standard "e" edit command ??

Yes. You can use %#ZTLine% like any environment variable.
The problem, however, is that the #ZTLine environment variable is apparently not updated when pressing [E]dit from the Viewer; you have to go to the e[X]ecute window and [ESC]ape back before it's updated.

The e[X]ecute command had the same problem, but Kim fixed that. It would appear #ZTLine is not updated before expanding the command line variables for the [E]dit command.

> If it were then I could avoid using a macro for simple edit cases from
> the viewer.
>
> "#ZTLine" would need to return 1 for edits that were not from the
> viewer.

It currently returns 0 by default, which makes more sense IMO.


--
Martijn

942 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 69 users online (0 registered, 69 guests)
Index | Admin contact |   Forum Time: Mar 29, 2024 - 5:39 am UTC  |  Hits:62,393,898  (8,684 Today )
RSS Feed