Skip to content

Commit 41807db

Browse files
author
Robin Garen Aaberg
committed
patch so goto github works again and use the ux-way of getting the github magicword
1 parent ad6291e commit 41807db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

the_real_goto.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ def usage():
123123

124124
# going to sub-url in github
125125
if sys.argv[2] == 'github':
126-
api = GitHub(magic['github'])
126+
api = GitHub(magic.get_uri('github'))
127127
if len(sys.argv) == 4:
128128
url = api.url_for(sys.argv[3])
129129
open_link(url)
130+
else:
131+
open_link(magic.get_uri('github'))
130132
exit(0)
131133

132134
if '-o' in sys.argv or '--open' in sys.argv or 'open' in sys.argv:

0 commit comments

Comments
 (0)