juffowup:
--------------------------------------------------------------------------------
I'm looking for a fast way to select a large column of text (5000 rows by 10
columns). I made a macro to do it using thousands of ecSelDown commands but
that takes forever to perform an operation that should be able to happen
instantly. Is there any way to do a macro or script that can move the cursor
down 4999 lines at once? Thanks!
--------------------------------------------------------------------------------
- You can point place the cursor at the start of the selection,
- set the selection mode to "column"
(Edit: Selection type: Column selection)
- Press F8 (Start/Stop selction)
- Search: Go to line (Ctrl+G): set the need block end
- Press F8
(be sure not to use mouse, as the left-click resets the column mode to normal -
in the default setting )
It probably cannot be done much faster using macros, but it can well be done via
scripting, e.g.cite:
--------------------------------------------------------------------------------
/// ... PSPad\Script\JScript\selectColumn.js ////
var module_name = "selectColumn";
var module_ver = "1";
function selectColumn(){
if (editorsCount()<1){return;}
var actEd = newEditor();
actEd.assignActiveEditor();
actEd.selectionMode("C")
actEd.setCaretPos(15, 5001)
actEd.setBlockBegin(5, 2); // col: 5, line: 2 // 1-based
actEd.setBlockEnd(15, 5001);
}
function Init(){
addMenuItem("select column", "", "selectColumn","Ctrl+Shift+Alt+C");
}
--------------------------------------------------------------------------------
hth
vbr
--
<http://forum.pspad.com/read.php?2,53584,53585>
PSPad freeware editor http://www.pspad.com