Skip to content
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