termux-float icon indicating copy to clipboard operation
termux-float copied to clipboard

Paste into termux-float

Open fornwall opened this issue 8 years ago • 4 comments

From @wende on April 4, 2017 21:13

You can paste into normal termux by long press. Is there any functionality to paste to floating window Termux?

Copied from original issue: termux/termux-app#295

fornwall avatar Apr 05 '17 04:04 fornwall

@wende It's not possible at the moment, we need some UI for it.

If you have the Termux:API add-on installed, you can use the termux-clipboard-get command as a workaround for the moment.

fornwall avatar Apr 05 '17 04:04 fornwall

This can be done with a tmux config.

bind V run-shell "termux-clipboard-get >~/.tmux-buffer-tmp" \; load-buffer -b tmp-copy-buffer ~/.tmux-buffer-tmp \; paste-buffer -b tmp-copy-buffer -d \; run-shell -b "rm ~/.tmux-buffer-tmp"
bind C save-buffer ~/.tmux-buffer-tmp \; run-shell "cat ~/.tmux-buffer-tmp | termux-clipboard-set " \; run-shell -b "rm ~/.tmux-buffer-tmp"

Prefix + C or V to copy to android clipboard or paste.

bit-garden avatar Nov 03 '17 13:11 bit-garden

@bit-garden I don't get how to run tmux config in termux and how to get the control+V to work. I would love to have a bit more guidance if you could help.

jhysum avatar Jan 24 '18 04:01 jhysum

@bit-garden I got error syntax -,-

Cvar1984 avatar Mar 09 '18 19:03 Cvar1984