Back to Wezterm

CopyMode `{ MoveForwardSemanticZone = ZONE }`

docs/config/lua/keyassignment/CopyMode/MoveForwardSemanticZoneOfType.md

latest631 B
Original Source

CopyMode { MoveForwardSemanticZone = ZONE }

{{since('20220903-194523-3bb1ed61')}}

Moves the CopyMode cursor position to the next semantic zone of the specified type that follows the current zone.

See Shell Integration for more information about semantic zones.

Possible values for ZONE are:

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

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