##// END OF EJS Templates
fix typo in surfraw completer docstring
Ville M. Vainio -
Show More
@@ -1,19 +1,19 b''
1 """ Completers for miscellaneous command line apps
1 """ Completers for miscellaneous command line apps
2
2
3 """
3 """
4 import IPython.ipapi
4 import IPython.ipapi
5 ip = IPython.ipapi.get()
5 ip = IPython.ipapi.get()
6 import os
6 import os
7
7
8 def surfraw_completer(self,cmdline):
8 def surfraw_completer(self,cmdline):
9 """ Completer for 'surfraw'
9 """ Completer for 'surfraw'
10
10
11 example::
11 example::
12 sr go<tob> => sr google
12 sr go<tab> => sr google
13
13
14 """
14 """
15 compl = [l.split(None,1)[0] for l in os.popen('sr -elvi')]
15 compl = [l.split(None,1)[0] for l in os.popen('sr -elvi')]
16 return compl
16 return compl
17
17
18
18
19 ip.set_hook('complete_command', surfraw_completer, str_key = 'sr') No newline at end of file
19 ip.set_hook('complete_command', surfraw_completer, str_key = 'sr')
General Comments 0
You need to be logged in to leave comments. Login now