Skip to content
fmoralesc edited this page Sep 9, 2010 · 7 revisions

Behaviour

  • Pastie’s menu expands as more items are added to the history, until it reaches the maximum capacity, which is 25 by default (the list works as a limited queue).
  • The current clipboard contents are shown at the top of the list. Older ones are listed in order.
  • If you select an item in the list, its contents are set as the current clipboard’s.
  • If you clear the history, the current clipboard contents will remain (this is a feature, not a bug).
  • The history can be managed using the keyboard. If you press Control+Shift+C, a dialog will appear with the current clipboard contents. You can move in the history using the Up and Down arrow keys, and select the historic clipboards as curring by pressing Enter. You can also search, typing your query and pressing Alt.

Configuration

  • There isn’t much to configure in pastie. From the preferences dialog (Control+Alt+P), you can adjust the menu items length, the history size, whether should be an “exit” item in the menu, whether should be “preferences” item in the menu, and the keyboard shortcuts.
  • If you put an icon file in ~/.pastie/, pastie should use it as the indicator icon. This way, you can adjust pastie’s look to your theme’s without changing your icon theme.

Using pastie in the commandline

  • To print the contents of the clipboard in the terminal:
    $ pastie -p
  • To save the output of a terminal program in the clipboard, pipe it into pastie. Pastie will output the program output again. An example:
    $ uname | pastie
    will output something like
    Linux
    if you run after that
    $ pastie -p
    the output will be
    Linux
    as expected.
Clone this wiki locally