Skip to content

How to paste from the clipboard into the terminal #3952

Answered by LangLangBart
sidouglas asked this question in Q&A
Discussion options

You must be logged in to vote
  • I have to hit esc (⎋ twice) in order to cancel fzf and perform a simple paste from clipboard.

I can't reproduce it so far. When you run the following commands, is the issue still observable?

# minimal zsh setup
command env -i HOME=$HOME TERM=$TERM USER=$USER PATH=$PATH SHELL=zsh zsh --no-rcs

# fzf setup
source <(fzf --zsh)
export FZF_DEFAULT_OPTS='--multi --no-height --extended'
export FZF_CTRL_R_OPTS="--bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort'"

# Press ctrl-r
# Press ctrl-y to copy a command
# Press Esc once

If the issue is no longer observable, it is very likely an issue with your shell setup, likely a plugin1. Try to disable some plugins/options until you find t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sidouglas
Comment options

@LangLangBart
Comment options

Answer selected by sidouglas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants