summaryrefslogtreecommitdiff
path: root/User/paste_separated.py
blob: dda3a27da3711bed6755e9899279af44abb7759b (plain)
1
2
3
4
5
6
7
import sublime
import sublime_plugin


class PasteSeparatedCommand(sublime_plugin.TextCommand):
    def run(self, edit):
        self.view.run_command("insert_snippet", {"contents": "${0:, }".join(l.replace("$", "\\$") for l in sublime.get_clipboard().split("\n"))})