Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed deprecated goto_dir plugin

  • Loading branch information...
commit 7c104b7b3482a064c6a723e5ca9efaba4f3b4479 1 parent 78a8848
@baverman authored
Showing with 1 addition and 22 deletions.
  1. +1 −1  snaked/core/plugins.py
  2. +0 −21 snaked/plugins/goto_dir/__init__.py
View
2  snaked/core/plugins.py
@@ -9,7 +9,7 @@
default_enabled_plugins = ['save_positions', 'edit_and_select',
'python', 'complete_words', 'hash_comment', 'python_flakes', 'goto_line',
- 'goto_dir', 'search']
+ 'search']
enabled_plugins = []
View
21 snaked/plugins/goto_dir/__init__.py
@@ -1,21 +0,0 @@
-author = 'Anton Bobrov<bobrov@vl.ru>'
-name = 'Goto dir'
-desc = "Opens file's directory"
-
-def init(injector):
- injector.bind_accel('editor-active', 'goto-dir', 'File/Open file\'s directory#30',
- '<ctrl><alt>l', goto_dir)
-
-def goto_dir(editor):
- import gio
- import os.path
-
- f = gio.file_parse_name(os.path.dirname(editor.uri))
- ct = f.query_info(gio.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE).get_content_type()
- ai = gio.app_info_get_default_for_type(ct, False)
-
- if ai:
- ai.launch([f])
- editor.message('File manager started', 1000)
- else:
- editor.message('Unknown content type for launch %s' % ct)
Please sign in to comment.
Something went wrong with that request. Please try again.