copy/cut events #694
-
|
I didn't see any copy/cut events in the docs. Is there another clever way to intercept these? I made a simple clipboard manager module and just overrode the cut/copy commands. Just wondering if there is a better way that I'm not aware of. On a related note, why does |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Take a look at modules/textadept/clipboard.lua, where the terminal version replaces all the default clipboard functions with versions that can access the system clipboard. It's probably similar to what you did. Nothing fancy. As for |
Beta Was this translation helpful? Give feedback.
Take a look at modules/textadept/clipboard.lua, where the terminal version replaces all the default clipboard functions with versions that can access the system clipboard. It's probably similar to what you did. Nothing fancy.
As for
paste_reindent()not supporting multi-paste, it's possible I just wasn't thinking about it at the time of writing. It's also possible that it was too complicated. I don't remember.