clip4

A clipboard command line program shared with Dropbox


License
MIT
Install
pip install clip4==0.1.0

Documentation

clip4

description

A command line clipboard program shared with Dropbox

prepare

  • pip3
$ sudo pip install clip4

run

  • clip4
$ clip4 set "CITY CAFE"
$ clip4 get
  • zle
$ cd clip4
$ source clip4.zsh
$ (alt+x)
execute: clip4

questions

  • should we really need a local cache file ?
    1. zsh/bash have history already and clip4 could be remembered in history
    2. tmux has global paste buffer also

zsh

  • widget
function _clip4 {
    LBUFFER=$(echo ls)
    CURSOR=$#LBUFFER
}

$ zle -N clip4 _clip4
$ (alt+x)
execute: clip4

# result
$ ls

# check
$ zle -la

todo

  • [$] 2015-02-08 ~ 2015-02-08 subcommands: list, set, get, clear
  • [p] 2015-02-08 local cache ?
  • [$] 2015-02-08 ~ 2015-02-08 config to store access token
  • [$] 2015-02-08 ~ 2015-02-08 new datastore of clip4
  • [$] 2015-02-08 ~ 2015-02-08 zsh zle