Copying text from chat window without timestamp and nick
The idea is simple and in my opinion this would be pretty useful. This could be used pretty intensively when copy-paste between conversations, but we don't want to trash the message with timestamps and nicks.
An example. When we select full three lines in conversation window and copy them this is what we get in clipboard currently:
[14:40:21] vArDo: this is a text [14:40:29] vArDo: that was send in two messages [14:40:40] vArDo: or maybe three
but I really want is:
this is a text that was send in two messages or maybe three
Depending of how lines in chat window are represented this can be either trivial or pretty hard.
Properties that could be used to determine what to put in clipboard (when the only thing we have are those lines that are selected): after_nickname, before_nickname, chat_merge_consecutive_nickname, chat_merge_consecutive_nickname_indent, time_stamp
We could also use nick name of a person we're talking to. Problems:
- on MUC it's hard to check this out (people coming and leaving)
- when we change nick of contact in roster AFAIK it doesn't change in (recent) history in chat window
Most reliable solution IMO: determine connection of selected lines to rows in conversation history database. If the message is kept separate from timestamp and nick (separate columns) we simply get the message only. But there is also a problem: even if we determine which rows to select from DB when the selection starts/ends in the middle of line we have to put only parts of them in clipboard. When we started selection in the middle of nick the thing gets really tricky. Regexp-magic would probably solve this.
This could be implemented as an option in parallel to normal copy-paste, i.e. ctrl+shift-c shortcut and an entry in chat's context menu.