CopyQ monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application. Items can be: edited with internal editor or with preferred text editor, moved to other tabs, drag'
To build and install the application CMake is required (http://www.cmake.org/). On Ubuntu you'll need packages libqt4-dev, cmake, libxfixes-dev,. libxtst-dev ...