Text plugin basis with plugin for suggestions/completions. The suggest plugin works for imported global variables, methods, modules and module members. For example typing:
import Blender from Blender import * | <- cursor here suggests globals Blender.Draw.gl| <- cursor here suggests all Draw members starting gl Currently suggestions are listed in the console when the space is redrawn but will be presented as a menu-style list soon. Also to add are shortcut/activation keys to allow plugins to respond to certain key strokes.
This commit is contained in:
@@ -150,5 +150,15 @@ class Text:
|
||||
cursor.
|
||||
"""
|
||||
|
||||
def suggest(list):
|
||||
"""
|
||||
Set the suggestion list to the given list of tuples. This list *must* be
|
||||
sorted by its first element, name.
|
||||
@type list: list of tuples
|
||||
@param list: List of pair-tuples of the form (name, type) where name is
|
||||
the suggested name and type is one of 'm' (module or class), 'f'
|
||||
(function or method), 'v' (variable).
|
||||
"""
|
||||
|
||||
import id_generics
|
||||
Text.__doc__ += id_generics.attributes
|
||||
Text.__doc__ += id_generics.attributes
|
||||
|
||||
Reference in New Issue
Block a user