##// END OF EJS Templates
Adding partial latex completions.
Brian E. Granger -
Show More
@@ -973,7 +973,14 b' class IPCompleter(Completer):'
973 if slashpos > -1:
973 if slashpos > -1:
974 s = text[slashpos:]
974 s = text[slashpos:]
975 if s in latex_symbols:
975 if s in latex_symbols:
976 # Try to complete a full latex symbol to unicode
977 # \\alpha -> α
976 return s, [latex_symbols[s]]
978 return s, [latex_symbols[s]]
979 else:
980 # If a user has partially typed a latex symbol, give them
981 # a full list of options \al -> [\aleph, \alpha]
982 matches = [k for k in latex_symbols if k.startswith(s)]
983 return s, matches
977 return u'', []
984 return u'', []
978
985
979 def dispatch_custom_completer(self, text):
986 def dispatch_custom_completer(self, text):
General Comments 0
You need to be logged in to leave comments. Login now