Skip to content

Commit 33340b4

Browse files
authored
Fix "forward" in cheatsheet (#1525)
This is how `"backward"` looks: <img width="540" alt="image" src="https://github.com/cursorless-dev/cursorless/assets/755842/e196de38-a3db-445c-af29-61758317e39e"> But `"forward"` didn't have the same special treatment: <img width="550" alt="image" src="https://github.com/cursorless-dev/cursorless/assets/755842/00a87f25-c806-4984-a25f-f9f9c3855e25"> This PR makes it look as follows: <img width="546" alt="image" src="https://github.com/cursorless-dev/cursorless/assets/755842/80bfee7f-cf4b-437d-b980-10eb68434796"> I also updated the cheatsheet json that we use to generate the [generic cheatsheet](https://www.cursorless.org/cheatsheet) while I was here ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [x] 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) - [x] I have not broken the cheatsheet
1 parent 73d4164 commit 33340b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cheatsheet/sections/modifiers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def get_modifiers():
2626
"previous",
2727
"next",
2828
"backward",
29+
"forward",
2930
]
3031
simple_modifiers = {
3132
key: value
@@ -125,6 +126,10 @@ def get_modifiers():
125126
"spokenForm": f"<scope> {complex_modifiers['backward']}",
126127
"description": "single instance of <scope> including target, going backwards",
127128
},
129+
{
130+
"spokenForm": f"<scope> {complex_modifiers['forward']}",
131+
"description": "single instance of <scope> including target, going forwards",
132+
},
128133
{
129134
"spokenForm": f"<number> <scope>s {complex_modifiers['backward']}",
130135
"description": "<number> instances of <scope> including target, going backwards",

0 commit comments

Comments
 (0)