You are not logged in.

#1 2025-02-15 12:23:18

lvxn
Member
Registered: 2025-02-15
Posts: 2

solved | How to copy the whole text file to external clipboard

On alacritty terminal, if i select text using nano and copy (Alt 6, scroll down, ctrl shift c) , it copies into nano's internal clipboard, if i select text in vim (ggVG "+y) it also copies into vims internal clipboard. If i select text using mouse with alacritty and copy, that works, but i cant scroll down on a text file while doing so, so i can only select the text on the screen, if i select using alacrittys vi mode, it also works but once again i cant scroll down. So how do i select the whole text file and copy to external clipboard?

To summarize, how do i replicate windows's ctrl a, ctrl c while displaying text in alacritty terminal, using either nano or vim?

Last edited by lvxn (2025-02-15 13:13:25)

Offline

#2 2025-02-15 12:49:46

arh
Member
Registered: 2024-10-09
Posts: 23

Re: solved | How to copy the whole text file to external clipboard

if you want to copy the entire file you have open in vim, you can run

:w !xclip -selection clipboard

which works in an x11 session, if you're on wayland then you can probably do something very similar with wl-copy.

Offline

#3 2025-02-15 13:12:55

lvxn
Member
Registered: 2025-02-15
Posts: 2

Re: solved | How to copy the whole text file to external clipboard

arh wrote:

if you want to copy the entire file you have open in vim, you can run

:w !xclip -selection clipboard

which works in an x11 session, if you're on wayland then you can probably do something very similar with wl-copy.


much love man thankoyu

Offline

Board footer

Powered by FluxBB