![]() When entering vim mode with Ctrl+Shift+Space, you can use the vim search power to search through the whole history. Workaround 2a: Copy only chosen lines using vim/Alacritty search powerīefore you copy the whole terminal history only to search through that again, you can also start searching in the terminal. You do not need to zoom in during the steps, just press use Shift+ Page down in terminal mode. This is still step by step then, but at the max zoom, you will usually have just one or two steps to make. Repeat page for page by pressing Shift+ Page down and mark everything again. Copy the zoomed out page with the mouse, press Ctrl+ Shift+ C and paste in your local file. Then zoom out with Ctrl+ - until you see the whole file or until the max zoom is reached. The main thing is just that the full file is part of the terminal history, without any gaps, and that you do not use any vim commands after this G: any vim page down Ctrl+ F leaves a printout at the page end which you do not want. You may then also :q quit the file, but not needed. In vim mode, press G so that you load the file from top to bottom. Workaround 1: vim mode: G, terminal mode: Ctrl+ - max zoom out, Shift+mouse, Shift+ Page down if more than one page You seem not to be able to mark all and copy from Alacritty, therefore, the answer is just that there is no answer. The workarounds below are older, no need to read, and I guess I am also wrong there in saying that there is no answer. Start with Ctrl+B+[, mark what you want to copy by pressing Space to begin with and "y" when you are done, and it will be in the system clipboard. In the Tmux config, the binding for "y" would be: bind -T copy-mode-vi y send -X copy-pipe "xclip -selection c" In Alacritty, you will now have tmux power, as well as in any other terminal. Instead, I ended up in installing Tmux on top of Alacritty, and that is the waterproof way of copying whatever from Alacritty to wherever. I did not test any self-written bindings in the Alacritty config that I could share. ![]() Take that binding pattern and make your own binding. See: How can I copy text from Alacritty to clipboard #5202. This includes the ctrl+shift+c/v bindings for copy/paste. # If it is not installed, install it withīindings in Alacritty are documented in the alacritty.yml. Install a clipboard like xclip or xsel: # Check whether xclip is installed: If that does not help, bind the system clipboard to a key of your choice. \# When set to `true`, selected text will be copied to the primary clipboard. Search for #save_to_clipboard: false, and change to true: \#selection If that does not work, for example since the server does not have or allow copying to the system clipboard, check whether it helps to change the alacritty.yml config file in the main folder of Alacritty. ![]() Either this was changed, or I have just overseen it, or it does not always work, I do not understand why it is not in the older workarounds further below. UPDATE 20221006: Alacritty built-in shortcutsĪs far as I can see from tests, you can press Ctrl+Shift+Space for vim mode, then use vim's ggVG to mark all, and Alacritty-copy with Ctrl+Shift+C into the system clipboard. Is there a way to get the whole Alacritty terminal history (not just the commands, but also the text of the files that were opened) copied? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |