-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize sublime theme auto-detect
- Loading branch information
ababaian
committed
Dec 30, 2017
1 parent
8340e15
commit db2c463
Showing
23 changed files
with
4,129 additions
and
20 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,37 @@ | ||
#!/bin/bash | ||
# | ||
# Usage: /.set_sublime-settings.sh | ||
# ( Run in "$BIOSYNTAX/sublime/" ) | ||
# | ||
# bioSyntax.org v0.1 | ||
# | ||
# Creates a copy of the bioSyntax default settings | ||
# for each syntax. | ||
# | ||
# Used to apply changes in "bioSyntax.sublime-settings" | ||
# as a default for every syntax | ||
# | ||
# Note: | ||
# Ideally all bioSyntax syntax files will | ||
# read the same "bioSyntax.sublime-settings" file | ||
# | ||
# In *nix this is done with `ln -s ` but that isn't | ||
# a windows/*.nix compatible way of creating links | ||
# to the same file. | ||
# | ||
|
||
TEMPLATE='bioSyntax.sublime-settings' | ||
|
||
printf " Default bioSyntax.sublime-settings:\t$TEMPLATE\n" | ||
# Generate a bioSyntax.sublime-settings | ||
# file if one doesn't exist. | ||
|
||
for SYNTAXFILE in $(ls *.sublime-syntax) | ||
do | ||
# Find each syntax definition file | ||
SYNTAX=$(basename -as'.sublime-syntax' $SYNTAXFILE) | ||
printf " Making .sublime-settings file for:\t$SYNTAX\n" | ||
|
||
cp $TEMPLATE $SYNTAX".sublime-settings" | ||
|
||
done |
17 changes: 17 additions & 0 deletions
17
dev/scripts/set_sublime-settings_TEMPLATE.sublime-settings
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,17 @@ | ||
// GENERIC SYNTAX | ||
// bioSyntax Settings File | ||
// These settings override both User and Default settings | ||
// for this syntax | ||
{ | ||
// Sets the colors used within the text area | ||
"color_scheme": "Packages/User/bioSyntax.tmTheme", | ||
|
||
// Word Wrapping | ||
"word_wrap": "auto", | ||
|
||
// Line Number / Gutter -- User controlled | ||
//"line_numbers": true, | ||
//"gutter": true, | ||
//"margin": 4, | ||
|
||
} |
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,17 @@ | ||
// GENERIC SYNTAX | ||
// bioSyntax Settings File | ||
// These settings override both User and Default settings | ||
// for this syntax | ||
{ | ||
// Sets the colors used within the text area | ||
"color_scheme": "Packages/User/bioSyntax.tmTheme", | ||
|
||
// Word Wrapping | ||
"word_wrap": "auto", | ||
|
||
// Line Number / Gutter -- User controlled | ||
//"line_numbers": true, | ||
//"gutter": true, | ||
//"margin": 4, | ||
|
||
} |
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,17 @@ | ||
// GENERIC SYNTAX | ||
// bioSyntax Settings File | ||
// These settings override both User and Default settings | ||
// for this syntax | ||
{ | ||
// Sets the colors used within the text area | ||
"color_scheme": "Packages/User/bioSyntax.tmTheme", | ||
|
||
// Word Wrapping | ||
"word_wrap": "auto", | ||
|
||
// Line Number / Gutter -- User controlled | ||
//"line_numbers": true, | ||
//"gutter": true, | ||
//"margin": 4, | ||
|
||
} |
Oops, something went wrong.