Column Paste

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
amif2000
Posts: 14
Joined: Sun Dec 10, 2006 3:14 pm

Column Paste

Post 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
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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
dmaon
Posts: 14
Joined: Wed Nov 29, 2006 2:17 pm

A way around the problem

Post 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
Post Reply