From 624c112d08eccd2458562cbc705378e45aa11b26 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 6 Apr 2013 13:07:04 +0200 Subject: [PATCH] tweak prompt text --- src/color_registry.cc | 2 +- src/main.cc | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/color_registry.cc b/src/color_registry.cc index b0add9de..f35b3177 100644 --- a/src/color_registry.cc +++ b/src/color_registry.cc @@ -52,7 +52,7 @@ ColorRegistry::ColorRegistry() { "Error", { Color::Black, Color::Red } }, { "StatusLine", { Color::Cyan, Color::Default } }, { "StatusCursor", { Color::Black, Color::Cyan } }, - { "Prompt", { Color::Cyan, Color::Blue} }, + { "Prompt", { Color::Yellow, Color::Default} }, } {} diff --git a/src/main.cc b/src/main.cc index 7f1fa201..40270ed8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -145,7 +145,7 @@ void do_swap_case(Context& context) void do_command(Context& context) { context.input_handler().prompt( - ":", get_color("StatusLine"), + ":", get_color("Prompt"), std::bind(&CommandManager::complete, &CommandManager::instance(), _1, _2, _3), [](const String& cmdline, PromptEvent event, Context& context) { if (event == PromptEvent::Validate) @@ -155,7 +155,7 @@ void do_command(Context& context) void do_pipe(Context& context) { - context.input_handler().prompt("pipe: ", get_color("Prompt"), complete_nothing, + context.input_handler().prompt("pipe:", get_color("Prompt"), complete_nothing, [](const String& cmdline, PromptEvent event, Context& context) { if (event != PromptEvent::Validate) @@ -174,7 +174,7 @@ void do_pipe(Context& context) template void do_search(Context& context) { - const char* prompt = forward ? "search: " : "reverse search: "; + const char* prompt = forward ? "search:" : "reverse search:"; SelectionList selections = context.editor().selections(); context.input_handler().prompt(prompt, get_color("Prompt"), complete_nothing, [selections](const String& str, PromptEvent event, Context& context) { @@ -354,7 +354,7 @@ void regex_prompt(Context& context, const String prompt, T on_validate) void do_select_regex(Context& context) { - regex_prompt(context, "select: ", [](Regex ex, Context& context) { + regex_prompt(context, "select:", [](Regex ex, Context& context) { if (ex.empty()) ex = Regex{RegisterManager::instance()['/'].values(context)[0]}; else @@ -366,7 +366,7 @@ void do_select_regex(Context& context) void do_split_regex(Context& context) { - regex_prompt(context, "split: ", [](Regex ex, Context& context) { + regex_prompt(context, "split:", [](Regex ex, Context& context) { if (ex.empty()) ex = Regex{RegisterManager::instance()['/'].values(context)[0]}; else @@ -405,7 +405,7 @@ void do_join(Context& context) template void do_keep(Context& context) { - constexpr const char* prompt = matching ? "keep matching: " : "keep not matching: "; + constexpr const char* prompt = matching ? "keep matching:" : "keep not matching:"; regex_prompt(context, prompt, [](const Regex& ex, Context& context) { Editor& editor = context.editor(); SelectionList sels = editor.selections();