Skip to content

Commit 1de1237

Browse files
Enable explicit gray color for default hats (#1567)
Fixes #1511 ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet --------- Co-authored-by: Pokey Rule <[email protected]>
1 parent 71a90f3 commit 1de1237

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cursorless-talon/src/marks/mark.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,14 @@ def cursorless_grapheme(m) -> str:
5858

5959

6060
@mod.capture(
61-
rule="[{user.cursorless_hat_color}] [{user.cursorless_hat_shape}] <user.cursorless_grapheme>"
61+
rule="[{user.cursorless_hat_color} | gray] [{user.cursorless_hat_shape}] <user.cursorless_grapheme>"
6262
)
6363
def cursorless_decorated_symbol(m) -> dict[str, Any]:
6464
"""A decorated symbol"""
65+
if m[0] == "gray":
66+
actions.app.notify(
67+
"The color 'gray' is the default and doesn't need to be spoken out loud. Just say eg 'take air' instead of 'take gray air'"
68+
)
6569
hat_color = getattr(m, "cursorless_hat_color", "default")
6670
try:
6771
hat_style_name = f"{hat_color}-{m.cursorless_hat_shape}"

0 commit comments

Comments
 (0)