Skip to content

Commit

Permalink
Remove collisions with Sublime2's built-in shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
titoBouzout committed Dec 13, 2012
1 parent 29e7bfc commit b90087b
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 39 deletions.
13 changes: 0 additions & 13 deletions Default (Linux).sublime-keymap

This file was deleted.

13 changes: 0 additions & 13 deletions Default (OSX).sublime-keymap

This file was deleted.

13 changes: 0 additions & 13 deletions Default (Windows).sublime-keymap

This file was deleted.

10 changes: 10 additions & 0 deletions Default.sublime-keymap
@@ -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"}
}
]
9 changes: 9 additions & 0 deletions SideBar.py
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions messages/11.13.2012.1305.0.txt
@@ -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

1 comment on commit b90087b

@JorgenSmith
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Great work, cheers.

Please sign in to comment.