Page 1 of 1
Column Paste
Posted: Thu Dec 14, 2006 10:27 am
by amif2000
Hi Jussi,
Is there a way to differentiate between text that was copied into the clipboard in column mode or in block mode? I require this to create a script that behaves differently when pasting the text.
Amit
Posted: Thu Dec 14, 2006 11:37 pm
by jussij
Code: Select all
Is there a way to differentiate between text that was copied into the clipboard in column mode or in block mode?
This information is in the clipboard but you unfortunately can't get this information via a macro
I will add a macro function to do provide this information.
Cheers Jussi
A way around the problem
Posted: Sun Dec 17, 2006 4:33 pm
by dmaon
I have encountered the same problem. Here is my solution:
Replace the copy by the script:
local mode = get_marked_mode()
if ( mode==0 ) then
set_global_string("sel_status","COLM")
else
set_global_string("sel_status","LINE")
end
MarkCopy()
Replace the cut by a similar script.
When you want to check the clipboard status do the following:
local setstat = get_global_string("sel_status")
if ( setstat == "LINE" ) then
we are in line mode
else
we are in column mode
end