├── .gitattributes ├── .gitignore ├── Default.sublime-commands ├── Default.sublime-keymap ├── FileManager.sublime-settings ├── Go.sublime-settings ├── JSON.sublime-settings ├── JSONComma.sublime-settings ├── LSP.sublime-settings ├── MarkdownLivePreview.sublime-settings ├── Package Control.sublime-settings ├── Plain text.sublime-settings ├── Preferences.sublime-settings ├── Six.sublime-settings ├── blackd.sublime-settings ├── goimports.sublime-build ├── macros └── Duplicate Lines.sublime-macro ├── offset.py └── snippets └── go └── handlerfunc.sublime-snippet /.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Package Control.cache/ 2 | 3 | Package Control.merged-ca-bundle 4 | Package Control.system-ca-bundle 5 | Package Control.user-ca-bundle 6 | Package Control.last-run 7 | __pycache__ 8 | *.sublime-workspace 9 | .SublimeREPLHistory 10 | todo.md 11 | Projects/ 12 | -------------------------------------------------------------------------------- /Default.sublime-commands: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "caption": "View: Move To New Group", 4 | "command": "new_pane" 5 | }, 6 | { 7 | "caption": "View: Close Group", 8 | "command": "close_pane" 9 | }, 10 | { 11 | "caption": "View: Show Build Results", 12 | "command": "show_panel", 13 | "args": { 14 | "panel": "output.exec" 15 | } 16 | } 17 | ] -------------------------------------------------------------------------------- /Default.sublime-keymap: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "keys": ["ctrl+alt+p"], 4 | "command": "project_manager", 5 | "args": { 6 | "action": "switch" 7 | } 8 | }, 9 | { 10 | "keys": ["ctrl+shift+d"], 11 | "command": "run_macro_file", 12 | "args": { 13 | "file": "Packages/User/macros/Duplicate Lines.sublime-macro" 14 | }, 15 | "context": [ 16 | {"key": "selection_empty", "operator": "equal", "operand": false, "match_all": true} 17 | ] 18 | }, 19 | { 20 | "keys": ["ctrl+shift+d"], 21 | "command": "duplicate_line", 22 | "args": { 23 | "file": "Packages/User/macros/Duplicate Lines.sublime-macro" 24 | }, 25 | "context": [ 26 | {"key": "selection_empty", "operator": "equal", "operand": true, "match_all": true} 27 | ] 28 | }, 29 | { 30 | "keys": ["f2"], 31 | "command": "lsp_symbol_rename", 32 | "context": [ 33 | {"key": "setting.lsp_active"} 34 | ] 35 | }, 36 | // { 37 | // "keys": ["ctrl+shift+space"], 38 | // "command": "lso_hover", 39 | // "context": [ 40 | // {"key": "setting.lsp_active"} 41 | // ] 42 | // }, 43 | { 44 | "keys": ["ctrl+n"], 45 | "command": "fm_create" 46 | }, 47 | { 48 | "keys": ["alt+n"], 49 | "command": "fm_create", 50 | "args": { 51 | "start_with_browser": true, 52 | "paths": ["$here"] 53 | } 54 | } 55 | ] 56 | -------------------------------------------------------------------------------- /FileManager.sublime-settings: -------------------------------------------------------------------------------- 1 | // Your settings for FileManager. See the default file to see the different options. 2 | { 3 | "aliases": { 4 | "st": "$packages", 5 | "stu": "$packages/User", 6 | "des": "~/Desktop", 7 | "here": "$file_path", 8 | "blog": "~/code/math2001.github.io/content", 9 | "cmds": "$packages/User/Default.sublime-commands" 10 | }, 11 | 12 | "create_keybinding_enabled": false, 13 | 14 | "terminals": [ 15 | { 16 | "name": "CMD", 17 | "cmd": ["cmd"], 18 | "platform": "windows" 19 | }, 20 | { 21 | "name": "Terminal", 22 | "cmd": ["open", "-a", "Terminal", "$cwd"], 23 | "platform": "osx" 24 | }, 25 | { 26 | "name": "iTerm", 27 | "cmd": ["open", "-a", "iTerm", "$cwd"], 28 | "platform": "osx" 29 | }, 30 | { 31 | "name": "GNOME Terminal", 32 | "cmd": ["gnome-terminal"], 33 | "platform": "linux" 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /Go.sublime-settings: -------------------------------------------------------------------------------- 1 | // These settings override both User and Default settings for the Go syntax 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /JSON.sublime-settings: -------------------------------------------------------------------------------- 1 | // These settings override both User and Default settings for the JSON syntax 2 | { 3 | } 4 | -------------------------------------------------------------------------------- /JSONComma.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "automatically_update_executable": true 3 | } 4 | -------------------------------------------------------------------------------- /LSP.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "auto_show_diagnostics_panel": "never", 3 | "clients": 4 | { 5 | "gopls": 6 | { 7 | "enabled": true 8 | }, 9 | "pyls": { 10 | "settings": { 11 | "pyls": { 12 | "plugins": { 13 | "pycodestyle": { 14 | "enabled": false 15 | } 16 | } 17 | } 18 | } 19 | } 20 | }, 21 | "only_show_lsp_completions": true, 22 | "show_diagnostics_count_in_view_status": true 23 | } -------------------------------------------------------------------------------- /MarkdownLivePreview.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "enable_default_open_preview": false, 3 | } 4 | -------------------------------------------------------------------------------- /Package Control.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "bootstrapped": true, 3 | "ignore_vcs_packages": true, 4 | "in_process_packages": 5 | [ 6 | ], 7 | "installed_packages": 8 | [ 9 | "ChannelRepositoryTools", 10 | "LSP", 11 | "Package Control", 12 | "PackageDev", 13 | "PackageResourceViewer", 14 | "ProjectManager", 15 | "UnitTesting" 16 | ] 17 | } 18 | -------------------------------------------------------------------------------- /Plain text.sublime-settings: -------------------------------------------------------------------------------- 1 | // These settings override both User and Default settings for the Plain text syntax 2 | { 3 | "spell_check": true 4 | } 5 | -------------------------------------------------------------------------------- /Preferences.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "always_show_minimap_viewport": true, 3 | "auto_complete_commit_on_tab": true, 4 | "binary_file_patterns": 5 | [ 6 | "*.jpg", 7 | "*.jpeg", 8 | "*.png", 9 | "*.gif", 10 | "*.ttf", 11 | "*.tga", 12 | "*.dds", 13 | "*.ico", 14 | "*.eot", 15 | "*.pdf", 16 | "*.swf", 17 | "*.jar", 18 | "*.zip" 19 | ], 20 | "close_windows_when_empty": false, 21 | "file_exclude_patterns": 22 | [ 23 | "*.test", 24 | "*.pyc", 25 | "*.pyo", 26 | "*.exe", 27 | "*.dll", 28 | "*.obj", 29 | "*.o", 30 | "*.a", 31 | "*.lib", 32 | "*.so", 33 | "*.dylib", 34 | "*.ncb", 35 | "*.sdf", 36 | "*.suo", 37 | "*.pdb", 38 | "*.idb", 39 | ".DS_Store", 40 | "*.class", 41 | "*.psd", 42 | "*.db", 43 | "*.sublime-workspace" 44 | ], 45 | "folder_exclude_patterns": 46 | [ 47 | ".svn", 48 | ".git", 49 | ".hg", 50 | "CVS", 51 | ".venv", 52 | "__pycache__", 53 | "fuzzing_workdir" 54 | ], 55 | "font_size": 10, 56 | "ignored_packages": 57 | [ 58 | "ChannelRepositoryTools", 59 | "MarkdownLivePreview", 60 | "Vintage" 61 | ], 62 | "jsoncomma_on_save": true, 63 | "save_on_focus_lost": true, 64 | "show_line_endings": true, 65 | "show_tab_close_buttons": true, 66 | "translate_tabs_to_spaces": true 67 | } 68 | -------------------------------------------------------------------------------- /Six.sublime-settings: -------------------------------------------------------------------------------- 1 | // Settings in here override those in "Six/Settings/Six.sublime-settings". 2 | { 3 | "enable_ctrl_keys": true, 4 | "enable_smart_case": true, 5 | } 6 | -------------------------------------------------------------------------------- /blackd.sublime-settings: -------------------------------------------------------------------------------- 1 | { 2 | "port": 45484 3 | } 4 | -------------------------------------------------------------------------------- /goimports.sublime-build: -------------------------------------------------------------------------------- 1 | { 2 | "shell_cmd": "goimports -w .", 3 | "selector": "source.go" 4 | } 5 | -------------------------------------------------------------------------------- /macros/Duplicate Lines.sublime-macro: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "args": 4 | { 5 | "to": "line" 6 | }, 7 | "command": "expand_selection" 8 | }, 9 | { 10 | "args": null, 11 | "command": "duplicate_line" 12 | } 13 | ] 14 | -------------------------------------------------------------------------------- /offset.py: -------------------------------------------------------------------------------- 1 | import sublime 2 | import sublime_plugin 3 | 4 | 5 | STATUS_KEY = "offset-plugin" 6 | 7 | 8 | class OffsetListener(sublime_plugin.ViewEventListener): 9 | @classmethod 10 | def is_applicable(self, settings): 11 | return True 12 | 13 | @classmethod 14 | def applies_to_primary_view_only(self): 15 | return False 16 | 17 | def on_selection_modified_async(self): 18 | offsets = [] 19 | for region in self.view.sel(): 20 | offsets.append(str(region.a)) 21 | if region.b != region.a: 22 | offsets[-1] = "{} => {}".format(region.a, region.b) 23 | self.view.set_status(STATUS_KEY, "Offset: " + ",".join(offsets)) 24 | -------------------------------------------------------------------------------- /snippets/go/handlerfunc.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | HandleFunc 9 | 10 | source.go 11 | 12 | --------------------------------------------------------------------------------