Skip to content

Instantly share code, notes, and snippets.

@paulp
Created September 1, 2014 13:30
Show Gist options
  • Save paulp/8312887c033baf60d009 to your computer and use it in GitHub Desktop.
Save paulp/8312887c033baf60d009 to your computer and use it in GitHub Desktop.
In Sublime Text 3, I multi-selected 50 positions and wanted to insert a different number on each line.
a) google search
b) discover "Text Pastry" via stack overflow answer
c) install text pastry sublime plugin (cmd-shift-P install)
d) cmd-shift-P pastry, choose "Text Pastry From 1 to X"
Total time elapsed, maybe 10 seconds.
I maintained my multi-selection and the extension inserted the numbers exactly as desired.
Number of editor restarts: ZERO
Amount of documentation I had to read: ZERO.
Pointless impediments encountered: ZERO.
@mattknox
Copy link

mattknox commented Sep 3, 2014

doable in emacs too, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment