sys.path.insert(0, CWD) sys.path.insert(0, os.path.normpath(os.path.join(CWD, '..', '..'))) # 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="PyCharm", version="正式版", default_context="通用") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x ,row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv' encoding = 测试encoding(文件)
def __init__(self): super(RawDocsParser, self).__init__() self.idata = shmaplib.IntermediateShortcutData("Autodesk Maya")
sys.path.insert(0, CWD) sys.path.insert(0, os.path.normpath(os.path.join(CWD, '..', '..'))) # 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="VS Code", version="1", default_context="通用") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x ,row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv' encoding = 测试encoding(文件)
# 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="Microsoft PowerPoint", version="365", default_context="通用") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x, row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv'
sys.path.insert(0, CWD) sys.path.insert(0, os.path.normpath(os.path.join(CWD, '..', '..'))) # 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="KiCad", version="5", default_context="Eeschema") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x ,row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv' encoding = 测试encoding(文件)
# 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="Jupyter Notebook", version="1", default_context="命令行模式") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x, row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv'
# 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="Windows", version="10", default_context="通用") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x, row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv'
sys.path.insert(0, CWD) sys.path.insert(0, os.path.normpath(os.path.join(CWD, '..', '..'))) # 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="Microsoft Word", version="365", default_context="通用模式") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x ,row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv' encoding = 测试encoding(文件)
def __init__(self): super(RawKBDXParser, self).__init__() self.idata = shmaplib.IntermediateShortcutData("Autodesk 3dsMax")
def __init__(self): super(RawDocsParser, self).__init__() self.idata = shmaplib.IntermediateShortcutData("The Foundry: Nuke")
def __init__(self): super(RawDocsParser, self).__init__() self.idata = shmaplib.IntermediateShortcutData("Unity 3D")
# 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="PotPlayer", version="V1", default_context="通用") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x, row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv'
# 导入 shmaplib 库 import shmaplib def 测试encoding(file): try: with open(file, encoding='utf-8') as f: f.read() return 'utf-8' except: return 'gbk' # 创建中间数据容器 idata = shmaplib.IntermediateShortcutData(app_name="One Commander", version="V3", default_context="通用") # 确保 csv 文件存在 文件 = 'windows.csv' encoding = 测试encoding(文件) with open(文件, encoding=encoding) as csvfile: content = csv.reader(csvfile, delimiter=',', quotechar='"') for row in content: if len(row) < 3: continue context_name = row[0] label = row[1] keys_win = ' + '.join(list(filter(lambda x: x, row[2:]))) idata.add_shortcut(context_name, label, keys_win, '') 文件 = 'mac.csv'