Giter Club home page Giter Club logo

clipss's Introduction

Cilpss

Japanese

Clipboard Sync and Buffer Sync. zsh tmux emacs vi with MacOSX Linux Windows.

you have to install.

Let's Use. case local only

  1. zsh . input spell hello world. go a head and C-k (kill-line)
  2. switch emacs and C-y (yank) . curbuffer insert hello world.
  3. switch other vi,tmux,MacOSX and paste . insert hello world.

Let's Use. case remote PC & clipboard sync

  1. emacs. input spell hello world. go a head and C-k (kill-line)
  2. swith remote PC (windows) and paste.
  3. PC (windows) copy string foo bar baz.
  4. switch emacs and C-y (yank) . curbuffer insert foo bar baz.

Install

get code

$ cd ${HOME}
$ git    clone https://github.com/mukaer/clipss.git
$ cd     clippss
$ gem    install bundle
$ bundle install --without development

MacOSX clipboard

example install

$ cd ~
$ git  clone https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
$ cd   tmux-MacOSX-pasteboard
$ make reattach-to-user-namespace 
$ cp   reattach-to-user-namespace  /usr/local/bin

zsh

  • ~/.zshrc

Recommendation to use RAMDISK .CLIPSS_FILE

export CLIPSS_PATH="${HOME}/clipss"
export CLIPSS_FILE="/tmp/clipss_file.txt"
export CLIPSS_PORT="9116"
export CLIPSS_REMOTE_SV="http://192.168.0.100:9116 http://192.168.0.101:9116"
source ${CLIPSS_PATH}/zsh/clipss.zsh
clipss_initialize


bindkey '^Y'  clipss+yank
bindkey '^k'  clipss+kill-line
bindkey '^[w' clipss+copy-region-as-kill
bindkey '^W'  clipss+backward-kill-word-or-kill-region

restart zsh

$ zsh

tmux

  • ~/.tmux.conf
bind-key -t emacs-copy  M-w  copy-pipe "${CLIPSS_PATH}/bin/clipss_push"  #tmux 1.8 conf gramma
bind-key ]  run 'tmux load-buffer -- $CLIPSS_FILE;tmux paste-buffer --;'

emacs

  • ~/.emacs
(add-to-list 'load-path (concat (getenv "CLIPSS_PATH") "/emacs"))
(require 'clipss)
(setq clipss-path (getenv "CLIPSS_PATH") )
(clipss-init)

vim

  • ~/.vimrc
source  ${CLIPSS_PATH}/vim/clipss.vim
nmap yy yy:call Clipss_Push()<CR>
nmap p :call Clipss_Pop()<CR>

Config and Use. case remote

Adds remote server url. zsh export CLIPSS_REMOTE_SV or ruby config file clipss/config/config.rb.

if use config.rb. overwirte setting variable

$ cd clipss/config/
$ cp config.rb.template  config.rb
  • clipss/config/config.rb
config.remote_svs  = ["http://192.168.0.100:9116",
                        "http://192.168.0.101:9116"]

comand exec start clipss server. local and remote .

$ clipss_httpd    #path clipss/bin/clips_httpd

access

http://localhost:9116

More info

clipss's People

Contributors

mukaer avatar

Watchers

mattn avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.