gnotclub / xst

st fork that uses Xresources and some pretty good patches
MIT License
537 stars 73 forks source link

Is there a past functionality and if how to use it #24

Closed pExeen closed 7 years ago

pExeen commented 7 years ago

So I didn't know how to use the clipboard patch so i looked inside of the diff and found that to copy out of the terminal you use ctrl+t. But can I past or not because it is the only reason I sometimes have to use urxvt. Thanks :)

PeterGottesman commented 7 years ago

You should be able to paste with Shift+Insert

pExeen commented 7 years ago

I have to tap on shift to get insert. Can I change the shortcut ?

neeasade commented 7 years ago

Can I change the shortcut ?

Currently, not here (you could fork and tweak the config.h file). The X11 paste is S-Insert but there also M-S-c and M-S-v(alt-shift) for copy/paste.

pExeen commented 7 years ago

Ok thanks :)

mustaqimM commented 5 years ago

If you are on zsh, you could do something like this:

# Copy(C-S-C) and Paste(C-S-V) functionality for `st`
x-kill-region () {
  zle kill-region
  print -rn $CUTBUFFER | xsel -i -b
}
zle -N x-kill-region

x-yank () {
  CUTBUFFER=$(xsel -o -b </dev/null)
  zle yank
}
zle -N x-yank
bindkey -e '^X' x-kill-region
bindkey -e '^V' x-yank