Quoting the recieved messages with the keyboard shortcuts
Problem
Currently to quote a message in Gajim you should select a region in a chat by the mouse, then select the quote item in the context menu. However, switching from the keyboard to the mouse for such a basic operation is inconvenient and takes extra time.
Analysis
As we quote recent messages more often it is important to have access to the most recent messages with less number of keystrokes. Gajim has the corresponding feature which enables you to scroll through the sent messages by pressing Ctrl+Up / Ctrl+Down. I think it would make sense to have the similar behaviour for scrolling through the received messages with Ctrl+Shift+Up / Ctrl+Shift+Down.
Implementation notes (patch is in attachment)
- it doesn't preserve formatting in quoted text;
- it uses configuration option 'key_up_lines' for the maximum number of recieved messages to store in the history;
- every line of the quoted message is prepended by '> ' characters and a new line is added to the end of the message.