repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm/bugabinga/mouse_binds.lua

Raw
local wez = require 'wezterm'

local bindings = {
  {
    event = { Down = { streak = 4, button = 'Left', }, },
    action = wez.action.SelectTextAtMouseCursor 'SemanticZone',
    mods = 'NONE',
  },
  -- CTRL+Wheel: font size
  {
    event = { Down = { streak = 1, button = { WheelUp = 1 }, }, },
    mods = 'CTRL',
    action = wez.action.IncreaseFontSize,
  },
  {
    event = { Down = { streak = 1, button = { WheelDown = 1 }, }, },
    mods = 'CTRL',
    action = wez.action.DecreaseFontSize,
  },
}
return function ( cfg )
  cfg.mouse_bindings = bindings
end