From 3f98133490519fc0c34ab58df4ed766ac44fabc2 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Fri, 8 Mar 2013 10:10:40 -0500 Subject: [PATCH] EthanBrown.SublimeText2.EditorPackages - Sublime package featuring the best text editing packages - Abacus, Block Cursor Everywhere, Bracketeer, Bracket Highlighter, Clipboard Manager, ExportHtml, FileDiffs, LiveReload, Markdown Preview, Missing Palette Commands, Related Files, SmartMarkdown, Solarized Color Scheme, StringEncode, SublimeTODO, TrailingSpace - Also includes a custom keybinding package hosted on GitHub - Merges in customized settings for User Preferences - Waiting on RelatedFiles plugin update to finish AngularJS settings --- ...anBrown.SublimeText2.EditorPackages.nuspec | 103 ++++++++++++++++++ .../tools/BracketHighlighter.sublime-settings | 16 +++ .../tools/MarkdownPreview.sublime-settings | 10 ++ .../tools/Package Control.sublime-settings | 29 +++++ .../tools/Preferences.sublime-settings | 58 ++++++++++ .../tools/RelatedFiles.sublime-settings | 3 + .../tools/chocolateyInstall.ps1 | 45 ++++++++ 7 files changed, 264 insertions(+) create mode 100644 EthanBrown.SublimeText2.EditorPackages/EthanBrown.SublimeText2.EditorPackages.nuspec create mode 100644 EthanBrown.SublimeText2.EditorPackages/tools/BracketHighlighter.sublime-settings create mode 100644 EthanBrown.SublimeText2.EditorPackages/tools/MarkdownPreview.sublime-settings create mode 100644 EthanBrown.SublimeText2.EditorPackages/tools/Package Control.sublime-settings create mode 100644 EthanBrown.SublimeText2.EditorPackages/tools/Preferences.sublime-settings create mode 100644 EthanBrown.SublimeText2.EditorPackages/tools/RelatedFiles.sublime-settings create mode 100644 EthanBrown.SublimeText2.EditorPackages/tools/chocolateyInstall.ps1 diff --git a/EthanBrown.SublimeText2.EditorPackages/EthanBrown.SublimeText2.EditorPackages.nuspec b/EthanBrown.SublimeText2.EditorPackages/EthanBrown.SublimeText2.EditorPackages.nuspec new file mode 100644 index 0000000..4ac2be0 --- /dev/null +++ b/EthanBrown.SublimeText2.EditorPackages/EthanBrown.SublimeText2.EditorPackages.nuspec @@ -0,0 +1,103 @@ + + + + EthanBrown.SublimeText2.EditorPackages + Sublime Text 2 - Editor Enhancing Packages + 0.0.1 + Various + Ethan Brown + A number of packages helpful for increased editor productivity. + Includes a number of very useful packages for Sublime Text 2. + + Included + =========================================================================== + + - Abacus + https://github.com/khiltd/Abacus + + - Block Cursor Everywhere + https://github.com/ingshtrom/BlockCursorEverywhere + + - Bracketeer + https://github.com/colinta/SublimeBracketeer + + - BracketHighlighter + https://github.com/facelessuser/BracketHighlighter + + - Clipboard Manager + https://github.com/colinta/SublimeClipboardManager + + - ExportHtml + https://github.com/facelessuser/ExportHtml + + - FileDiffs + https://github.com/colinta/SublimeFileDiffs + + - LiveReload + https://github.com/dz0ny/LiveReload-sublimetext2 + + - Markdown Preview + https://github.com/revolunet/sublimetext-markdown-preview + + - Missing Palette Commands + https://github.com/fjl/Sublime-Missing-Palette-Commands + + - Related Files + https://github.com/fabiokr/sublime-related-files + + - SmartMarkdown + https://github.com/demon386/SmartMarkdown + + - Solarized Color Scheme + https://github.com/SublimeColors/Solarized + + - StringEncode + https://github.com/colinta/SublimeStringEncode + + - SublimeTODO + https://github.com/robcowie/SublimeTODO + + - TrailingSpaces + https://github.com/SublimeText/TrailingSpaces + + Customized Key Bindings + =========================================================================== + https://github.com/Iristyle/SublimeKeyMap.Editor + + Additional Package Preferences + =========================================================================== + BracketHighlighter - Coloring compatibility with Solarized + Markdown Preview - Uses github parser + Related Files - Settings for AngularJS projects + + Additional User Preferences + =========================================================================== + Rules for + - drawing whitespace + - ensuring 2 tab indent + - rulers at 50, 72, 80 and 120 + - use spaces everywhere + - trim whitespace on save + - 14 point Source Code Pro font + - line highlight + + http://github.com/Iristyle/ChocolateyPackages/ + SublimeText package editor + + false + https://raw.github.com/Iristyle/ChocolateyPackages/master/SublimeText2.app/Sublime_Text.png + + + + + + + + + + + + + diff --git a/EthanBrown.SublimeText2.EditorPackages/tools/BracketHighlighter.sublime-settings b/EthanBrown.SublimeText2.EditorPackages/tools/BracketHighlighter.sublime-settings new file mode 100644 index 0000000..dc105a9 --- /dev/null +++ b/EthanBrown.SublimeText2.EditorPackages/tools/BracketHighlighter.sublime-settings @@ -0,0 +1,16 @@ +{ + "quote_scope" : "brackethighlighter.all", + "curly_scope" : "brackethighlighter.all", + "round_scope" : "brackethighlighter.all", + "square_scope": "brackethighlighter.all", + "angle_scope" : "brackethighlighter.all", + "tag_scope" : "brackethighlighter.all" + + // Outline? (solid|outline|underline|none) + //"quote_style" : "outline", + //"curly_style" : "outline", + //"round_style" : "outline", + //"square_style": "outline", + //"angle_style" : "outline", + //"tag_style" : "outline" +} diff --git a/EthanBrown.SublimeText2.EditorPackages/tools/MarkdownPreview.sublime-settings b/EthanBrown.SublimeText2.EditorPackages/tools/MarkdownPreview.sublime-settings new file mode 100644 index 0000000..a63b107 --- /dev/null +++ b/EthanBrown.SublimeText2.EditorPackages/tools/MarkdownPreview.sublime-settings @@ -0,0 +1,10 @@ +{ + /* + Sets the default parser for converting markdown to html. + Warning for github API : if you have a ST2 linux build, Python is not built with SSL o it may not work + + default - Use the builtin python-markdown2 parser + github - User github API to convert markdown, so you can use GitHub flavored Markdown, see http://github.github.com/github-flavored-markdown/ + */ + "parser": "github" +} diff --git a/EthanBrown.SublimeText2.EditorPackages/tools/Package Control.sublime-settings b/EthanBrown.SublimeText2.EditorPackages/tools/Package Control.sublime-settings new file mode 100644 index 0000000..86105e0 --- /dev/null +++ b/EthanBrown.SublimeText2.EditorPackages/tools/Package Control.sublime-settings @@ -0,0 +1,29 @@ +{ + "installed_packages": + [ + "Abacus", + "Block Cursor Everywhere", + "Bracketeer", + "BracketHighlighter", + "Clipboard Manager", + "ExportHtml", + "FileDiffs", + "LiveReload", + "Markdown Preview", + "Missing Palette Commands", + "Related Files", + "SmartMarkdown", + "Solarized Color Scheme", + "StringEncode", + "SublimeTODO", + "TrailingSpaces", + "ZZZ.EthanBrown.SublimeKeyMap.Editor" + ], + "package_name_map": { + "SublimeKeyMap.Editor": "ZZZ.EthanBrown.SublimeKeyMap.Editor" + }, + "repositories": + [ + "https://github.com/Iristyle/SublimeKeyMap.Editor" + ] +} diff --git a/EthanBrown.SublimeText2.EditorPackages/tools/Preferences.sublime-settings b/EthanBrown.SublimeText2.EditorPackages/tools/Preferences.sublime-settings new file mode 100644 index 0000000..07d2821 --- /dev/null +++ b/EthanBrown.SublimeText2.EditorPackages/tools/Preferences.sublime-settings @@ -0,0 +1,58 @@ +{ + "auto_complete_commit_on_tab": true, + "caret_style": "phase", + "color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).tmTheme", + "draw_white_space": "all", + "ensure_newline_at_eof_on_save": true, + "font_face": "Source Code Pro", + "font_size": 14, + "highlight_line": true, + "ignored_packages": + [ + "Vintage", + "HTML Export", + "TrailingSpaces" + ], + "indent_guide_options": + [ + "draw_active", + "draw_normal" + ], + "rulers": + [ + 50, + 72, + 80, + 120 + ], + "tab_size": 2, + "todo": + { + "case_sensitive": true, + "file_exclude_patterns": + [ + "*.css", + "*.po", + "*.mo" + ], + "folder_exclude_patterns": + [ + "generated", + "static", + "vendor", + "tmp" + ], + "patterns": + { + "BUG": "BUG[\\s]*?:+(?P.*)$", + "FIXME": "FIX ?ME[\\s]*?:+(?P\\S.*)$", + "HACK": "HACK[\\s]*?:+(?P.*)$", + "NOTE": "NOTE[\\s]*?:+(?P.*)$", + "TODO": "TODO[\\s]*?:+(?P.*)$" + }, + "result_title": "TODO Results" + }, + "translate_tabs_to_spaces": true, + "trim_trailing_white_space_on_save": true, + "wide_caret": true +} diff --git a/EthanBrown.SublimeText2.EditorPackages/tools/RelatedFiles.sublime-settings b/EthanBrown.SublimeText2.EditorPackages/tools/RelatedFiles.sublime-settings new file mode 100644 index 0000000..5ccf10f --- /dev/null +++ b/EthanBrown.SublimeText2.EditorPackages/tools/RelatedFiles.sublime-settings @@ -0,0 +1,3 @@ +{ + +} diff --git a/EthanBrown.SublimeText2.EditorPackages/tools/chocolateyInstall.ps1 b/EthanBrown.SublimeText2.EditorPackages/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..f7ba06a --- /dev/null +++ b/EthanBrown.SublimeText2.EditorPackages/tools/chocolateyInstall.ps1 @@ -0,0 +1,45 @@ +$package = 'EthanBrown.SublimeText2.EditorPackages' + +function Get-CurrentDirectory +{ + $thisName = $MyInvocation.MyCommand.Name + [IO.Path]::GetDirectoryName((Get-Content function:$thisName).File) +} + +try { + $current = Get-CurrentDirectory + + . (Join-Path $current 'JsonHelpers.ps1') + . (Join-Path $current 'SublimeHelpers.ps1') + + $sublimeUserDataPath = Get-SublimeUserPath + + #straight file copies + 'BracketHighlighter.sublime-settings', + 'MarkdownPreview.sublime-settings', + 'RelatedFiles.sublime-settings' | + % { + $params = @{ + Path = Join-Path $current $_; + Destination = Join-Path $sublimeUserDataPath $_; + Force = $true + } + Copy-Item @params + } + + $packageControl = Join-Path $current 'Package Control.sublime-settings' + Merge-PackageControlSettings -FilePath $packageControl + + $preferences = Join-Path $current 'Preferences.sublime-settings' + Merge-Preferences -FilePath $preferences + + if (Get-Process -Name sublime_text -ErrorAction SilentlyContinue) + { + Write-Warning 'Please close and re-open Sublime Text to force packages to update' + } + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}