Ejemplo n.º 1
0
# "sublime" : r'"C:\Program Files\Sublime Text 2\sublime_text.exe" "{fname}":{line}:{column}',
"sublime3" : r'"C:\Program Files (x86)\Sublime Text 3\sublime_text.exe" "{fname}":{line}:{column}',
"komodo" : r'"C:\Program Files (x86)\ActiveState Komodo Edit 8\komodo.exe" "{fname}" -l {line} -c{column}',
}
defIDE = "sublime3"

history = History(  savePath=os.getenv('USERPROFILE'),
                    savePathCoding=os.getenv('USERPROFILE'),
                    maxHistory=30)

extvalidator  = ExtNotify()

pathlast = history.getlsitPathsLast(1)

path = pathlast[0] if pathlast else ""
word =  history.getlsitWords()[-1] if history.getlsitWords() else ""
savedext =history.getExt()
# print  history.getlsitPaths()


def searhInStrWholeWorld(string,patern, ignoreCase = True, addpos = 0):
    lenw = len(patern)
    lens = len(string)
    if ignoreCase:
        string = string.lower()
    lastIndex = 0
    if not string: return
    while True:
        index = string.find(patern, lastIndex, lens )
        lastIndex = index+1    
        if index == -1: