Skip to content

Commit

Permalink
Initialize sublime theme auto-detect
Browse files Browse the repository at this point in the history
  • Loading branch information
ababaian committed Dec 30, 2017
1 parent 8340e15 commit db2c463
Show file tree
Hide file tree
Showing 23 changed files with 4,129 additions and 20 deletions.
40 changes: 20 additions & 20 deletions dev/scripts/drawHelix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
### |__) | / \ /__` \ / |\ | | /\ \_/
#### |__) | \__/ .__/ | | \| | /~~\ / \
#####=======================================
## v0.1
## biosyntax.org v0.1
#
# ABabaian -- artem@rRNA.ca
#
# Props to @darokin for the gif-spiration
Expand All @@ -31,29 +32,29 @@ IDX=1 # Initialize print index
# Terminal Color Palette
if [[ $(tput colors) == '256' ]]; then
# Color Definitions (ANSI_256 Supported)
colA='\e[1;38:5:10m'
colT='\e[1;38:5:33m'
colG='\e[1;38:5:214m'
colC='\e[1;38:5:9m'
colN1='\e[1;36m'
colN2='\e[1;35m'
colHelix='\e[1;38:5:250m'
colA="$(tput setaf 10)"
colT="$(tput setaf 33)"
colG="$(tput setaf 214)"
colC="$(tput setaf 9)"
colN1="$(tput setaf 87)"
colN2="$(tput setaf 205)"
colHelix=$(tput setaf 250)
#colBond1=$colHelix
colBond2='\e[1;30m'
colBg='\e[38:5:17m'
colBond2="$(tput setaf 0)"
colBg="$(tput setaf 17)"

else # use System colors
# Color Definitions (System Colors)
colA='\e[1;32m'
colT='\e[1;34m'
colG='\e[1;33m'
colC='\e[1;31m'
colN1='\e[1;36m'
colN2='\e[1;35m'
colHelix='\e[1;37m'
colA="$(tput setaf 2)"
colT="$(tput setaf 4)"
colG="$(tput setaf 3)"
colC="$(tput setaf 1)"
colN1="$(tput setaf 6)"
colN2="$(tput setaf 5)"
colHelix="$(tput setaf 7)"
#colBond1=$colHelix
colBond2='\e[1;30m'
colBg='\e[0m'
colBond2="$(tput setaf 0)"
colBg="$(tput setaf 0)"
fi

# DRAW DNA ------------------------------------------------
Expand Down Expand Up @@ -119,4 +120,3 @@ do
done # BASE
fi #N
done #SEQ
#
37 changes: 37 additions & 0 deletions dev/scripts/set_sublime-settings.sh
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 dev/scripts/set_sublime-settings_TEMPLATE.sublime-settings
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,

}
17 changes: 17 additions & 0 deletions sublime/bed.sublime-settings
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,

}
17 changes: 17 additions & 0 deletions sublime/bioSyntax.sublime-settings
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,

}
Loading

0 comments on commit db2c463

Please sign in to comment.