From 84ac7a249e96955c48c5863c7b529e203360de33 Mon Sep 17 00:00:00 2001 From: Alice Chen Date: Wed, 3 Sep 2014 12:13:29 -0400 Subject: [PATCH] Fixed 341 right arrow suggestion color --- bpython/config.py | 1 + bpython/curtsiesfrontend/repl.py | 3 ++- doc/sphinx/source/themes.rst | 2 ++ light.theme | 1 + sample.theme | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bpython/config.py b/bpython/config.py index df27894b3..9aa01cf86 100644 --- a/bpython/config.py +++ b/bpython/config.py @@ -178,6 +178,7 @@ def loadini(struct, configfile): 'paren': 'R', 'prompt': 'c', 'prompt_more': 'g', + 'right_arrow_suggestion': 'K', } if color_scheme_name == 'default': diff --git a/bpython/curtsiesfrontend/repl.py b/bpython/curtsiesfrontend/repl.py index d7b2d5783..785252b8f 100644 --- a/bpython/curtsiesfrontend/repl.py +++ b/bpython/curtsiesfrontend/repl.py @@ -948,7 +948,8 @@ def current_cursor_line_without_suggestion(self): @property def current_cursor_line(self): if self.config.curtsies_right_arrow_completion: - return self.current_cursor_line_without_suggestion + fmtfuncs.bold(fmtfuncs.dark((self.current_suggestion))) + return (self.current_cursor_line_without_suggestion + + func_for_letter(self.config.color_scheme['right_arrow_suggestion'])(self.current_suggestion)) else: return self.current_cursor_line_without_suggestion diff --git a/doc/sphinx/source/themes.rst b/doc/sphinx/source/themes.rst index 3dab790eb..c28875be4 100644 --- a/doc/sphinx/source/themes.rst +++ b/doc/sphinx/source/themes.rst @@ -38,6 +38,7 @@ Available Switches * main * prompt * prompt_more +* right_arrow_suggestion Default Theme ------------- @@ -74,6 +75,7 @@ The default theme included in bpython is as follows: main = c prompt = c prompt_more = g + right_arrow_suggestion = K .. :: Footnotes diff --git a/light.theme b/light.theme index 144b48ee1..448d9dc6a 100644 --- a/light.theme +++ b/light.theme @@ -26,3 +26,4 @@ output = b main = b prompt = r prompt_more = g +right_arrow_suggestion = K diff --git a/sample.theme b/sample.theme index ee932be78..af1e3cab7 100644 --- a/sample.theme +++ b/sample.theme @@ -27,3 +27,4 @@ output = w main = c prompt = c prompt_more = g +right_arrow_suggestion = K pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy