Repository: mjhea0/sublime-setup-for-python Branch: master Commit: fde7f9746236 Files: 11 Total size: 4.2 KB Directory structure: gitextract_pe9w_r96/ ├── .gitignore ├── dotfiles/ │ ├── Default (OSX).sublime-keymap │ ├── Package Control.sublime-settings │ ├── Preferences.sublime-settings │ ├── Python.sublime-settings │ ├── close_tabs.py │ ├── copy_path_to_clipboard.py │ └── snippets/ │ ├── pdb.sublime-snippet │ └── unittest.sublime-snippet ├── readme.md └── requirements.txt ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ .DS_Store ================================================ FILE: dotfiles/Default (OSX).sublime-keymap ================================================ [ // advanced new file { "keys": ["super+n"], "command": "advanced_new_file_new"}, // Copy file name { "keys": ["super+shift+c"], "command": "copy_path_to_clipboard" }, // Close all other tabs { "keys": ["super+alt+w"], "command": "close_tabs" } ] ================================================ FILE: dotfiles/Package Control.sublime-settings ================================================ { "installed_packages": [ "AdvancedNewFile", "Anaconda", "Djaneiro", "Emmet", "GitGutter", "Markdown Preview", "requirementstxt", "SideBarEnhancements", "SublimeLinter", "SublimeLinter-csslint", "SublimeLinter-html-tidy", "SublimeLinter-jshint", "SublimeLinter-json", "SublimeLinter-pep8", "SublimeLinter-pyflakes", "SublimeLinter-pyyaml", "Theme - Flatland", "Theme - Soda", "Tomorrow Color Schemes" ] } ================================================ FILE: dotfiles/Preferences.sublime-settings ================================================ { "auto_complete": false, "auto_complete_commit_on_tab": true, "auto_match_enabled": true, "bold_folder_labels": true, "caret_style": "solid", "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme", "detect_indentation": true, "draw_indent_guides": true, "ensure_newline_at_eof_on_save": true, "file_exclude_patterns": [ "*.DS_Store", "*.pyc", "*.git" ], "find_selected_text": true, "fold_buttons": false, "folder_exclude_patterns": [ ], "font_face": "Menlo", "font_options": [ "no_round" ], "font_size": 13, "highlight_line": true, "highlight_modified_tabs": true, "ignored_packages": [ "Vintage" ], "indent_to_bracket": true, "line_padding_bottom": 0, "line_padding_top": 0, "match_brackets": true, "match_brackets_angle": false, "match_brackets_braces": true, "match_brackets_content": true, "match_brackets_square": true, "new_window_settings": { "hide_open_files": true, "show_tabs": true, "side_bar_visible": true, "status_bar_visible": true }, "remember_open_files": true, "remember_open_folders": true, "save_on_focus_lost": true, "scroll_past_end": false, "show_full_path": true, "show_minimap": false, "tab_size": 2, "theme": "Flatland Dark.sublime-theme", "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": true, "use_simple_full_screen": true, "vintage_start_in_command_mode": false, "wide_caret": true, "word_wrap": true } ================================================ FILE: dotfiles/Python.sublime-settings ================================================ { // editor options "draw_white_space": "all", // tabs and whitespace "auto_indent": true, "rulers": [79], "smart_indent": true, "tab_size": 4, "trim_automatic_white_space": true, "use_tab_stops": true, "word_wrap": true, "wrap_width": 80 } ================================================ FILE: dotfiles/close_tabs.py ================================================ import sublime_plugin class CloseTabs(sublime_plugin.TextCommand): def run(self, edit): window = self.view.window() group_index, view_index = window.get_view_index(self.view) window.run_command( 'close_others_by_index', {'group': group_index, 'index': view_index} ) ================================================ FILE: dotfiles/copy_path_to_clipboard.py ================================================ import sublime import sublime_plugin class CopyPathToClipboard(sublime_plugin.TextCommand): def run(self, edit): line_number, column = self.view.rowcol(self.view.sel()[0].begin()) line_number += 1 sublime.set_clipboard(self.view.file_name() + ':' + str(line_number)) ================================================ FILE: dotfiles/snippets/pdb.sublime-snippet ================================================ pdb source.python ================================================ FILE: dotfiles/snippets/unittest.sublime-snippet ================================================ testcase source.python Adds a unittest TestCase skeleton at current pointer ================================================ FILE: readme.md ================================================ ## Setting up Sublime Text 3 for Full Stack Python Development Check out the blogpost here - **https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/** ================================================ FILE: requirements.txt ================================================