From 80018210ebc97112c37ece4a3f4109bf97731530 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 10 Oct 2008 14:02:25 +0200 Subject: Use key shift-tab to force partial completion (when no completion is pending), remove automatic partial completion on option names Behaviour of shift-key stays the same if there's a completion found, it completes with previous completion found. --- doc/de/usage.de.xml | 10 +++++++++- doc/en/usage.en.xml | 9 ++++++++- doc/fr/usage.fr.xml | 10 +++++++++- src/gui/gui-completion.c | 3 +-- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/doc/de/usage.de.xml b/doc/de/usage.de.xml index c839bf129..dff4725b4 100644 --- a/doc/de/usage.de.xml +++ b/doc/de/usage.de.xml @@ -297,12 +297,20 @@ along with this program. If not, see . - Tabulator / Shift + Tabulator + Tabulator Vervollständige ein Kommando oder Nick (wiederhole: finde nächste Vervollständigung) + + + Shift + Tab + + Without completion, do a partial completion. + With pending completion, complete with previous completion. + + Jedes Zeichen diff --git a/doc/en/usage.en.xml b/doc/en/usage.en.xml index c453d0d58..f30dec2f6 100644 --- a/doc/en/usage.en.xml +++ b/doc/en/usage.en.xml @@ -281,12 +281,19 @@ along with this program. If not, see . - Tab / Shift + Tab + Tab Complete command or nick (Tab again: find next completion) + + Shift + Tab + + Without completion, do a partial completion. + With pending completion, complete with previous completion. + + Any char diff --git a/doc/fr/usage.fr.xml b/doc/fr/usage.fr.xml index a568189f7..430e6383f 100644 --- a/doc/fr/usage.fr.xml +++ b/doc/fr/usage.fr.xml @@ -301,12 +301,20 @@ along with this program. If not, see . - Tab / Shift + Tab + Tab Compléter la commande ou le pseudo (Tab de nouveau: trouver la complétion suivante) + + Shift + Tab + + Sans complétion, effectue une complétion partielle. + Avec une complétion en cours, complète avec la complétion + précécente. + + Tout caractère diff --git a/src/gui/gui-completion.c b/src/gui/gui-completion.c index ef1b8f25e..f104d6119 100644 --- a/src/gui/gui-completion.c +++ b/src/gui/gui-completion.c @@ -592,8 +592,6 @@ gui_completion_list_add_option (struct t_gui_completion *completion) int length; char *option_full_name; - completion->force_partial_completion = 1; - for (ptr_config = config_files; ptr_config; ptr_config = ptr_config->next_config) { @@ -1567,6 +1565,7 @@ gui_completion_search (struct t_gui_completion *completion, int direction, free (completion->word_found); completion->word_found = NULL; gui_completion_find_context (completion, data, size, pos); + completion->force_partial_completion = (direction < 0); } /* completion */ -- cgit v1.2.3