@@ -0,0 +1,742 @@
+import sublime, sublime_plugin%0Aimport re%0A%0Aclass StringWrapperCommand(sublime_plugin.TextCommand):%0A  def run(self, edit):%0A    for region in self.view.sel():%0A      # cursor_position = region.begin()%0A      line = self.view.line(region)%0A      line_contents = self.view.substr(line) + %22%5Cn%22%0A      matches = re.search(r%22%22%22(?P%3Cquote%3E%5B'%22%5D).*?(?P=quote)%22%22%22, line_contents)%0A      if matches is None:%0A        rowcol = self.view.rowcol(region.begin())%0A        line_number = rowcol%5B0%5D + 1%0A        print(%22no match on line %22 + str(line_number))%0A        return%0A      print(matches)%0A      # self.view.insert(edit, line.begin(), line_contents) # duplicate line%0A      # self.view.insert(edit, cursor_position, %22Current cursor position: %22 + str(cursor_position))%0A

Add initial plugin