This thread will summarize everything that users and developers should
know about autocompletion and calltips.

This is intended for general consumption, and I hope it helps Terry
with his project of adding Blender completions to Leo.

Much of the following is "redundant" in the sense that it has appeared
in various places on these forums or in LeoDocs.leo, but the
Autocompletion and Calltips sections of the "Using Leo's Commands"
chapter has not been updated to reflect the new information.  This
thread will be pre-writing for the new documentation.

Terminology
=========

There are two basic distinctions:

1. The **legacy** (aka tabbed) completer shows completions in Leo's
tabbed pane. The **qcompleter** shows completions in or near the body
pane.

2. The **codewise completer** uses the codewise wrapper of ctags
data.  The **Leo-centric completer** computes the **base object** of a
expression in a Leo file, and uses eval to determine the type of the
base object and thus the possible completions.

Major autocompletion settings
======================

These are found in leoSettings.leo: @settings-->Autocompleter

- @bool use_codewise = False

True: use codewise completions.
False: use Leo-specific completions.

- @bool use_qcompleter = True

True:  show completions in a QCompleter popup.
False: show completions in Leo's Completions tab.
This option has effect only when using the qt or qttabs gui's.

There are other settings.  They will be discussed later.

That enough for now.  Later posts will discuss the following:

- Setting up to use ctags/codewise completion.

- Detailed instructions for using the autocompleter.  This will
discuss the effect of several other autocompletion-related settings.

- Documentation of the autocompleter code itself.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to