SmartPaste

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
pwdiener
Posts: 134
Joined: Wed Jul 11, 2007 3:45 pm

SmartPaste

Post by pwdiener »

Would it be possible to make smart pasting a document type option, like smart indenting is?

Like some others, I've noticed the effect of the smart paste without realizing it was a separate function, then been confused by why smart indent didn't turn it off. Searching the forums did provide the answer, but it might be nice to make it a selectable option rather than purely a keyboard function.

BTW, the MarkPasteSmart function is not listed in the keyboard function list in the help, although it does appear in the keyboard mapping dialog.

Bill Diener
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Bill,
Would it be possible to make smart pasting a document type option, like smart indenting is?
I don't really want to do this because I think there are already far too many options in Zeus.

But having said that, this option is pretty much user configurable right now.

Since the smart paste is a keyboard function, to change this behaviour you can just need to re-map the keyboard.

Also if you want to make the function document type specific then that too is possible.

You just need to create a macro that tests the current file extension using the macro_tag("$ext") function.

For example, this is exactly what the comments.lau macro does.

So the only part that is not user configurable is the menu.
Searching the forums did provide the answer
I would re-map the keyboard to a macro and in the macro change the paste behaviour based on the file extension.
then confused by why smart indent didn't turn it off
Turning off the behaviour is even easier since you just have to re-map the keyboard ;)

The choice of paste comes down to these functions:

Code: Select all

MarkPaste
MarkPasteEx
ClipboardPaste
ClipboardSmartPaste
BTW, the MarkPasteSmart function is not listed in the keyboard function list in the help, although it does appear in the keyboard mapping dialog.
Thanks.

Cheers Jussi
Post Reply