nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 37f75550a596aae45685a0a5abaabfcbf13d2000
parent 7dcf6d010ec1eb31d42f05abf8119020c2d3ee49
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon, 18 Nov 2019 05:22:11 -0500

clipboard: Add support for xclip

Diffstat:
Mnncli/clipboard.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/nncli/clipboard.py b/nncli/clipboard.py @@ -25,6 +25,12 @@ def get_copy_command(): except CalledProcessError: pass + try: + subprocess.check_output(['which', 'xclip']) + return 'echo "%s" | xclip -selection clipboard' + except CalledProcessError: + pass + return None def copy(self, text):