In copy mode I can copy interesting text. I can also search for some other text.
But how can I paste the text I just copied into search input to find other occurrences?
In your .tmux.conf
bind-key -T copy-mode-vi p paste-buffer \; send-keys -X cancel
Now when you press p
you paste your code, and go back to edition mode.