Ticket #1486: Editor completion is confusing
commitfdbd5b8a868ce949f7f6e5c7ef39493b72318764
authordborca <dborca@yahoo.com>
Wed, 12 Aug 2009 12:58:48 +0000 (12 15:58 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Wed, 23 Sep 2009 13:13:36 +0000 (23 16:13 +0300)
tree160ef18a1d02c0cb73bed3d5145ffecf0b175ea1
parentcd27ee24df84fc958c8e4af60a3699b8f780be4a
Ticket #1486: Editor completion is confusing

Editor completion became really confusing in 4.7.0-pre1:

1. The list is populated with words from the entire file. This is arguably
better than the old style, which scanned only up to the cursor. But the number
of suggestions are limited, and if you have a bigger file, some words won't
make it in the list. Besides, I somehow liked the old way.

2. Suggestions do not end on a word boundary. This may or may be not useful; but
it just increases the list of suggestions, which slows the user. In the end, it
beats the purpose of completions.

3. It completes the word I am currently editing. That's smart. :)

4. The suggestions are displayed in the order in which they were found from the
beginning of the file. This is my main gripe, because when using the editor for
coding, it is better to have suggestions based on the distance to the cursor.
Closer means higher. When writing a function, I am mainly interested in the
variable names I recently used.

5. Sometimes, it does not work at all, but I haven't investigated the bug. :(

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
edit/editcmd.c
edit/editcmd_dialogs.c