I want a "delete line" function which copies the deleted line to clipboard, so I
can paste it elsewhere using Ctrl-V.
I tried copying Serge Balance's "del_end_best" script, and changing it to my
requirements, which I'll show below... I created a JScript directory under
pspad/scripts, and copied my script there, but it does not seem to be attached
to Ctrl-K as it should be.
Obviously I'm missing a key step in this process; any guidance (including
pointers to a relevant doc for doing this) are welcome!
My new script/extension:
// JavaScript Document
//*****************************************************************************
// filename : clip_line.js
// description: Delete line to clipboard
// created : 10/01/14 14:35:44
// author : Daniel D Miller
//
// You may distribute this script freely, but please keep this header
intact.
//*****************************************************************************
var MODULE_NAME = "clip line";
var MODULE_VER = "0.1";
var MODULE_TITLE = "Delete line to clipboard";
function Init() {
menuName = "&" + MODULE_NAME;
subMenu = "&" + "Edit";
addMenuItem(menuName, subMenu, "main", "CTRL+K");
}
function main() {
var ed = neweditor();
ed.assignActiveEditor();
ed.command('ecLineStart');
ed.command('aCopyLine');
ed.command('ecDeleteLine');
}
--
<http://forum.pspad.com/read.php?2,63362,63362>
PSPad freeware editor http://www.pspad.com