- Put SugaryNewFileCommand.py under Packages/User
- Add new key binding
{ "keys": ["super+n"], "command": "sugary_new_file" }
- Done.
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
# Copyright (c) 2019 Kirill Gashkov | |
import gspread | |
import gspread.utils | |
from collections import defaultdict | |
from itertools import chain | |
def update_notes_on_worksheet_cells(wks, note_cell_list): |
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
# Copyright (c) 2019 Kirill Gashkov | |
import gspread | |
import gspread.utils | |
def sort_worksheet(wks, *specs, range=None): | |
"""Sorts a gspread worksheet using given sort orders. | |
:param wks: The worksheet to sort. |
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
Show hidden characters
{ | |
"selector": "source.applescript", | |
"shell_cmd": "osacompile $file", | |
"variants": [ | |
{ | |
"name": "Run", | |
"shell_cmd": "osascript $file" | |
}, | |
{ | |
"name": "Application", |
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
{ | |
"selector": "source.swift", | |
"shell_cmd": "swift $file", | |
"variants": [ | |
{ | |
"name": "Executable", | |
"shell_cmd": "swiftc $file -o $file_base_name" | |
} | |
] | |
} |