paste commonly used chunks of text?
I want to easily paste commonly used selections of text. I regularly edit wiki pages, and send emails with similar core text, so this would be handy. Something light and quick with a simple hotkey popup would be ideal.
I've heard of such things, but can't find one now - lacking the right search terms I think (insert commonly used text didn't work, even in http://www.google.com/linux). Any suggestions? |
I am not sure if this is what you need. But you can give it a try.
Parcellite is a clipboard manager that can be used for many things, but amongst its many features it has a history that can be accessed with the keyboard, using control+alt+h. You can run parcellite (it will live in your system tray if you have one), then select the many text fragments in any arbitrary order, and then just use the history menu to select whatever you can to paste at a given time. Then just paste as usual. |
An adapted Parcellite might do it
Thanks, i92guboj.
Quote:
What would be great would be another version of Parcellite, where the text fragments are put there manually, rather than updated when I paste text. |
You might look at xsel. This gives the ability to write text from the command line directly into the X selection buffer:
Code:
echo "asdf asdf asdf" | xsel Code:
xsel < file Code:
$ alias texta='echo text A that I want to paste|xsel' Granted, it's a little clunky; being able to load copy buffers directly, then paste them with a key combination would be a lot quicker. Still, it's probably better than re-selecting text over and over, especially if you use one-letter aliases. now, if I could only get this to work with the cut and paste buffer in windows, where I actually need this for my 9-5 job... |
bartonski: thanks, interesting.
So, if no one has made a light program to do this already, all that needs to be done is to build a very simple interface on top of what you've done there, to make it smoother. Actually, I'm not a coder, so... is this simple? My thought: * create a simple program that pops up with a list when run. This is where I'm fuzziest - could parcellite be hacked to provide this? * each item in the list triggers a command when selected. This would be echo "asdf asdf asdf" | xsel for example. * hopefully the list in the GUI either shows the text to be pasted, or at least can be edited. * ideally, the text would then also be pasted - to do this the window would have to close itself and operate the paste command in whatever window and edit box you were in previously. Don't know how easy that is. The program can then be given a hot key by the user, or have one allocated automatically as with parcellite. So... easy or hard? |
One word: klipper
|
Quote:
Come to think of it, I think that xsel comes with an API in C, even that shouldn't be that hard to hack with. Definitely sounds like an interesting educational project. |
user's own choice of text chunks
Quote:
|
In KDE, you have knotes; in Gnome, you have gnotes. Add the samples of text to the post-it note, then click on the icon in the tray to bring the notes to foreground when you need them. Highlight the text you want, ctrl-C to copy. Put the cursor in the document you want text pasted into, and ctrl-V to paste.
|
post-it options
Quote:
There are a bunch of postit package options - I see xpad is installed on my system (probably much lighter than anything Gnome-specific) and xpostit is available and even smaller (29 kB download). There must be others too. Just have to figure out which is most suitable, with a light footprint (I'm thinking less than 5MB RAM usage, preferably much less), and the least keystrokes & clicks needed. |
Quote:
|
All times are GMT -5. The time now is 02:32 AM. |