2 ms·
To copy the entire scrollback buffer from Alacritty: <C-S-Space>gVGy<C-S-Space>. Ctrl+Shift+Space: enter Vi mode; g: move the cursor to the top of the scrollbac
by chrismorgan 5y ago
To copy the entire scrollback buffer from Alacritty: <C-S-Space>gVGy<C-S-Space>. Ctrl+Shift+Space: enter Vi mode; g: move the cursor to the top of the scrollback buffer (like gg in Vi/Vim); V: start linewise selection; G: move the cursor to the bottom of the scrollback buffer; y: copy to clipboard and clear selection (like "+y in Vim); Ctrl+Shift+Space: exit Vi mode.
Learn what’s possible in Vi mode from the key_bindings section of the alacritty.yml config, largely the ones with `mode: Vi` and similar. You’ve got the usual things like hjkl navigation, Ctrl+B and Ctrl+F to go Backwards and Forwards a page, / to search, all that sort of stuff. (Though I will note that ? to search backwards doesn’t work, because Alacritty is using winit’s currently utterly insufficient keyboard API for its bindings, see <https://github.com/alacritty/alacritty/issues/5251 https://github.com/alacritty/alacritty/issues/5251>.) Also in alacritty.yml, scrolling.history defines how many lines are kept in the buffer (defaults to 10,000).