Skip to content

Fixed #341 right arrow suggestion color #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bpython/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def loadini(struct, configfile):
'paren': 'R',
'prompt': 'c',
'prompt_more': 'g',
'right_arrow_suggestion': 'K',
}

if color_scheme_name == 'default':
Expand Down
3 changes: 2 additions & 1 deletion bpython/curtsiesfrontend/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions doc/sphinx/source/themes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Available Switches
* main
* prompt
* prompt_more
* right_arrow_suggestion

Default Theme
-------------
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions light.theme
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ output = b
main = b
prompt = r
prompt_more = g
right_arrow_suggestion = K
1 change: 1 addition & 0 deletions sample.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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