Last active
August 29, 2015 13:58
-
-
Save ryo88c/10225365 to your computer and use it in GitHub Desktop.
Sublime text で開いているタブを開くコマンドリストをクリップボードに保存するプラグイン ref: http://qiita.com/ryo88c/items/cb4dfdcb6b5eb401fe85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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