What happens when you paste a large amount of text (and "
Improve pasting operations for large text" is enabled) depends on if you already have typed something in the typing area or not:
- If the typing area is
empty: the pasted blob will be send as a text file. No parsing is done on the pasted blob, not even if it starts with a command or if it contains tags or whatever.
- If the typing area is
not empty: the pasted blob will be pasted at the cursor's location. It will be cropped to the maximum allowed amount of characters in the typing area (depends on your status and the Plus! setting "
increase max size of messages you can send") minus what was already in the edit box.
eg: If the text "
hello world" was entered in the edit box, and the cursor is at the space and you paste a massive amount of text, the output will be: "
helloblobblobblobblobblobblob<...>blo World"
quote:
Originally posted by Spunky
Would Plus! still send the data as a txt file if it's a command? That would sound like a bug to me...
Depends on how you look at it I think. Imho it would be a bug if it does parse the blob in that case*.
Because if you paste a large amount of text, it is safely to assume imho that it wasn't meant to be a command but rather a copy of a document. If that document happens to start with a "/" and then the blob was parsed it would result in an error message (or even unexpected results). So, not good in that case.
*not to mention how large needs the internal buffers be then that Plus! uses to handle commands etc? You could well paste 200MB worth of text or more or whatever....The internal buffers would be rediculus big and parsing would be dead slow, scripts would choke, etc... probably resulting in a complete freeze of Messenger for a long while.
------------------
So, knowing this, the feature of this script is a bit redundant imho (not completely though. But it might not be as usefull as it seems to be at first sight).
Because if the text you want to paste to your contact is small enough to fit in the typing area, then there is not much reason to first copy it to pastebin, then send a link back. Simply send it directly.
If the text you want to paste to your contact is larger than the allowed amount, Plus! will already make a textfile out of it and send it that way (if that option is enabled).
The only added benefit of this script, as far as I can see, would be the language highlighting in case of source code. So, for people pasting source code all the time, it might be usefull I guess. Either way, it would be a good scripting practice for sure.
PS: Horseboy, What does the 'W' stand for in 'WIP'? And I assume 'IP' is 'In Progress'?