termux-float
termux-float copied to clipboard
Is there any ways to copy & paste on termux float??
Feature description
If you using zsh, you can paste
- Install termux-api.apk
- Install termux-api in shell (pkg install termux-api)
- add this to the end of .zshrc:
function pfc () {
COMND=$(termux-clipboard-get)
RBUFFER=${COMND}${RBUFFER}
CURCUS=$CURSOR
CURSOR=$#BUFFER
CURSOR=$(($CURCUS + $#COMND))
}
zle -N pfc
bindkey "^[v" pfc
restart shell or execute "exec zsh" this will bind paste to Alt-V