User Tools

Site Tools


Duplicate_Line

This macro duplicates the current line. It will work well in most text editors. It works by selecting the current line, then Copy, then deselect the line and Paste, and finally restores the clipboard. It then reselects the just duplicated line to highlight it and allow further duplication.

Download: duplicate-line.kmmacros

Default Trigger: Hot Key ⌘L

Actions:

  • Type the ⌘Left Arrow Keystroke
  • Type the ⇧Down Arrow Keystroke
  • Type the ⌘C Keystroke
  • Type the Down Arrow Keystroke
  • Type the ⌘V Keystroke
  • Type the ⇧Up Arrow Keystroke
  • Set Clipboard To Past Clipboard 1
Duplicate_Line.txt · Last modified: 2014/10/17 07:34 by peternlewis