Skip to content

Instantly share code, notes, and snippets.

@oscarcck
Created April 30, 2012 08:13
Show Gist options
  • Save oscarcck/2556486 to your computer and use it in GitHub Desktop.
Save oscarcck/2556486 to your computer and use it in GitHub Desktop.
textmate 2 .tm_properties
# .tm_properties file from http://gist.github.com/1478685
# ---------------------------------------------------------
# ---------------------------------------------------------
# Display the name of the home directory
# ---------------------------------------------------------
#windowTitle = "$TM_DISPLAYNAME - ${CWD/^.*\///}"
#windowTitle = "$TM_DISPLAYNAME${TM_DIRECTORY/\A(?:\/Users\/Oscar\w+\/?(.*)|(.+))\z/${2:? – ${2/\A\/Users\/Oscar/~/}:${1/\A(?=.)/ – /}}/}"
windowTitle = "$TM_DISPLAYNAME${TM_DIRECTORY/\A(?:\/Users\/Oscar\/Documents\/(?:work\/)?(?!\b(?:communication|programming|reference)\b)\w+\/?(.*)|(.+))\z/${2:? – ${2/\/Users\/Oscar/~/}:${1/\A(?=.)/ – /}}/}"
# ---------------------------------------------------------
# Omit .tm_properties so it doesn't show in the browser
# ---------------------------------------------------------
myExtraIncludes = ".tm_properties,.htaccess,.gitignore"
fileBrowserGlob = "{*,$myExtraIncludes}"
include = "{$include,$myExtraIncludes}"
# ---------------------------------------------------------
# Exclude files
# ---------------------------------------------------------
exclude = "{$exclude,*.tmproj}"
excludeFiles = “*.{so,pyc,o,scssc}”
excludeDirectories = “build,dist,tmp”
myExtraExcludes = "log,vendor,tmp"
excludeInFileChooser = "{$excludeInFileChooser,$myExtraExcludes}"
excludeInFolderSearch = "{$excludeInFolderSearch,$myExtraExcludes}"
# ---------------------------------------------------------
# Variables
# ---------------------------------------------------------
TM_GIT = "/usr/local/bin/git"
TM_HG = "/usr/local/bin/hg"
# ---------------------------------------------------------
# General Settings
# ---------------------------------------------------------
#fontName = "Monaco"
fontName = "Consolas"
#fontName = "Inconsolata"
fontSize = 14
softTabs = true
tabSize = 2
softWrap = false
wrapColumn = "Use Window Frame"
showInvisibles = true
[ text ]
softWrap = false
wrapColumn = 80
softTabs = true
tabSize = 2
[ text.html.markdown ]
softWrap = true
wrapColumn = "Use Window Frame"
softTabs = false
tabSize = 4
spellChecking = true
[ text.plain ]
softWrap = true
wrapColumn = "Use Window Frame"
softTabs = false
tabSize = 4
spellChecking = true
[ source ]
softWrap = false
wrapColumn = 80
softTabs = true
tabSize = 2
[ source.plist ]
softTabs = false
tabSize = 4
[ source.tm-properties ]
spellChecking = false
[ .git/COMMIT_EDITMSG ]
spellChecking = true
spellingLanguage = 'en'
[ *.{icns,ico,jpg,jpeg,m4v,nib,pdf,png,psd,pyc,rtf,tif,tiff,xib} ]
binary = true
[ "{README,INSTALL,LICENSE,TODO}" ]
fileType = "text.plain"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment