Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial commit

  • Loading branch information...
commit 191219b324524205675a6ee3f3dbd803b0e79cde 0 parents
Dave Peck authored January 18, 2012
2  .gitignore
... ...
@@ -0,0 +1,2 @@
  1
+.sublime-settings
  2
+*.pyc
17  README.md
Source Rendered
... ...
@@ -0,0 +1,17 @@
  1
+DirectorySettings for SublimeText 2
  2
+===================================
  3
+
  4
+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.
  5
+
  6
+Much `TODO` here, including:
  7
+
  8
+- performance
  9
+- watching for settings changes
  10
+
  11
+Example: To get a different color scheme for files in a given directory, add a `.sublime-settings` file to `~/code/project/` that reads:
  12
+
  13
+    {
  14
+        "color_scheme": "Packages/Color Scheme - Default/SpecialTheme.tmTheme"
  15
+    }
  16
+
  17
+That is all for now!
12  directory_settings.py
... ...
@@ -0,0 +1,12 @@
  1
+import sublime, sublime_plugin
  2
+import os, sys
  3
+import thread
  4
+import subprocess
  5
+import functools
  6
+
  7
+class DirectorySettingsEventListener(sublime_plugin.EventListener):
  8
+    def on_load(self, view):
  9
+        if view.settings().get('use_directory_settings'):
  10
+            pass
  11
+
  12
+    

0 notes on commit 191219b

Please sign in to comment.
Something went wrong with that request. Please try again.