tmux / tmux

tmux source code
Other
35.15k stars 2.12k forks source link

Questions: How to send text to tmux clipboard? #3399

Closed mrwensim closed 1 year ago

mrwensim commented 1 year ago

Issue description

Hi,

I'm trying to copy current working directory path on a remote server to my system clipboard.

I've followed this clipboard guide and manage to copy text from tmux on remote server to my system clipboard with the OSC 52 way.

For further customization, I want to add a shortcut key to copy current working directory path on a remote server to my system clipboard too.

I can get the path with tmux display -p -F "#{pane_current_path}", but how can I send this text to the tmux clipboard?

Required information

Please provide the following information:

nicm commented 1 year ago

set-buffer or load-buffer

mrwensim commented 1 year ago

Thanks for your answer. I tried set-buffer along with the -w option, it works.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.