[gnome-builder/wip/gtk4-port] plugins/editorui: add toggle for select-first-completion



commit d20496b1336b3ba49b3197cd3bc7d4b37d36c33e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 20 14:52:55 2022 -0700

    plugins/editorui: add toggle for select-first-completion

 src/plugins/editorui/gbp-editorui-preferences-addin.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/editorui/gbp-editorui-preferences-addin.c 
b/src/plugins/editorui/gbp-editorui-preferences-addin.c
index 23e07ed3b..9cc90547e 100644
--- a/src/plugins/editorui/gbp-editorui-preferences-addin.c
+++ b/src/plugins/editorui/gbp-editorui-preferences-addin.c
@@ -79,11 +79,16 @@ static const IdePreferenceItemEntry items[] = {
     N_("Use cursor position to highlight matching brackets, braces, parenthesis, and more"),
     "org.gnome.builder.editor", NULL, "highlight-matching-brackets" },
 
-  { "insight", "completion", "interactive-completion", 10, ide_preferences_window_toggle,
+  { "editing", "completion", "interactive-completion", 10, ide_preferences_window_toggle,
     N_("Suggest Completions While Typing"),
     N_("Automatically suggest completions while typing within the file"),
     "org.gnome.builder.editor", NULL, "interactive-completion" },
 
+  { "editing", "completion", "select-first-completion", 20, ide_preferences_window_toggle,
+    N_("Select First Completion"),
+    N_("Automatically select the first completion without activating it"),
+    "org.gnome.builder.editor", NULL, "select-first-completion" },
+
   { "keyboard", "movement", "smart-home-end", 0, ide_preferences_window_toggle,
     N_("Smart Home and End"),
     N_("Home moves to first non-whitespace character"),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]