Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- atom.commands.add('atom-text-editor', 'me:insert-number-list', () => {
- var editor = atom.workspace.getActiveTextEditor();
- var selections = editor.getSelections();
- for (var i = 0; i < selections.length; i++) {
- selection = selections[i]
- selection.insertText(String(i + 1))
- }
- })
Add Comment
Please, Sign In to add comment