Skip to content

Instantly share code, notes, and snippets.

@ryo88c
Last active August 29, 2015 13:58
Show Gist options
  • Save ryo88c/10225365 to your computer and use it in GitHub Desktop.
Save ryo88c/10225365 to your computer and use it in GitHub Desktop.
Sublime text で開いているタブを開くコマンドリストをクリップボードに保存するプラグイン ref: http://qiita.com/ryo88c/items/cb4dfdcb6b5eb401fe85
import sublime, sublime_plugin
class ListingCommand(sublime_plugin.TextCommand):
def run(self, edit):
list = []
for x in range(0, self.view.window().num_groups()):
for file in self.view.window().views_in_group(x):
if file.file_name() == None:
continue
list.append('subl "%s"\n' % file.file_name())
sublime.set_clipboard(''.join(list))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment