don't show prefixes in completions
authorThomasV <thomasv@gitorious>
Sat, 23 Feb 2013 19:26:05 +0000 (20:26 +0100)
committerThomasV <thomasv@gitorious>
Sat, 23 Feb 2013 19:26:05 +0000 (20:26 +0100)
lib/qt_console.py

index de9e34f..82d9ba0 100644 (file)
@@ -71,6 +71,8 @@ class Console(QtGui.QPlainTextEdit):
 
         c = self.textCursor()
         c.setPosition(self.completions_pos)
+
+        completions = map(lambda x: x.split('.')[-1], completions)
         t = '\n' + ' '.join(completions)
         if len(t) > 500:
             t = t[:500] + '...'