termux / termux-float

Termux add-on app to show the terminal in a floating terminal window.
https://f-droid.org/en/packages/com.termux.window
Other
465 stars 77 forks source link

Paste into termux-float #1

Open fornwall opened 7 years ago

fornwall commented 7 years ago

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 commented 7 years ago

@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.

bit-garden commented 6 years ago

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.

jhysum commented 6 years ago

@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.

Cvar1984 commented 6 years ago

@bit-garden I got error syntax -,-