Skip to content

Commit d3d52bf

Browse files
Implemented sentence scope (#1595)
Fixes #19 While I was there I also sorted the textual scopes. ## Checklist - [x] 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 58bb4f8 commit d3d52bf

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/modifiers/scopes.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,27 @@
5757
"tags": "xmlBothTags",
5858
"start tag": "xmlStartTag",
5959
"end tag": "xmlEndTag",
60+
# LaTeX
61+
"part": "part",
62+
"chapter": "chapter",
63+
"subsection": "subSection",
64+
"subsubsection": "subSubSection",
65+
"paragraph": "namedParagraph",
66+
"subparagraph": "subParagraph",
67+
"environment": "environment",
6068
# Text-based scope types
6169
"char": "character",
6270
"word": "word",
71+
"token": "token",
6372
"identifier": "identifier",
73+
"line": "line",
74+
"sentence": "sentence",
6475
"block": "paragraph",
65-
"cell": "notebookCell",
6676
"file": "document",
67-
"line": "line",
6877
"paint": "nonWhitespaceSequence",
6978
"short paint": "boundedNonWhitespaceSequence",
7079
"link": "url",
71-
"token": "token",
72-
# LaTeX
73-
"part": "part",
74-
"chapter": "chapter",
75-
"subsection": "subSection",
76-
"subsubsection": "subSubSection",
77-
"paragraph": "namedParagraph",
78-
"subparagraph": "subParagraph",
79-
"environment": "environment",
80+
"cell": "notebookCell",
8081
}
8182

8283

0 commit comments

Comments
 (0)