##// END OF EJS Templates
fix typo in surfraw completer docstring
fix typo in surfraw completer docstring

File last commit:

r1591:e765d943
r1591:e765d943
Show More
ipy_miscapps.py
18 lines | 385 B | text/x-python | PythonLexer
""" Completers for miscellaneous command line apps
"""
import IPython.ipapi
ip = IPython.ipapi.get()
import os
def surfraw_completer(self,cmdline):
""" Completer for 'surfraw'
example::
sr go<tab> => sr google
"""
compl = [l.split(None,1)[0] for l in os.popen('sr -elvi')]
return compl
ip.set_hook('complete_command', surfraw_completer, str_key = 'sr')