42

How do I make Zathura copy selected text to the system clipboard?

I'm using Zathura with the poppler PDF plugin.

Matthias Braun
  • 7,797
  • 7
  • 45
  • 54
Radostin Stoyanov
  • 1,701
  • 1
  • 11
  • 14
  • ctrl/c + v doesn't work? – peterh Mar 22 '19 at 05:19
  • 1
    @peterh zathura currently supports only mouse region selection (there no support for text selection via keyboard). When a region is selected the copy operation it triggered immediately (See https://github.com/pwmt/zathura/commit/f8061febe49947a0a15db516767f23c39e96938a#diff-244ba14eb252b90c1fa72069495e4d2cR491) – Radostin Stoyanov Mar 23 '19 at 08:22

3 Answers3

65

Add set selection-clipboard clipboard in the config file ~/.config/zathura/zathurarc or /etc/zathurarc.

peterh
  • 9,488
  • 16
  • 59
  • 88
Radostin Stoyanov
  • 1,701
  • 1
  • 11
  • 14
6
  • There are actually two clipboards. The primary clipboard is used by terminal and some applications and the other clipboard is used by most GUI applications like MS style copy/paste.
  • Zathura, by default, copies the selected contents to the Primary clipboard that can be accessed by middle mouse button.
  • This behaviour can be changed by adding
    set selection-clipboard clipboard
    
    in zathura's config file at /etc/config/zathurarc or ~/.config/zathura/zathurarc just as @peterh said. The selection will then be copied to the clipboard that can be accessed by Ctrl+V.
AdminBee
  • 21,637
  • 21
  • 47
  • 71
Arcadio
  • 71
  • 1
  • 4
-1

As @peterh said in the comment on the OP's question, When you select the text region with mouse it will be copied to your clipboard automatically

Suhayb
  • 111
  • 1
  • 4
  • It seems to work sometimes, but it is absolutely not a given. Putting the mentioned line in the config file is the only way to ensure the behavior. – Atralb Jun 17 '20 at 01:04