Using your own editor: Difference between revisions

From ScarletDME
Jump to navigation Jump to search
New page: This little script was given to me by Tom Hoogenboom: To use your favorite editor, just change "leafpad" to "vi", "pico", etc. Save the program below in your GPL.BP file and globally cat...
 
No edit summary
Line 5: Line 5:
Save the program below in your GPL.BP file and globally catalog it.
Save the program below in your GPL.BP file and globally catalog it.


* 'nano' caller for system editor
* 'nano' caller for system editor
s = @sentence
s = @sentence
s = trim(s)
s = trim(s)
convert ' ' to @am in s
convert ' ' to @am in s
filename = s<2>
filename = s<2>
itemname = s<3>
itemname = s<3>
*
*
es = \sh nano \:@path:\/\:filename:\/\:itemname
es = \sh nano \:@path:\/\:filename:\/\:itemname
crt es
crt es
execute es
execute es
*
*
end
end

Revision as of 21:18, 16 March 2009

This little script was given to me by Tom Hoogenboom:

To use your favorite editor, just change "leafpad" to "vi", "pico", etc.

Save the program below in your GPL.BP file and globally catalog it.

* 'nano' caller for system editor
s = @sentence
s = trim(s)
convert ' ' to @am in s
filename = s<2>
itemname = s<3>
*
es = \sh nano \:@path:\/\:filename:\/\:itemname
crt es
execute es
*
end