Skip to content

Commit 17c1e12

Browse files
committed
copy and open are now plugins
1 parent 4ec81ec commit 17c1e12

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

goto/commands/commands.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
from . import add
22
from . import check_migrate
3-
from . import copy
43
from . import default
54
from . import list
65
from . import migrate
7-
from . import open
86
from . import rename
97
from . import rm
108
from . import show
@@ -13,11 +11,9 @@
1311
commands = [
1412
add,
1513
check_migrate,
16-
copy,
1714
default,
1815
list,
1916
migrate,
20-
open,
2117
rename,
2218
rm,
2319
show,

goto/commands/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import webbrowser
22
from ..gotomagic.utils import is_file
33
from ..gotomagic.text import GotoWarning, GotoError
4-
from . import open
4+
from ..plugins import open
55

66

77
def help():

goto/plugins/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name='plugins'
22

3+
from . import copy
34
from . import intellij
5+
from . import open
46
from . import subl
57
from . import vscode
68

79
plugins = [
10+
copy,
811
intellij,
12+
open,
913
subl,
1014
vscode
1115
]

goto/plugins/intellij.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def help():
10-
return "{0:10}{1}".format('idea', 'Opens IntelliJ in code folder')
10+
return "{0:40}{1}".format('idea', 'Opens IntelliJ in code folder')
1111

1212

1313
def names():

goto/plugins/subl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def help():
9-
return "{0:10}{1}".format('subl', 'Opens Sublime Text in code folder')
9+
return "{0:40}{1}".format('subl', 'Opens Sublime Text in code folder')
1010

1111

1212
def names():

goto/plugins/vscode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def help():
9-
return "{0:10}{1}".format('vscode', 'Opens Visual Studio Code in code folder')
9+
return "{0:40}{1}".format('vscode', 'Opens Visual Studio Code in code folder')
1010

1111

1212
def names():

0 commit comments

Comments
 (0)