Skip to content

Latest commit

 

History

History
293 lines (244 loc) · 11.6 KB

readme-installation.md

File metadata and controls

293 lines (244 loc) · 11.6 KB

Installation

  1. Open your "Packages" folder by "Preferences: Browse packages" command in command palette

  2. Backup parent folder of "Packages" (it is "sublime-text-3" for linux, "Sublime Text 3" for OSX and windows); in case of troubles you should use this backup to restore original state of sublime.

  3. Run following command in console in "Packages" folder:

git clone git@github.com:shagabutdinov/sublime-align-cursors.git AlignCursors;
git clone git@github.com:shagabutdinov/sublime-align-hash-table.git AlignHashTable;
git clone git@github.com:shagabutdinov/sublime-append-selection.git AppendSelection;
git clone git@github.com:shagabutdinov/sublime-autocompletion.git AutocompletionFuzzy;
git clone git@github.com:shagabutdinov/sublime-clone-file.git CloneFile;
git clone git@github.com:shagabutdinov/sublime-close-other.git CloseOther;
git clone git@github.com:shagabutdinov/sublime-context.git Context;
git clone git@github.com:shagabutdinov/sublime-devastate-mini.git DevastateMini;
git clone git@github.com:shagabutdinov/sublime-duplicate-lines-enhanced.git DuplicateLinesEnhanced;
git clone git@github.com:shagabutdinov/sublime-eval-selection.git EvalSelection;
git clone git@github.com:shagabutdinov/sublime-delayed-save-all.git DelayedSaveAll;
git clone git@github.com:shagabutdinov/sublime-expression.git Expression;
git clone git@github.com:shagabutdinov/sublime-file-dialog.git FileDialog;
git clone git@github.com:shagabutdinov/sublime-file-list.git FileList;
git clone git@github.com:shagabutdinov/sublime-file-util.git FileUtil;
git clone git@github.com:shagabutdinov/sublime-folder-files.git FolderFiles;
git clone git@github.com:shagabutdinov/sublime-full-undo.git FullUndo;
git clone git@github.com:shagabutdinov/sublime-goto-anything-enhanced.git GotoAnythingEnhanced;
git clone git@github.com:shagabutdinov/sublime-goto-character.git GotoCharacter;
git clone git@github.com:shagabutdinov/sublime-goto-definition-enhanced.git GotoDefinitionEnhanced;
git clone git@github.com:shagabutdinov/sublime-goto-last-edit-enhanced.git GotoLastEditEnhanced;
git clone git@github.com:shagabutdinov/sublime-goto-line-enhanced.git GotoLineEnhanced;
git clone git@github.com:shagabutdinov/sublime-indentation-navigation.git IndentationNavigation;
git clone git@github.com:shagabutdinov/sublime-join-assignment.git JoinAssignment;
git clone git@github.com:shagabutdinov/sublime-join-chain-call.git JoinChainCall;
git clone git@github.com:shagabutdinov/sublime-join-lines-enhanced.git JoinLinesEnhanced;
git clone git@github.com:shagabutdinov/sublime-join-statement.git JoinStatement;
git clone git@github.com:shagabutdinov/sublime-keymap-enhanced.git KeymapEnhanced;
git clone git@github.com:shagabutdinov/sublime-keyword.git Keyword;
git clone git@github.com:shagabutdinov/sublime-local-variable.git LocalVariable;
git clone git@github.com:shagabutdinov/sublime-method.git Method;
git clone git@github.com:shagabutdinov/sublime-named-mark.git NamedMark;
git clone git@github.com:shagabutdinov/sublime-nested-snippet.git NestedSnippet;
git clone git@github.com:shagabutdinov/sublime-nesting-snippet.git NestingSnippet;
git clone git@github.com:shagabutdinov/sublime-open-path.git OpenPath;
git clone git@github.com:shagabutdinov/sublime-project-files.git ProjectFiles;
git clone git@github.com:shagabutdinov/sublime-quick-search-enhanced.git QuickSearchEnhanced;
git clone git@github.com:shagabutdinov/sublime-remove-selection.git RemoveSelection;
git clone git@github.com:shagabutdinov/sublime-repeat-command.git RepeatCommand;
git clone git@github.com:shagabutdinov/sublime-scope-context.git ScopeContext;
git clone git@github.com:shagabutdinov/sublime-scroll-enhanced.git ScrollEnhanced;
git clone git@github.com:shagabutdinov/sublime-search-panel-enhanced.git SearchPanelEnhanced;
git clone git@github.com:shagabutdinov/sublime-semicolon.git Semicolon;
git clone git@github.com:shagabutdinov/sublime-shell-status.git ShellStatus;
git clone git@github.com:shagabutdinov/sublime-snippet-caller.git SnippetCaller;
git clone git@github.com:shagabutdinov/sublime-snippet-manager.git SnippetManager;
git clone git@github.com:shagabutdinov/sublime-statement.git Statement;
git clone git@github.com:shagabutdinov/sublime-status-message.git StatusMessage;
git clone git@github.com:shagabutdinov/sublime-enhanced.git SublimeEnhanced;
git clone git@github.com:wbond/sublime_terminal.git Terminal
git clone git@github.com:shagabutdinov/sublime-terminal-project-folder.git TerminalProjectFolder;
git clone git@github.com:shagabutdinov/sublime-toggle-wrap.git ToggleWrap;
git clone git@github.com:shagabutdinov/sublime-utilities.git Utilities;
git clone git@github.com:shagabutdinov/sublime-wrap-statement.git WrapStatement
  1. Ensure that you have "Droid Sans Mono" font installed in your system

  2. Append following contents to your "User/Preferences.sublime-settings":

"theme": "DevastateMini.sublime-theme",
"color_scheme": "Packages/DevastateMini/DevastateMini.tmTheme",
  1. Append following contents to your "User/Default (*).sublime-keymap" file, "Preferences: Key Bindings - User" in command palette (alt+):
// KeymapEnhanced:
// Should be in User/Default ().sublime-keymap to avoid conflicts with
// Terminal plugin

{
  "keys": ["ctrl+shift+t"],
  "command": "reopen_last_file"
},

// JointStatement:
// Next two mappings should be in User/Default ().sublime-keymap to avoid
// conflicts with Terminal plugin
{
  "keys": ["ctrl+alt+shift+t"],
  "command": "unjoin_statement",
  "args": {
    "as_arguments": false
  },
  "context": [
    {"key": "in_arguments", "operator": "equal", "operand": false}
  ]
},

{
  "keys": ["ctrl+alt+shift+t"],
  "command": "unjoin_statement",
  "args": {
    "as_arguments": true
  },
  "context": [
    {"key": "in_arguments", "operator": "equal", "operand": true}
  ]
},

// Expression:
// should be in User/Default ().sublime-keymap to avoid [ctrl+k, ...] calls
{
  "keys": ["ctrl+k"],
  "command": "run_macro_file",
  "args": {
    "file": "res://Packages/Expression/macro/goto_block_down.sublime-macro"
  },
},
  1. (Optionally) For quick "dive in" you can disable arrows-navigation; to do it, copy your default keybindings ("Preferences: Key Bindings - Default" in command palette) into "Default/Default (OS).sublime-keymap" in "Packages" folder ("Preferences: Browse packages" in command palette) and comment following lines:

    { "keys": ["left"], "command": "move", "args": {"by": "characters", "forward": false} },
    { "keys": ["right"], "command": "move", "args": {"by": "characters", "forward": true} },
    { "keys": ["up"], "command": "move", "args": {"by": "lines", "forward": false} },
    { "keys": ["down"], "command": "move", "args": {"by": "lines", "forward": true} },
    { "keys": ["shift+left"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
    { "keys": ["shift+right"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
    { "keys": ["shift+up"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
    { "keys": ["shift+down"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
    
    { "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} },
    { "keys": ["ctrl+right"], "command": "move", "args": {"by": "word_ends", "forward": true} },
    { "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
    { "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },
    
    { "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
    { "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
    { "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
    { "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
    
    { "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
    { "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },
    
    { "keys": ["pageup"], "command": "move", "args": {"by": "pages", "forward": false} },
    { "keys": ["pagedown"], "command": "move", "args": {"by": "pages", "forward": true} },
    { "keys": ["shift+pageup"], "command": "move", "args": {"by": "pages", "forward": false, "extend": true} },
    { "keys": ["shift+pagedown"], "command": "move", "args": {"by": "pages", "forward": true, "extend": true} },
    
    { "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} },
    { "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} },
    { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} },
    { "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
    { "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof", "extend": false} },
    { "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof", "extend": false} },
    { "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} },
    { "keys": ["ctrl+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} },
    
    { "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } },
    { "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } },
    
    { "keys": ["ctrl+pagedown"], "command": "next_view" },
    { "keys": ["ctrl+pageup"], "command": "prev_view" },
    
  2. (Optionally) Install following very handy packages one by one:

And add keybindings to this packages:

// Case Conversion

{
  "keys": ["ctrl+u", "ctrl+-"],
  "command": "convert_to_snake"
},

{
  "keys": ["ctrl+u", "ctrl+="],
  "command": "convert_to_camel"
},

// Inc-Dec-Value

{
  "keys": ["ctrl+="],
  "command": "inc_dec_value",
  "args": {
    "action": "inc_min"
  }
},

{
  "keys": ["ctrl+-"],
  "command": "inc_dec_value",
  "args": {
    "action": "dec_min"
  }
},

{
  "keys": ["ctrl+shift+="],
  "command": "inc_dec_value",
  "args": {
    "action": "inc_max"
  }
},

{
  "keys": ["ctrl+shift+-"],
  "command": "inc_dec_value",
  "args": {
    "action": "dec_max"
  }
},

{
  "keys": ["ctrl+alt+="],
  "command": "inc_dec_value",
  "args": {
    "action": "inc_all"
  }
},

{
  "keys": ["ctrl+alt+-"],
  "command": "inc_dec_value",
  "args": {
    "action": "dec_all"
  }
},

// MoveTab

{
  "keys": ["ctrl+shift+,"],
  "command": "move_tab",
  "args": {
    "position": "-1"
  }
},

{
  "keys": ["ctrl+shift+."],
  "command": "move_tab",
  "args": {
    "position": "+1"
  }
},

// ColorSchemeSelector

{
  "keys": ["ctrl+u", "ctrl+t"],
  "command": "select_color_scheme"
},

// Open Search Result

{
  "keys": ["enter"],
  "command": "open_search_result",
  "context": [
    {"key": "selector", "operator": "equal", "operand": "text.find-in-files"}
  ]
},

  1. (Optionally) Restart sublime.