Permalink
Browse files

Initial commit

  • Loading branch information...
davepeck committed Jan 18, 2012
0 parents commit 191219b324524205675a6ee3f3dbd803b0e79cde
Showing with 31 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +17 −0 README.md
  3. +12 −0 directory_settings.py
@@ -0,0 +1,2 @@
+.sublime-settings
+*.pyc
@@ -0,0 +1,17 @@
+DirectorySettings for SublimeText 2
+===================================
+
+Place `.sublime-settings` files in a directory and, if you open a file in that directory, the settings will get applied to the file's view. Settings can nest in directories; in the event of conflict, the deepest settings files win.
+
+Much `TODO` here, including:
+
+- performance
+- watching for settings changes
+
+Example: To get a different color scheme for files in a given directory, add a `.sublime-settings` file to `~/code/project/` that reads:
+
+ {
+ "color_scheme": "Packages/Color Scheme - Default/SpecialTheme.tmTheme"
+ }
+
+That is all for now!
@@ -0,0 +1,12 @@
+import sublime, sublime_plugin
+import os, sys
+import thread
+import subprocess
+import functools
+
+class DirectorySettingsEventListener(sublime_plugin.EventListener):
+ def on_load(self, view):
+ if view.settings().get('use_directory_settings'):
+ pass
+
+

0 comments on commit 191219b

Please sign in to comment.