diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..28a4799 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +*.pyc +Support/lib/pydevd diff --git a/Commands/Find Imports.tmCommand b/Commands/Find Imports.tmCommand new file mode 100644 index 0000000..f926cb7 --- /dev/null +++ b/Commands/Find Imports.tmCommand @@ -0,0 +1,23 @@ + + + + + beforeRunningCommand + nop + command + refactor.py find_imports + + input + document + keyEquivalent + @I + name + Find possible Imports + output + replaceDocument + scope + source.python + uuid + 60BA84AA-EDE8-41A5-9EB4-FB34B1E2A36C + + diff --git a/Support/bin/refactor.py b/Support/bin/refactor.py index e31784f..4bed0b6 100755 --- a/Support/bin/refactor.py +++ b/Support/bin/refactor.py @@ -11,14 +11,12 @@ from tm_helpers import to_plist, from_plist, current_word -import rope.base.simplify +import rope from rope.base import project,libutils from rope.contrib import codeassist, autoimport from rope.refactor.extract import ExtractMethod from rope.refactor.importutils import ImportOrganizer from rope.refactor.rename import Rename -import rope.base.simplify -import rope.base.simplify TM_DIALOG = os.environ['DIALOG_1'] TM_DIALOG2 = os.environ['DIALOG']