Skip to content

Commit 9f371fc

Browse files
committed
configurable balanced-bracket highlight colors
Make the balanced-bracket highlight feature use configurable colors, setting them by default to the prompt_toolkit defaults.
1 parent 2b515b3 commit 9f371fc

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Features
77
* Make `--progress` and `--checkpoint` strictly by statement.
88
* Allow more characters in passwords read from a file.
99
* Show sponsors and contributors separately in startup messages.
10+
* Make balanced-bracket highlight colors configurable.
1011

1112

1213
Bug Fixes

mycli/clistyle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
Token.SelectedText: "selected",
2424
Token.SearchMatch: "search",
2525
Token.SearchMatch.Current: "search.current",
26+
Token.MatchingBracket.Cursor: "matching-bracket.cursor",
27+
Token.MatchingBracket.Other: "matching-bracket.other",
2628
Token.Toolbar: "bottom-toolbar",
2729
Token.Toolbar.Off: "bottom-toolbar.off",
2830
Token.Toolbar.On: "bottom-toolbar.on",

mycli/myclirc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ completion-menu.meta.completion = 'bg:#448888 #ffffff'
293293
completion-menu.multi-column-meta = 'bg:#aaffff #000000'
294294
scrollbar.arrow = 'bg:#003333'
295295
scrollbar = 'bg:#00aaaa'
296+
matching-bracket.cursor = '#ff8888 bg:#880000'
297+
matching-bracket.other = '#000000 bg:#aacccc'
296298
selected = '#ffffff bg:#6666aa'
297299
search = '#ffffff bg:#4444aa'
298300
search.current = '#ffffff bg:#44aa44'

test/myclirc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ completion-menu.meta.completion = "bg:#448888 #ffffff"
291291
completion-menu.multi-column-meta = "bg:#aaffff #000000"
292292
scrollbar.arrow = "bg:#003333"
293293
scrollbar = "bg:#00aaaa"
294+
matching-bracket.cursor = '#ff8888 bg:#880000'
295+
matching-bracket.other = '#000000 bg:#aacccc'
294296
selected = "#ffffff bg:#6666aa"
295297
search = "#ffffff bg:#4444aa"
296298
search.current = "#ffffff bg:#44aa44"

0 commit comments

Comments
 (0)