pipeclip: Open your editor, pipe the output to the system clipboard

[ bsd2, program, system, text ] [ Propose Tags ]

This opens up your $EDITOR or $VISUAL using the editor-open library. It then takes the edited text and sends it to the X11 clipboard.

As such, this will only work if you have X11. Translated, this is limited to Linux and BSD.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Change log CHANGELOG
Dependencies base (>=4 && <5), bytestring, editor-open (>=0.6), Hclip, safe [details]
License BSD-2-Clause
Copyright Copyright (c) 2015, Peter Harpending.
Author Peter Harpending
Maintainer peter@harpending.org
Category System, Text
Home page https://github.com/pharpend/pipeclip
Bug tracker https://github.com/pharpend/pipeclip/issues
Source repo head: git clone git://github.com/pharpend/pipeclip.git
this: git clone git://github.com/pharpend/pipeclip.git(tag
Uploaded by pharpend at 2015-05-19T17:07:58Z
Distributions NixOS:
Reverse Dependencies 1 direct, 0 indirect [details]
Executables pipeclip
Downloads 1434 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2016-12-09 [all 7 reports]

Readme for pipeclip-

[back to package description]


This program pops open your $EDITOR or $VISUAL, takes whatever you inputted into the file, and pipes it to the X clipboard.

As such, this program only works on Linux and BSD.

I've tested it on Arch Linux and FreeBSD.


pipeclip is written in Haskell, so please install Haskell first: https://github.com/bitemyapp/learnhaskell/blob/master/install.md.

You also need to have xclip or xsel installed.


cabal install pipeclip


pipeclip v.
Copyright (c) 2015, Peter Harpending.
Licensed under the FreeBSD license. See --license for info.

    -h,--help             Show this page
    --license             Print out the license.
    --stdout              Print output to stdout instead of piping to the clipboard.
    -t,--template EXT     Name the temporary file the editor edits tmp.EXT so that 
                          it has highlighting and stuff.