Skip to content

CopyMode { MoveBackwardSemanticZone = ZONE }

Since: Version 20220903-194523-3bb1ed61

The functionality described in this section requires version 20220903-194523-3bb1ed61 of wezterm, or a more recent version.

Moves the CopyMode cursor position to the first semantic zone of the specified type that precedes the current zone.

See Shell Integration for more information about semantic zones.

Possible values for ZONE are:

  • "Output"
  • "Input"
  • "Prompt"
local wezterm = require 'wezterm'
local act = wezterm.action

return {
  key_tables = {
    copy_mode = {
      {
        key = 'z',
        mods = 'ALT',
        action = act.CopyMode { MoveBackwardZoneOfType = 'Output' },
      },
    },
  },
}