mirror of
https://github.com/tmux-plugins/tmux-yank.git
synced 2026-09-10 07:36:17 -04:00
copy_pane_pwd: set tmux buffer
All the other copy commands not only set the system clipboard, but also set the tmux buffer to have the selection. For consistency, the copy pane PWD action should behave the same way.
This commit is contained in:
parent
d776f4e94d
commit
1b1a436e19
|
|
@ -16,10 +16,13 @@
|
|||
|
||||
main() {
|
||||
local copy_command
|
||||
local payload
|
||||
# shellcheck disable=SC2119
|
||||
copy_command="$(clipboard_copy_command)"
|
||||
payload="$(pane_current_path | tr -d '\n')"
|
||||
# $copy_command below should not be quoted
|
||||
pane_current_path | tr -d '\n' | $copy_command
|
||||
echo "$payload" | $copy_command
|
||||
tmux set-buffer "$payload"
|
||||
display_notice
|
||||
}
|
||||
main
|
||||
|
|
|
|||
Loading…
Reference in a new issue