ClearSelectionMode
On this page
CopyMode ClearSelectionMode#
Clears the current CopyMode selection mode without leaving CopyMode.
local wakterm = require 'wakterm'
local act = wakterm.action
return {
key_tables = {
copy_mode = {
{
key = 'y',
mods = 'NONE',
action = act.Multiple {
act.CopyTo 'PrimarySelection',
act.ClearSelection,
-- clear the selection mode, but remain in copy mode
act.CopyMode { 'ClearSelectionMode' },
},
},
},
},
}
See also: SetSelectionMode.