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.
I don't really want to do this because I think there are already far too many options in Zeus.Would it be possible to make smart pasting a document type option, like smart indenting is?
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.
I would re-map the keyboard to a macro and in the macro change the paste behaviour based on the file extension.Searching the forums did provide the answer
Turning off the behaviour is even easier since you just have to re-map the keyboardthen confused by why smart indent didn't turn it off
The choice of paste comes down to these functions:
Code: Select all
MarkPaste MarkPasteEx ClipboardPaste ClipboardSmartPaste
Thanks.BTW, the MarkPasteSmart function is not listed in the keyboard function list in the help, although it does appear in the keyboard mapping dialog.