This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/xclipboard
Miciah Masters 552fd5953c Update references to macOS
Apple renamed "Mac OS X" to "OS X" in 2012 and then to "macOS" in 2016.
Update references to use the current name.
2019-10-13 12:04:40 +02:00
..
local/spacemacs-xclipboard Update references to macOS 2019-10-13 12:04:40 +02:00
config.el Add cliphist to the xclipboard layer. 2019-07-11 19:49:21 +02:00
funcs.el Add cliphist to the xclipboard layer. 2019-07-11 19:49:21 +02:00
packages.el Add cliphist to the xclipboard layer. 2019-07-11 19:49:21 +02:00
README.org Update references to macOS 2019-10-13 12:04:40 +02:00

xclipboard layer

Description

xclipboard integration layer.

Features:

  • adds copy support to the X-clipboard from the terminal.
  • adds paste support to the X-clipboard from the terminal.
  • cliphist package: integration with clipboard managers on Linux and macOS.

Requirements

This layer depends on a few platform-specific command-line tools:

  • on macOS, this layer calls pbcopy
  • on Windows, this layer calls clip.exe
  • on GNU/Linux systems, this layer relies on xsel to be available.

Note that xsel might not be installed by default on e.g. Ubuntu systems.

Clipboard manager integration requires Parcellite or ClipIt installed on Linux and Flycut installed on macOS.

Usage

Clipboard Manager Integration

Clipboard manager integration can be enabled by setting xclipboard-enable-cliphist to t.

  dotspacemacs-configuration-layers '(
    (xclipboard :variables xclipboard-enable-cliphist t))

Key bindings

Key binding Description
SPC x p Paste clipboard contents at cursor position
SPC x y Copy selection to clipboard
SPC x P paste item from history (cliphist must be enabled)
SPC x R rectangle paste item from history (cliphist must be enabled)
SPC x s select item from history (cliphist must be enabled)