##// END OF EJS Templates
Fix tab completion for magics, though cell magics are ignored for now.
Fernando Perez -
Show More
@@ -602,7 +602,8 b' class IPCompleter(Completer):'
602 #print 'Completer->magic_matches:',text,'lb',self.text_until_cursor # dbg
602 #print 'Completer->magic_matches:',text,'lb',self.text_until_cursor # dbg
603 # Get all shell magics now rather than statically, so magics loaded at
603 # Get all shell magics now rather than statically, so magics loaded at
604 # runtime show up too
604 # runtime show up too
605 magics = self.shell._magic.lsmagic()
605 # FIXME - cell magics not implemented here yet.
606 magics = self.shell.magics_manager.lsmagic()['line']
606 pre = self.magic_escape
607 pre = self.magic_escape
607 baretext = text.lstrip(pre)
608 baretext = text.lstrip(pre)
608 return [ pre+m for m in magics if m.startswith(baretext)]
609 return [ pre+m for m in magics if m.startswith(baretext)]
General Comments 0
You need to be logged in to leave comments. Login now