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
This commit is contained in:
Iristyle
2013-03-08 10:10:40 -05:00
parent 90c2036390
commit 3f98133490
7 changed files with 264 additions and 0 deletions

View File

@@ -0,0 +1,103 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>EthanBrown.SublimeText2.EditorPackages</id>
<title>Sublime Text 2 - Editor Enhancing Packages</title>
<version>0.0.1</version>
<authors>Various</authors>
<owners>Ethan Brown</owners>
<summary>A number of packages helpful for increased editor productivity.</summary>
<description>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
</description>
<projectUrl>http://github.com/Iristyle/ChocolateyPackages/</projectUrl>
<tags>SublimeText package editor</tags>
<!-- Eula is in installer
<licenseUrl></licenseUrl>
-->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://raw.github.com/Iristyle/ChocolateyPackages/master/SublimeText2.app/Sublime_Text.png</iconUrl>
<releaseNotes></releaseNotes>
<dependencies>
<dependency id="PowerShell" version="3.0"/>
<dependency id="SublimeText2.app" />
<dependency id="SourceCodePro" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
<file src="..\core\JsonHelpers.ps1" target="tools" />
<file src="..\core\SublimeHelpers.ps1" target="tools" />
</files>
</package>

View File

@@ -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"
}

View File

@@ -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"
}

View File

@@ -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"
]
}

View File

@@ -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<bug>.*)$",
"FIXME": "FIX ?ME[\\s]*?:+(?P<fixme>\\S.*)$",
"HACK": "HACK[\\s]*?:+(?P<hack>.*)$",
"NOTE": "NOTE[\\s]*?:+(?P<note>.*)$",
"TODO": "TODO[\\s]*?:+(?P<todo>.*)$"
},
"result_title": "TODO Results"
},
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"wide_caret": true
}

View File

@@ -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
}