Permalink
Browse files

Remove collisions with Sublime2's built-in shortcuts

  • Loading branch information...
1 parent 29e7bfc commit b90087b9de8347b0e1c3c0b5742681eeebe47ca5 @titoBouzout committed Dec 13, 2012
@@ -1,13 +0,0 @@
-[
- { "keys": ["ctrl+t"], "command": "side_bar_new_file2" },
- { "keys": ["f12"],
- "command": "side_bar_open_in_browser" ,
- "args":{"paths":[], "type":"testing"}
- },
- { "keys": ["alt+f12"],
- "command": "side_bar_open_in_browser",
- "args":{"paths":[], "type":"production"}
- },
- { "keys": ["f2"], "command": "side_bar_rename" },
- { "keys": ["ctrl+alt+f"], "command": "side_bar_find_files_path_containing" }
-]
@@ -1,13 +0,0 @@
-[
- { "keys": ["ctrl+t"], "command": "side_bar_new_file2" },
- { "keys": ["f12"],
- "command": "side_bar_open_in_browser" ,
- "args":{"paths":[], "type":"testing"}
- },
- { "keys": ["alt+f12"],
- "command": "side_bar_open_in_browser",
- "args":{"paths":[], "type":"production"}
- },
- { "keys": ["f2"], "command": "side_bar_rename" },
- { "keys": ["ctrl+alt+f"], "command": "side_bar_find_files_path_containing" }
-]
@@ -1,13 +0,0 @@
-[
- { "keys": ["ctrl+t"], "command": "side_bar_new_file2" },
- { "keys": ["f12"],
- "command": "side_bar_open_in_browser" ,
- "args":{"paths":[], "type":"testing"}
- },
- { "keys": ["alt+f12"],
- "command": "side_bar_open_in_browser",
- "args":{"paths":[], "type":"production"}
- },
- { "keys": ["f2"], "command": "side_bar_rename" },
- { "keys": ["ctrl+alt+f"], "command": "side_bar_find_files_path_containing" }
-]
View
@@ -0,0 +1,10 @@
+[
+ { "keys": ["f12"],
+ "command": "side_bar_open_in_browser" ,
+ "args":{"paths":[], "type":"testing"}
+ },
+ { "keys": ["alt+f12"],
+ "command": "side_bar_open_in_browser",
+ "args":{"paths":[], "type":"production"}
+ }
+]
View
@@ -40,6 +40,15 @@ def expand_vars(path):
s = sublime.load_settings('Side Bar.sublime-settings')
+def check_version():
+ version = '11.13.2012.1305.0';
+ if s.get('version') != version:
+ SideBarItem(sublime.packages_path()+'/SideBarEnhancements/messages/'+version+'.txt', False).edit();
+ s.set('version', version);
+ sublime.save_settings('Side Bar.sublime-settings')
+
+sublime.set_timeout(lambda:check_version(), 3000);
+
class SideBarNewFile2Command(sublime_plugin.WindowCommand):
def run(self, paths = [], name = ""):
import functools
@@ -0,0 +1,21 @@
+
+
+SideBarEnhancements Changelog:
+
+ ## Shorcuts collisioning with Sublime2's built-in shortcuts have been removed.
+
+ If you miss these
+
+ - Go to "Preferences" -> "Browse Packages" -> "User"
+ - Open or create file "Default.sublime-keymap"
+
+ - Add this content:
+
+ , { "keys": ["ctrl+t"], "command": "side_bar_new_file2" },
+ { "keys": ["f2"], "command": "side_bar_rename" },
+ { "keys": ["ctrl+alt+f"], "command": "side_bar_find_files_path_containing" }
+
+
+ ## If you have problems configuring F12 key
+
+ - https://github.com/titoBouzout/SideBarEnhancements#f12-key

0 comments on commit b90087b

Please sign in to comment.