I am trying to create a plugin for sublime text 3. For now I only get possible to select all text in a window and copy it in another window. Code :
You can get the contents of the current doc with:
contents = self.view.substr(sublime.Region(0, self.view.size()))