Sorry for my poor explaining! I means that to modiy the emacs-copy mode table's key bind, so that when I copy something It can copy into system clipborad automatically!
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" this key-bind can copy the things i copyed in emacs-copy mode to system clipboard!But, it costs some extry key strokes! In emacs-copy mode, pressing 'M-w' means copy selectiing things; but I must press C-l (this is my prefix) C-c, it will then copy the things I just copyed to the system clipboard! I do not want this, I hope, when I press 'M-w' in emacs-copy mode, it will automatically copy selecting things to system clipboard automatically! 2012/8/18 Robin Lee Powell <rlpow...@digitalkingdom.org>: > I haven't actually read what you said in detail, but: > > For myself, I discovered that trying to make complicated binds with > multiple steps involving the paste buffer just didn't work. So > instead I put everything in a script: > > bind w run-shell "~/bin/ws_trim_wrap ' '" > > - ----------------------- > > #!/bin/sh -e > > sep="$1" > > rm -f /tmp/rlp_tmux_buf > tmux save-buffer -b 0 /tmp/rlp_tmux_buf > if [ "$sep" ] > then > cat /tmp/rlp_tmux_buf | sed 's/^ *//' | tr '\012' "$sep" > >/tmp/rlp_tmux_buf.tmp > else > cat /tmp/rlp_tmux_buf | sed 's/^ *//' | tr -d '\012' >/tmp/rlp_tmux_buf.tmp > fi > tmux load-buffer -b 18 /tmp/rlp_tmux_buf.tmp > tmux paste-buffer -b 18 > rm /tmp/rlp_tmux_buf /tmp/rlp_tmux_buf.tmp > > - ----------------------- > > -Robin > > On Sat, Aug 18, 2012 at 12:10:16AM +0800, vinurs wrote: >> Hi,all >> In my .tmux.conf, there is the following configuration: >> bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" >> bind -n C-v run "tmux set-buffer \"$(xclip -o -sel >> clipboard)\"; tmux paste-buffer" >> >> now, I want in emacs-copy mode,when i type M-w then It will run >> 'run "tmux save-buffer - | xclip -i -sel clipboard"' automatically, I >> set: >> bind-key -t emacs-copy M-w copy-selection \; run "tmux save-buffer >> - | xclip -i -sel clipboard" >> but, i seems error: >> usage: bind-key [-cnr] [-t key-table] key command [arguments] >> >> What should i set? >> Thanks! >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> tmux-users mailing list >> tmux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/tmux-users >> > > -- > http://singinst.org/ : Our last, best hope for a fantastic future. > .i ko na cpedu lo nu stidi vau loi jbopre .i danfu lu na go'i li'u .e > lu go'i li'u .i ji'a go'i lu na'e go'i li'u .e lu go'i na'i li'u .e > lu no'e go'i li'u .e lu to'e go'i li'u .e lu lo mamta be do cu sofybakni li'u ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users