| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -178,6 +178,7 @@ def loadini(struct, configfile): | |||
| 178 | 178 | 'paren': 'R', | |
| 179 | 179 | 'prompt': 'c', | |
| 180 | 180 | 'prompt_more': 'g', | |
| 181 | + 'right_arrow_suggestion': 'K', | ||
| 181 | 182 | } | |
| 182 | 183 | ||
| 183 | 184 | if color_scheme_name == 'default': | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -948,7 +948,8 @@ def current_cursor_line_without_suggestion(self): | |||
| 948 | 948 | @property | |
| 949 | 949 | def current_cursor_line(self): | |
| 950 | 950 | if self.config.curtsies_right_arrow_completion: | |
| 951 | - return self.current_cursor_line_without_suggestion + fmtfuncs.bold(fmtfuncs.dark((self.current_suggestion))) | ||
| 951 | + return (self.current_cursor_line_without_suggestion + | ||
| 952 | + func_for_letter(self.config.color_scheme['right_arrow_suggestion'])(self.current_suggestion)) | ||
| 952 | 953 | else: | |
| 953 | 954 | return self.current_cursor_line_without_suggestion | |
| 954 | 955 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,7 @@ Available Switches | |||
| 38 | 38 | * main | |
| 39 | 39 | * prompt | |
| 40 | 40 | * prompt_more | |
| 41 | + * right_arrow_suggestion | ||
| 41 | 42 | ||
| 42 | 43 | Default Theme | |
| 43 | 44 | ------------- | |
@@ -74,6 +75,7 @@ The default theme included in bpython is as follows: | |||
| 74 | 75 | main = c | |
| 75 | 76 | prompt = c | |
| 76 | 77 | prompt_more = g | |
| 78 | + right_arrow_suggestion = K | ||
| 77 | 79 | ||
| 78 | 80 | .. :: Footnotes | |
| 79 | 81 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,3 +26,4 @@ output = b | |||
| 26 | 26 | main = b | |
| 27 | 27 | prompt = r | |
| 28 | 28 | prompt_more = g | |
| 29 | + right_arrow_suggestion = K | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,3 +27,4 @@ output = w | |||
| 27 | 27 | main = c | |
| 28 | 28 | prompt = c | |
| 29 | 29 | prompt_more = g | |
| 30 | + right_arrow_suggestion = K | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments