This file contains hidden or 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 | |
help = { | |
'abs': 'Returns the absolute value of a number, or the magnitude of a complex number', | |
'all': 'Returns True if all elements of an iterable are true (or the iterable is empty)', | |
'any': 'Returns True if any of the elements of an iterable are true (False if the iterable is empty)', | |
'basestring': 'Superclass for str and unicode - used with isinstance function', | |
'bin': 'Converts an integer number to a binary string', | |
'bool': 'Converts a value to a Boolean, of False if no argument', | |
'bytearray': 'Returns a new array of bytes - a mutable sequence of integers 0-256', |
This file contains hidden or 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 | |
import re | |
def match1(rex, str): | |
m = rex.match(str) | |
if m: | |
return m.group(0) | |
else: | |
return None |
This file contains hidden or 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 | |
from os import path | |
from operator import itemgetter | |
from datetime import datetime | |
class OrderedFilesCommand(sublime_plugin.WindowCommand): | |
def run(self, index): | |
OF = OrderedFilesCommand | |
OF.file_views = [] | |
win = self.window |
This file contains hidden or 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 | |
from os import path | |
from operator import itemgetter | |
class SortTabsCommand(sublime_plugin.WindowCommand): | |
def run(self): | |
file_views = [] | |
win = self.window | |
curr_view = win.active_view() | |
for vw in win.views(): |
This file contains hidden or 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, os | |
from operator import itemgetter | |
from datetime import datetime | |
class OrderedFilesCommand(sublime_plugin.TextCommand): | |
def run(self, edit, index): | |
OF = OrderedFilesCommand | |
OF.file_views = [] | |
win = self.view.window() | |
for vw in win.views(): |
This file contains hidden or 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, os | |
from operator import itemgetter | |
class SortTabsCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
file_views = [] | |
win = self.view.window() | |
curr_view = win.active_view() | |
for vw in win.views(): | |
head, tail = os.path.split(vw.file_name()) |
This file contains hidden or 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, os, datetime | |
from operator import itemgetter | |
file_views = [] | |
class OrderedFilesCommand(sublime_plugin.TextCommand): | |
def run(self, edit, index): | |
global file_views | |
file_views = [] | |
win = self.view.window() |
This file contains hidden or 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, os, datetime | |
from operator import itemgetter | |
file_views = [] | |
class OrderedFilesCommand(sublime_plugin.TextCommand): | |
def run(self, edit, index): | |
global file_views | |
file_views = [] | |
for vw in self.view.window().views(): |
This file contains hidden or 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, os | |
from operator import itemgetter | |
class SortTabsCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
file_views = [] | |
win = self.view.window() | |
curr_view = win.active_view() | |
for vw in win.views(): | |
head, tail = os.path.split(vw.file_name()) |
This file contains hidden or 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, os, datetime | |
from operator import itemgetter | |
file_views = [] | |
class OrderedFilesCommand(sublime_plugin.TextCommand): | |
def run(self, edit, index): | |
global file_views | |
file_views = [] | |
for vw in self.view.window().views(): |