Permalink
Browse files

Adds compatability for Sublime Text 3

Refactoring and porting for compatability with ST3.
  • Loading branch information...
Daniel Shannon
Daniel Shannon committed Mar 10, 2013
1 parent 2cc9d0a commit 7fd16589a4168d7330b6c9ab24682390e8da9c3d
Showing with 5 additions and 5 deletions.
  1. BIN .DS_Store
  2. +3 −3 README.md
  3. +1 −1 converter.py
  4. +1 −1 open_related.py
View
BIN .DS_Store
Binary file not shown.
View
@@ -1,6 +1,6 @@
-# OpenRelated (Sublime Text 2 plugin)
+# OpenRelated (Sublime Text 2/3 plugin)
-A plugin for quick navigation between related files (e.g. test/implementation) in awesome text editor - [Sublime Text 2].
+A plugin for quick navigation between related files (e.g. test/implementation) in awesome text editor - [Sublime Text].
## Instalation
Recommended way is using [PackageControll] package.
@@ -36,6 +36,6 @@ By default, "open_related" is mapped to `CMD+T`, however you can easily change t
Note, if you have multiple groups opened (split view), related file will be opened in next group.
-[Sublime Text 2]: http://www.sublimetext.com/
+[Sublime Text]: http://www.sublimetext.com/
[PackageControll]: http://wbond.net/sublime_packages/package_control/installation
[tarball]: https://github.com/vojtajina/sublime-OpenRelated/tarball/master
View
@@ -44,7 +44,7 @@ def _is_formatter(self, exp):
class WindowsConverter(Converter):
def __init__(self, patterns):
- super(WindowsConverter, self).__init__(map(self._normalize, patterns))
+ super(WindowsConverter, self).__init__(list(map(self._normalize, patterns)))
def _normalize(self, path):
return path.replace("/", "\\")
View
@@ -1,6 +1,6 @@
import sublime, sublime_plugin
import os.path
-import converter
+from . import converter

This comment has been minimized.

Show comment Hide comment
@idosela

idosela Apr 22, 2013

This change breaks the plugin on ST2. Changing it back seems to work.

@idosela

idosela Apr 22, 2013

This change breaks the plugin on ST2. Changing it back seems to work.

class OpenRelatedCommand(sublime_plugin.WindowCommand):
def run(self):

0 comments on commit 7fd1658

Please sign in to comment.