> However, all this code is very specific to my application, and to
> Motif. A generic utility to help here would be great.
A minimal addition that might tempt me to use Xved would be an ENTER
command which took a VED command ran it and used the current window to
display the new file.
ENTER here ved foo
Would get the file foo into the current window
ENTER here ref strings
Would get the REF STRINGS file into the current window
The previous file would be left on vedbufferlist (unlike qved).
Then a modified version of ved_rb could be provided to put the current
file on the end of vedbufferlist and use the current window to display
the first file on vedbufferlist that doesn't have a window.
A more complete set of options would be analogous to LIB WINDOWS, but
just those two should be relatively easy to implement, and might tempt
me. Then I could use one window for HELP commands, one for SHOWLIB
commands, one for REF commands, and one for my own program files. (With
slightly tedious rotation occasionally.)
Here's an incomplete version of the above:
ENTER here foo
will replace the current file with foo, while leaving the previous
file on vedbufferlist, so you can get it back later either with
the same sort of command (in the same window) or in its own new window.
define ved_here;
lvars oldfile = vedcurrentfile;
ved_qved();;
[^^vedbufferlist ^oldfile] -> vedbufferlist;
enddefine;
Aaron
Ps
The next desirable thing is for Xved to respect my keybindings.... I
wish it would just pretend to be an xterm as regards keybindings.
|