use copy-pipe in copy mode