-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added settings to allow for tweaking of alignment, tweaked handling o…
…f blank lines when the user has their settings set to trim trailing white space
- Loading branch information
Showing
7 changed files
with
195 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// If the indent level of a multi-line selection should be aligned | ||
"align_indent": true, | ||
|
||
// The mid-line characters to align in a multi-line selection, changing | ||
// this to an empty array will disable mid-line alignment | ||
"alignment_chars": ["="], | ||
|
||
// If the following character is matched for alignment, insert a space | ||
// before it in the final alignment | ||
"alignment_space_chars": ["="], | ||
|
||
// The characters to align along with "alignment_chars" | ||
// For instance if the = is to be aligned, there are a number of | ||
// symbols that can be combined with the = to make an operator, and all | ||
// of those must be kept next to the = for the operator to be parsed | ||
"alignment_prefix_chars": [ | ||
"+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "." | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,68 @@ | ||
[ | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings", | ||
"command": "open_file", "args": | ||
{ | ||
"caption": "Preferences: Alignment File Settings – Default", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/Terminal/Base File.sublime-settings" | ||
} | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment File Settings – User", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Base File.sublime-settings" | ||
} | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment File Settings – Syntax Specific – User", | ||
"command": "open_file_settings" | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings – Default", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/Alignment/Default (Windows).sublime-keymap", | ||
"platform": "Windows" | ||
} | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings", | ||
"command": "open_file", "args": | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings – Default", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/Alignment/Default (OSX).sublime-keymap", | ||
"platform": "OSX" | ||
} | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings", | ||
"command": "open_file", "args": | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings – Default", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/Alignment/Default (Linux).sublime-keymap", | ||
"platform": "Linux" | ||
} | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings – User", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Default (Windows).sublime-keymap", | ||
"platform": "Windows" | ||
} | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings – User", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Default (OSX).sublime-keymap", | ||
"platform": "OSX" | ||
} | ||
}, | ||
{ | ||
"caption": "Preferences: Alignment Key Bindings – User", | ||
"command": "open_file", | ||
"args": { | ||
"file": "${packages}/User/Default (Linux).sublime-keymap", | ||
"platform": "Linux" | ||
} | ||
} | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"alignment_chars": ["=", ":"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"alignment_chars": ["=", ":"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters