Skip to content
This repository
Browse code

Merge branch 'master' of github.com:baverman/snaked

  • Loading branch information...
commit 52a9146eae4a91d3776311d9c632682d55c307b2 2 parents ab99d9a + 7c104b7
Anton Bobrov authored May 23, 2012
2  snaked/core/plugins.py
@@ -9,7 +9,7 @@
9 9
 
10 10
 default_enabled_plugins = ['save_positions', 'edit_and_select',
11 11
     'python', 'complete_words', 'hash_comment', 'python_flakes', 'goto_line',
12  
-    'goto_dir', 'search']
  12
+    'search']
13 13
 
14 14
 enabled_plugins = []
15 15
 
21  snaked/plugins/goto_dir/__init__.py
... ...
@@ -1,21 +0,0 @@
1  
-author = 'Anton Bobrov<bobrov@vl.ru>'
2  
-name = 'Goto dir'
3  
-desc = "Opens file's directory"
4  
-
5  
-def init(injector):
6  
-    injector.bind_accel('editor-active', 'goto-dir', 'File/Open file\'s directory#30',
7  
-        '<ctrl><alt>l', goto_dir)
8  
-
9  
-def goto_dir(editor):
10  
-    import gio
11  
-    import os.path
12  
-
13  
-    f = gio.file_parse_name(os.path.dirname(editor.uri))
14  
-    ct = f.query_info(gio.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE).get_content_type()
15  
-    ai = gio.app_info_get_default_for_type(ct, False)
16  
-
17  
-    if ai:
18  
-        ai.launch([f])
19  
-        editor.message('File manager started', 1000)
20  
-    else:
21  
-        editor.message('Unknown content type for launch %s' % ct)

0 notes on commit 52a9146

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