universal-emacs-keybindings icon indicating copy to clipboard operation
universal-emacs-keybindings copied to clipboard

Hammerspoon ctrl-k behavior

Open mattharrison opened this issue 2 years ago • 0 comments

I updated the ctrl-k behavior to copy the content to the right of the cursor:

      --['k'] = {'ctrl', 'k', false, nil},
      ['k'] = {nil, nil, false, 'macroMattCtrlK'},

and here is the macro

function macroMattCtrlK()
  tapKey({'shift', 'cmd'}, 'right')
  tapKey('cmd', 'x')
end

mattharrison avatar Jan 05 '23 17:01 mattharrison