Skip to content

Commit 0f3d346

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 7f25681 commit 0f3d346

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ 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-
* Add support for expired password (sandbox) mode (#440)
10+
* Add support for expired password (sandbox) mode (#440).
11+
* Make balanced-bracket highlight colors configurable.
1112

1213

1314
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)