diff --git a/packages/app-web-docs/src/docs/contributing/private-scopes/README.md b/packages/app-web-docs/src/docs/contributing/private-scopes/README.md index 2a547a1c47..cc9934b626 100644 --- a/packages/app-web-docs/src/docs/contributing/private-scopes/README.md +++ b/packages/app-web-docs/src/docs/contributing/private-scopes/README.md @@ -9,6 +9,5 @@ These scopes are not intended for public use and may change or be removed withou - [`"text fragment"`](./textFragment.mdx) - Text fragment. - [`"disqualify delimiter"`](./disqualifyDelimiter.mdx) - Disqualify delimiter. - [`"pair delimiter"`](./pairDelimiter.mdx) - Pair delimiter. -- [`"interior"`](./interior.mdx) - Interior. -- [Surrounding pair interior](./surroundingPairInterior.mdx) -- [Custom regex](./customRegex.mdx) +- [Surrounding pair interior](./surroundingPairInterior.mdx) - Surrounding pair interior +- [Custom regex](./customRegex.mdx) - Custom regex diff --git a/packages/app-web-docs/src/docs/user/languages/c.mdx b/packages/app-web-docs/src/docs/user/languages/c.mdx index 4a8160c07a..18a45f073b 100644 --- a/packages/app-web-docs/src/docs/user/languages/c.mdx +++ b/packages/app-web-docs/src/docs/user/languages/c.mdx @@ -325,6 +325,74 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + + + + + + + +#### 2. Interior: Do while + +The body of a do-while loop + + + +#### 3. Interior: Enum + +The body of an enum declaration + + + + + +#### 4. Interior: For + +The body of a for loop + + + +#### 5. Interior: Function + +The body of a function declaration + + + + + +#### 6. Interior: If + +The body of an if/elif/else branch + + + +#### 7. Interior: Switch + +The body of a switch statement + + + +#### 8. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 9. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -863,74 +931,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - - - - - - - -#### 2. Interior: Do while - -The body of a do-while loop - - - -#### 3. Interior: Enum - -The body of an enum declaration - - - - - -#### 4. Interior: For - -The body of a for loop - - - -#### 5. Interior: Function - -The body of a function declaration - - - - - -#### 6. Interior: If - -The body of an if/elif/else branch - - - -#### 7. Interior: Switch - -The body of a switch statement - - - -#### 8. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 9. Interior: While - -The body of a while loop - - - ### String #### 1. String: Single line diff --git a/packages/app-web-docs/src/docs/user/languages/cpp.mdx b/packages/app-web-docs/src/docs/user/languages/cpp.mdx index fe1fbeef67..5b6cf5ab32 100644 --- a/packages/app-web-docs/src/docs/user/languages/cpp.mdx +++ b/packages/app-web-docs/src/docs/user/languages/cpp.mdx @@ -535,6 +535,114 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + + + + + + + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Enum + +The body of an enum declaration + + + + + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + +#### 7. Interior: Function + +The body of a function declaration + + + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Lambda + +The block body of an anonymous function + + + +#### 10. Interior: Method + +The body of a method declaration + + + +#### 11. Interior: Namespace + +The body of a namespace declaration + + + +#### 12. Interior: Switch + +The body of a switch statement + + + +#### 13. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 14. Interior: Try + +The body of a try/catch/finally branch + + + +#### 15. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1387,114 +1495,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - - - - - - - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Enum - -The body of an enum declaration - - - - - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - -#### 7. Interior: Function - -The body of a function declaration - - - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Lambda - -The block body of an anonymous function - - - -#### 10. Interior: Method - -The body of a method declaration - - - -#### 11. Interior: Namespace - -The body of a namespace declaration - - - -#### 12. Interior: Switch - -The body of a switch statement - - - -#### 13. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 14. Interior: Try - -The body of a try/catch/finally branch - - - -#### 15. Interior: While - -The body of a while loop - - - ### String #### 1. String: Single line diff --git a/packages/app-web-docs/src/docs/user/languages/csharp.mdx b/packages/app-web-docs/src/docs/user/languages/csharp.mdx index 475152acea..a42c8af4ec 100644 --- a/packages/app-web-docs/src/docs/user/languages/csharp.mdx +++ b/packages/app-web-docs/src/docs/user/languages/csharp.mdx @@ -545,6 +545,112 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Enum + +The body of an enum declaration + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + +#### 7. Interior: Function + +The body of a function declaration + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Interface + +The body of an interface declaration + + + +#### 10. Interior: Lambda + +The block body of an anonymous function + + + +#### 11. Interior: Method + +The body of a method declaration + + + +#### 12. Interior: Namespace + +The body of a namespace declaration + + + +#### 13. Interior: Resource + +The body of a resource management statement, eg `with` / `use` / `using` + + + +#### 14. Interior: Switch + +The body of a switch statement + + + +#### 15. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 16. Interior: Try + +The body of a try/catch/finally branch + + + +#### 17. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1435,112 +1541,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Enum - -The body of an enum declaration - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - -#### 7. Interior: Function - -The body of a function declaration - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Interface - -The body of an interface declaration - - - -#### 10. Interior: Lambda - -The block body of an anonymous function - - - -#### 11. Interior: Method - -The body of a method declaration - - - -#### 12. Interior: Namespace - -The body of a namespace declaration - - - -#### 13. Interior: Resource - -The body of a resource management statement, eg `with` / `use` / `using` - - - -#### 14. Interior: Switch - -The body of a switch statement - - - -#### 15. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 16. Interior: Try - -The body of a try/catch/finally branch - - - -#### 17. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/dart.mdx b/packages/app-web-docs/src/docs/user/languages/dart.mdx index 36562cf58b..0f5ba2fb04 100644 --- a/packages/app-web-docs/src/docs/user/languages/dart.mdx +++ b/packages/app-web-docs/src/docs/user/languages/dart.mdx @@ -573,6 +573,94 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Enum + +The body of an enum declaration + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + +#### 7. Interior: Function + +The body of a function declaration + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Lambda + +The block body of an anonymous function + + + +#### 10. Interior: Method + +The body of a method declaration + + + +#### 11. Interior: Switch + +The body of a switch statement + + + +#### 12. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 13. Interior: Try + +The body of a try/catch/finally branch + + + +#### 14. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1333,94 +1421,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Enum - -The body of an enum declaration - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - -#### 7. Interior: Function - -The body of a function declaration - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Lambda - -The block body of an anonymous function - - - -#### 10. Interior: Method - -The body of a method declaration - - - -#### 11. Interior: Switch - -The body of a switch statement - - - -#### 12. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 13. Interior: Try - -The body of a try/catch/finally branch - - - -#### 14. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/go.mdx b/packages/app-web-docs/src/docs/user/languages/go.mdx index 21d04a2407..60354108b8 100644 --- a/packages/app-web-docs/src/docs/user/languages/go.mdx +++ b/packages/app-web-docs/src/docs/user/languages/go.mdx @@ -397,6 +397,72 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: For + +The body of a for loop + + + +#### 3. Interior: Foreach + +The body of a for-each loop + + + +#### 4. Interior: Function + +The body of a function declaration + + + +#### 5. Interior: If + +The body of an if/elif/else branch + + + +#### 6. Interior: Interface + +The body of an interface declaration + + + +#### 7. Interior: Lambda + +The block body of an anonymous function + + + +#### 8. Interior: Method + +The body of a method declaration + + + +#### 9. Interior: Switch + +The body of a switch statement + + + + + +#### 10. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + ### List #### 1. List @@ -999,72 +1065,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: For - -The body of a for loop - - - -#### 3. Interior: Foreach - -The body of a for-each loop - - - -#### 4. Interior: Function - -The body of a function declaration - - - -#### 5. Interior: If - -The body of an if/elif/else branch - - - -#### 6. Interior: Interface - -The body of an interface declaration - - - -#### 7. Interior: Lambda - -The block body of an anonymous function - - - -#### 8. Interior: Method - -The body of a method declaration - - - -#### 9. Interior: Switch - -The body of a switch statement - - - - - -#### 10. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/html.mdx b/packages/app-web-docs/src/docs/user/languages/html.mdx index 642387e8ba..12aa539650 100644 --- a/packages/app-web-docs/src/docs/user/languages/html.mdx +++ b/packages/app-web-docs/src/docs/user/languages/html.mdx @@ -37,6 +37,14 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Element + +The interior/children of an XML/HTML element + + + ### Value #### 1. Value: Attribute @@ -81,14 +89,6 @@ Below are visualizations of all our scope tests for this language. These were cr The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality. -### Interior - -#### 1. Interior: Element - -The interior/children of an XML/HTML element - - - ### String #### 1. String: Single line diff --git a/packages/app-web-docs/src/docs/user/languages/java.mdx b/packages/app-web-docs/src/docs/user/languages/java.mdx index 83f6900fb0..76af343397 100644 --- a/packages/app-web-docs/src/docs/user/languages/java.mdx +++ b/packages/app-web-docs/src/docs/user/languages/java.mdx @@ -551,6 +551,106 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Enum + +The body of an enum declaration + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + +#### 7. Interior: If + +The body of an if/elif/else branch + + + +#### 8. Interior: Interface + +The body of an interface declaration + + + +#### 9. Interior: Lambda + +The block body of an anonymous function + + + +#### 10. Interior: Method + +The body of a method declaration + + + +#### 11. Interior: Resource + +The body of a resource management statement, eg `with` / `use` / `using` + + + +#### 12. Interior: Static + +The body of a static initialization block in a class + + + +#### 13. Interior: Switch + +The body of a switch statement + + + +#### 14. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 15. Interior: Try + +The body of a try/catch/finally branch + + + +#### 16. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1281,106 +1381,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Enum - -The body of an enum declaration - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - -#### 7. Interior: If - -The body of an if/elif/else branch - - - -#### 8. Interior: Interface - -The body of an interface declaration - - - -#### 9. Interior: Lambda - -The block body of an anonymous function - - - -#### 10. Interior: Method - -The body of a method declaration - - - -#### 11. Interior: Resource - -The body of a resource management statement, eg `with` / `use` / `using` - - - -#### 12. Interior: Static - -The body of a static initialization block in a class - - - -#### 13. Interior: Switch - -The body of a switch statement - - - -#### 14. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 15. Interior: Try - -The body of a try/catch/finally branch - - - -#### 16. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/javascript.mdx b/packages/app-web-docs/src/docs/user/languages/javascript.mdx index cc7287c045..afb6fa5bcb 100644 --- a/packages/app-web-docs/src/docs/user/languages/javascript.mdx +++ b/packages/app-web-docs/src/docs/user/languages/javascript.mdx @@ -637,6 +637,102 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Element + +The interior/children of an XML/HTML element + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + + + +#### 7. Interior: Function + +The body of a function declaration + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Lambda + +The block body of an anonymous function + + + +#### 10. Interior: Method + +The body of a method declaration + + + +#### 11. Interior: Static + +The body of a static initialization block in a class + + + +#### 12. Interior: Switch + +The body of a switch statement + + + +#### 13. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 14. Interior: Try + +The body of a try/catch/finally branch + + + +#### 15. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1403,102 +1499,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Element - -The interior/children of an XML/HTML element - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - - - -#### 7. Interior: Function - -The body of a function declaration - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Lambda - -The block body of an anonymous function - - - -#### 10. Interior: Method - -The body of a method declaration - - - -#### 11. Interior: Static - -The body of a static initialization block in a class - - - -#### 12. Interior: Switch - -The body of a switch statement - - - -#### 13. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 14. Interior: Try - -The body of a try/catch/finally branch - - - -#### 15. Interior: While - -The body of a while loop - - - ### Pair delimiter #### 1. Pair delimiter diff --git a/packages/app-web-docs/src/docs/user/languages/javascriptreact.mdx b/packages/app-web-docs/src/docs/user/languages/javascriptreact.mdx index 42f661901d..e042c55812 100644 --- a/packages/app-web-docs/src/docs/user/languages/javascriptreact.mdx +++ b/packages/app-web-docs/src/docs/user/languages/javascriptreact.mdx @@ -637,6 +637,102 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Element + +The interior/children of an XML/HTML element + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + + + +#### 7. Interior: Function + +The body of a function declaration + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Lambda + +The block body of an anonymous function + + + +#### 10. Interior: Method + +The body of a method declaration + + + +#### 11. Interior: Static + +The body of a static initialization block in a class + + + +#### 12. Interior: Switch + +The body of a switch statement + + + +#### 13. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 14. Interior: Try + +The body of a try/catch/finally branch + + + +#### 15. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1403,102 +1499,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Element - -The interior/children of an XML/HTML element - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - - - -#### 7. Interior: Function - -The body of a function declaration - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Lambda - -The block body of an anonymous function - - - -#### 10. Interior: Method - -The body of a method declaration - - - -#### 11. Interior: Static - -The body of a static initialization block in a class - - - -#### 12. Interior: Switch - -The body of a switch statement - - - -#### 13. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 14. Interior: Try - -The body of a try/catch/finally branch - - - -#### 15. Interior: While - -The body of a while loop - - - ### Pair delimiter #### 1. Pair delimiter diff --git a/packages/app-web-docs/src/docs/user/languages/kotlin.mdx b/packages/app-web-docs/src/docs/user/languages/kotlin.mdx index 3d37e743ad..d25c5b8cb0 100644 --- a/packages/app-web-docs/src/docs/user/languages/kotlin.mdx +++ b/packages/app-web-docs/src/docs/user/languages/kotlin.mdx @@ -599,6 +599,106 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Enum + +The body of an enum declaration + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + +#### 7. Interior: Function + +The body of a function declaration + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Interface + +The body of an interface declaration + + + +#### 10. Interior: Lambda + +The block body of an anonymous function + + + +#### 11. Interior: Method + +The body of a method declaration + + + +#### 12. Interior: Static + +The body of a static initialization block in a class + + + +#### 13. Interior: Switch + +The body of a switch statement + + + +#### 14. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 15. Interior: Try + +The body of a try/catch/finally branch + + + +#### 16. Interior: While + +The body of a while loop + + + ### Name #### 1. Name: Argument actual @@ -1491,106 +1591,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Enum - -The body of an enum declaration - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - -#### 7. Interior: Function - -The body of a function declaration - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Interface - -The body of an interface declaration - - - -#### 10. Interior: Lambda - -The block body of an anonymous function - - - -#### 11. Interior: Method - -The body of a method declaration - - - -#### 12. Interior: Static - -The body of a static initialization block in a class - - - -#### 13. Interior: Switch - -The body of a switch statement - - - -#### 14. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 15. Interior: Try - -The body of a try/catch/finally branch - - - -#### 16. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/latex.mdx b/packages/app-web-docs/src/docs/user/languages/latex.mdx index 85f0a722c7..5ac406ea99 100644 --- a/packages/app-web-docs/src/docs/user/languages/latex.mdx +++ b/packages/app-web-docs/src/docs/user/languages/latex.mdx @@ -91,6 +91,14 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Element + +The interior/children of an XML/HTML element + + + ### List #### 1. List @@ -205,14 +213,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Element - -The interior/children of an XML/HTML element - - - ### Text fragment #### 1. Text fragment: Comment block diff --git a/packages/app-web-docs/src/docs/user/languages/lua.mdx b/packages/app-web-docs/src/docs/user/languages/lua.mdx index b32a2a6736..0c410b0196 100644 --- a/packages/app-web-docs/src/docs/user/languages/lua.mdx +++ b/packages/app-web-docs/src/docs/user/languages/lua.mdx @@ -359,6 +359,56 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Do while + +The body of a do-while loop + + + +#### 2. Interior: For + +The body of a for loop + + + +#### 3. Interior: Foreach + +The body of a for-each loop + + + +#### 4. Interior: Function + +The body of a function declaration + + + +#### 5. Interior: If + +The body of an if/elif/else branch + + + +#### 6. Interior: Lambda + +The block body of an anonymous function + + + +#### 7. Interior: Method + +The body of a method declaration + + + +#### 8. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -687,56 +737,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Do while - -The body of a do-while loop - - - -#### 2. Interior: For - -The body of a for loop - - - -#### 3. Interior: Foreach - -The body of a for-each loop - - - -#### 4. Interior: Function - -The body of a function declaration - - - -#### 5. Interior: If - -The body of an if/elif/else branch - - - -#### 6. Interior: Lambda - -The block body of an anonymous function - - - -#### 7. Interior: Method - -The body of a method declaration - - - -#### 8. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/markdown.mdx b/packages/app-web-docs/src/docs/user/languages/markdown.mdx index 2ed7a2b538..bc9ee9a081 100644 --- a/packages/app-web-docs/src/docs/user/languages/markdown.mdx +++ b/packages/app-web-docs/src/docs/user/languages/markdown.mdx @@ -33,6 +33,16 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Cell + +The body of a code cell in Markdown + + + + + ### List #### 1. List @@ -123,16 +133,6 @@ Below are visualizations of all our scope tests for this language. These were cr The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality. -### Interior - -#### 1. Interior: Cell - -The body of a code cell in Markdown - - - - - ### Text fragment #### 1. Text fragment: Comment block diff --git a/packages/app-web-docs/src/docs/user/languages/php.mdx b/packages/app-web-docs/src/docs/user/languages/php.mdx index 29669d2da5..e5682befc0 100644 --- a/packages/app-web-docs/src/docs/user/languages/php.mdx +++ b/packages/app-web-docs/src/docs/user/languages/php.mdx @@ -505,6 +505,106 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Enum + +The body of an enum declaration + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + +#### 7. Interior: Function + +The body of a function declaration + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Interface + +The body of an interface declaration + + + +#### 10. Interior: Lambda + +The block body of an anonymous function + + + +#### 11. Interior: Method + +The body of a method declaration + + + +#### 12. Interior: Namespace + +The body of a namespace declaration + + + +#### 13. Interior: Switch + +The body of a switch statement + + + +#### 14. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 15. Interior: Try + +The body of a try/catch/finally branch + + + +#### 16. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1279,106 +1379,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Enum - -The body of an enum declaration - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - -#### 7. Interior: Function - -The body of a function declaration - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Interface - -The body of an interface declaration - - - -#### 10. Interior: Lambda - -The block body of an anonymous function - - - -#### 11. Interior: Method - -The body of a method declaration - - - -#### 12. Interior: Namespace - -The body of a namespace declaration - - - -#### 13. Interior: Switch - -The body of a switch statement - - - -#### 14. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 15. Interior: Try - -The body of a try/catch/finally branch - - - -#### 16. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/python.mdx b/packages/app-web-docs/src/docs/user/languages/python.mdx index ccc02a3101..3f978bbd35 100644 --- a/packages/app-web-docs/src/docs/user/languages/python.mdx +++ b/packages/app-web-docs/src/docs/user/languages/python.mdx @@ -519,6 +519,76 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Foreach + +The body of a for-each loop + + + +#### 4. Interior: Function + +The body of a function declaration + + + +#### 5. Interior: If + +The body of an if/elif/else branch + + + +#### 6. Interior: Method + +The body of a method declaration + + + +#### 7. Interior: Resource + +The body of a resource management statement, eg `with` / `use` / `using` + + + +#### 8. Interior: Switch + +The body of a switch statement + + + +#### 9. Interior: Switch case + +The body of a case/default branch in a switch statement + + + +#### 10. Interior: Try + +The body of a try/catch/finally branch + + + + + +#### 11. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1231,76 +1301,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Foreach - -The body of a for-each loop - - - -#### 4. Interior: Function - -The body of a function declaration - - - -#### 5. Interior: If - -The body of an if/elif/else branch - - - -#### 6. Interior: Method - -The body of a method declaration - - - -#### 7. Interior: Resource - -The body of a resource management statement, eg `with` / `use` / `using` - - - -#### 8. Interior: Switch - -The body of a switch statement - - - -#### 9. Interior: Switch case - -The body of a case/default branch in a switch statement - - - -#### 10. Interior: Try - -The body of a try/catch/finally branch - - - - - -#### 11. Interior: While - -The body of a while loop - - - ### Pair delimiter #### 1. Pair delimiter diff --git a/packages/app-web-docs/src/docs/user/languages/r.mdx b/packages/app-web-docs/src/docs/user/languages/r.mdx index 13d0e3dd47..c90440f922 100644 --- a/packages/app-web-docs/src/docs/user/languages/r.mdx +++ b/packages/app-web-docs/src/docs/user/languages/r.mdx @@ -295,6 +295,52 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Foreach + +The body of a for-each loop + + + +#### 2. Interior: Function + +The body of a function declaration + + + +#### 3. Interior: If + +The body of an if/elif/else branch + + + +#### 4. Interior: Lambda + +The block body of an anonymous function + + + +#### 5. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 6. Interior: Try + +The body of a try/catch/finally branch + + + +#### 7. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -587,52 +633,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Foreach - -The body of a for-each loop - - - -#### 2. Interior: Function - -The body of a function declaration - - - -#### 3. Interior: If - -The body of an if/elif/else branch - - - -#### 4. Interior: Lambda - -The block body of an anonymous function - - - -#### 5. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 6. Interior: Try - -The body of a try/catch/finally branch - - - -#### 7. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/ruby.mdx b/packages/app-web-docs/src/docs/user/languages/ruby.mdx index da50bfd1bb..38cf5a8a8b 100644 --- a/packages/app-web-docs/src/docs/user/languages/ruby.mdx +++ b/packages/app-web-docs/src/docs/user/languages/ruby.mdx @@ -423,6 +423,82 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Foreach + +The body of a for-each loop + + + +#### 3. Interior: Function + +The body of a function declaration + + + + + + + + + +#### 4. Interior: If + +The body of an if/elif/else branch + + + + + + + +#### 5. Interior: Lambda + +The block body of an anonymous function + + + +#### 6. Interior: Method + +The body of a method declaration + + + +#### 7. Interior: Switch + +The body of a switch statement + + + + + +#### 8. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 9. Interior: Try + +The body of a try/catch/finally branch + + + +#### 10. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -877,82 +953,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Foreach - -The body of a for-each loop - - - -#### 3. Interior: Function - -The body of a function declaration - - - - - - - - - -#### 4. Interior: If - -The body of an if/elif/else branch - - - - - - - -#### 5. Interior: Lambda - -The block body of an anonymous function - - - -#### 6. Interior: Method - -The body of a method declaration - - - -#### 7. Interior: Switch - -The body of a switch statement - - - - - -#### 8. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 9. Interior: Try - -The body of a try/catch/finally branch - - - -#### 10. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/rust.mdx b/packages/app-web-docs/src/docs/user/languages/rust.mdx index 4591c41a7f..b9f329d288 100644 --- a/packages/app-web-docs/src/docs/user/languages/rust.mdx +++ b/packages/app-web-docs/src/docs/user/languages/rust.mdx @@ -429,6 +429,80 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + + + + + +#### 2. Interior: Enum + +The body of an enum declaration + + + +#### 3. Interior: Foreach + +The body of a for-each loop + + + +#### 4. Interior: Function + +The body of a function declaration + + + +#### 5. Interior: If + +The body of an if/elif/else branch + + + +#### 6. Interior: Lambda + +The block body of an anonymous function + + + +#### 7. Interior: Method + +The body of a method declaration + + + +#### 8. Interior: Namespace + +The body of a namespace declaration + + + +#### 9. Interior: Switch + +The body of a switch statement + + + +#### 10. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 11. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1095,80 +1169,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - - - - - -#### 2. Interior: Enum - -The body of an enum declaration - - - -#### 3. Interior: Foreach - -The body of a for-each loop - - - -#### 4. Interior: Function - -The body of a function declaration - - - -#### 5. Interior: If - -The body of an if/elif/else branch - - - -#### 6. Interior: Lambda - -The block body of an anonymous function - - - -#### 7. Interior: Method - -The body of a method declaration - - - -#### 8. Interior: Namespace - -The body of a namespace declaration - - - -#### 9. Interior: Switch - -The body of a switch statement - - - -#### 10. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 11. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/scala.mdx b/packages/app-web-docs/src/docs/user/languages/scala.mdx index 24d13a93a5..18f0bcbdeb 100644 --- a/packages/app-web-docs/src/docs/user/languages/scala.mdx +++ b/packages/app-web-docs/src/docs/user/languages/scala.mdx @@ -501,6 +501,94 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Do while + +The body of a do-while loop + + + +#### 3. Interior: Enum + +The body of an enum declaration + + + +#### 4. Interior: Foreach + +The body of a for-each loop + + + +#### 5. Interior: Function + +The body of a function declaration + + + +#### 6. Interior: If + +The body of an if/elif/else branch + + + +#### 7. Interior: Interface + +The body of an interface declaration + + + +#### 8. Interior: Lambda + +The block body of an anonymous function + + + +#### 9. Interior: Method + +The body of a method declaration + + + +#### 10. Interior: Namespace + +The body of a namespace declaration + + + +#### 11. Interior: Switch + +The body of a switch statement + + + +#### 12. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 13. Interior: Try + +The body of a try/catch/finally branch + + + +#### 14. Interior: While + +The body of a while loop + + + ### Name #### 1. Name: Argument actual @@ -1279,94 +1367,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Do while - -The body of a do-while loop - - - -#### 3. Interior: Enum - -The body of an enum declaration - - - -#### 4. Interior: Foreach - -The body of a for-each loop - - - -#### 5. Interior: Function - -The body of a function declaration - - - -#### 6. Interior: If - -The body of an if/elif/else branch - - - -#### 7. Interior: Interface - -The body of an interface declaration - - - -#### 8. Interior: Lambda - -The block body of an anonymous function - - - -#### 9. Interior: Method - -The body of a method declaration - - - -#### 10. Interior: Namespace - -The body of a namespace declaration - - - -#### 11. Interior: Switch - -The body of a switch statement - - - -#### 12. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 13. Interior: Try - -The body of a try/catch/finally branch - - - -#### 14. Interior: While - -The body of a while loop - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/scss.mdx b/packages/app-web-docs/src/docs/user/languages/scss.mdx index bb3f6444af..3d90aaf103 100644 --- a/packages/app-web-docs/src/docs/user/languages/scss.mdx +++ b/packages/app-web-docs/src/docs/user/languages/scss.mdx @@ -165,6 +165,20 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Function + +The body of a function declaration + + + +#### 2. Interior: If + +The body of an if/elif/else branch + + + ### Map #### 1. Map @@ -331,20 +345,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Function - -The body of a function declaration - - - -#### 2. Interior: If - -The body of an if/elif/else branch - - - ### String #### 1. String: Single line diff --git a/packages/app-web-docs/src/docs/user/languages/shellscript.mdx b/packages/app-web-docs/src/docs/user/languages/shellscript.mdx index 6818b739e6..7494a8712e 100644 --- a/packages/app-web-docs/src/docs/user/languages/shellscript.mdx +++ b/packages/app-web-docs/src/docs/user/languages/shellscript.mdx @@ -193,6 +193,54 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: For + +The body of a for loop + + + +#### 2. Interior: Foreach + +The body of a for-each loop + + + +#### 3. Interior: Function + +The body of a function declaration + + + + + +#### 4. Interior: If + +The body of an if/elif/else branch + + + +#### 5. Interior: Switch + +The body of a switch statement + + + +#### 6. Interior: Switch case + +The body of a case/default branch in a switch statement + + + +#### 7. Interior: While + +The body of a while loop + + + + + ### List #### 1. List @@ -507,54 +555,6 @@ Below are visualizations of all our scope tests for this language. These were cr The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality. -### Interior - -#### 1. Interior: For - -The body of a for loop - - - -#### 2. Interior: Foreach - -The body of a for-each loop - - - -#### 3. Interior: Function - -The body of a function declaration - - - - - -#### 4. Interior: If - -The body of an if/elif/else branch - - - -#### 5. Interior: Switch - -The body of a switch statement - - - -#### 6. Interior: Switch case - -The body of a case/default branch in a switch statement - - - -#### 7. Interior: While - -The body of a while loop - - - - - ### String #### 1. String: Multi line diff --git a/packages/app-web-docs/src/docs/user/languages/talon.mdx b/packages/app-web-docs/src/docs/user/languages/talon.mdx index 7390d1aa98..89c34a018f 100644 --- a/packages/app-web-docs/src/docs/user/languages/talon.mdx +++ b/packages/app-web-docs/src/docs/user/languages/talon.mdx @@ -149,6 +149,26 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Command + +The body of a command, eg Talon spoken command + + + +#### 2. Interior: Foreach + +The body of a for-each loop + + + +#### 3. Interior: If + +The body of an if/elif/else branch + + + ### Name #### 1. Name: Assignment @@ -309,26 +329,6 @@ Below are visualizations of all our scope tests for this language. These were cr The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality. -### Interior - -#### 1. Interior: Command - -The body of a command, eg Talon spoken command - - - -#### 2. Interior: Foreach - -The body of a for-each loop - - - -#### 3. Interior: If - -The body of an if/elif/else branch - - - ### String #### 1. String: Single line diff --git a/packages/app-web-docs/src/docs/user/languages/typescript.mdx b/packages/app-web-docs/src/docs/user/languages/typescript.mdx index a223735165..785c311af9 100644 --- a/packages/app-web-docs/src/docs/user/languages/typescript.mdx +++ b/packages/app-web-docs/src/docs/user/languages/typescript.mdx @@ -653,6 +653,108 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Enum + +The body of an enum declaration + + + +#### 5. Interior: For + +The body of a for loop + + + +#### 6. Interior: Foreach + +The body of a for-each loop + + + + + +#### 7. Interior: Function + +The body of a function declaration + + + +#### 8. Interior: If + +The body of an if/elif/else branch + + + +#### 9. Interior: Interface + +The body of an interface declaration + + + +#### 10. Interior: Lambda + +The block body of an anonymous function + + + +#### 11. Interior: Method + +The body of a method declaration + + + +#### 12. Interior: Static + +The body of a static initialization block in a class + + + +#### 13. Interior: Switch + +The body of a switch statement + + + +#### 14. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 15. Interior: Try + +The body of a try/catch/finally branch + + + +#### 16. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1739,108 +1841,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Enum - -The body of an enum declaration - - - -#### 5. Interior: For - -The body of a for loop - - - -#### 6. Interior: Foreach - -The body of a for-each loop - - - - - -#### 7. Interior: Function - -The body of a function declaration - - - -#### 8. Interior: If - -The body of an if/elif/else branch - - - -#### 9. Interior: Interface - -The body of an interface declaration - - - -#### 10. Interior: Lambda - -The block body of an anonymous function - - - -#### 11. Interior: Method - -The body of a method declaration - - - -#### 12. Interior: Static - -The body of a static initialization block in a class - - - -#### 13. Interior: Switch - -The body of a switch statement - - - -#### 14. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 15. Interior: Try - -The body of a try/catch/finally branch - - - -#### 16. Interior: While - -The body of a while loop - - - ### Pair delimiter #### 1. Pair delimiter diff --git a/packages/app-web-docs/src/docs/user/languages/typescriptreact.mdx b/packages/app-web-docs/src/docs/user/languages/typescriptreact.mdx index f34d2e393a..76be558762 100644 --- a/packages/app-web-docs/src/docs/user/languages/typescriptreact.mdx +++ b/packages/app-web-docs/src/docs/user/languages/typescriptreact.mdx @@ -669,6 +669,114 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Class + +The body of a class/struct declaration + + + +#### 2. Interior: Constructor + +The body of a constructor declaration + + + +#### 3. Interior: Do while + +The body of a do-while loop + + + +#### 4. Interior: Element + +The interior/children of an XML/HTML element + + + +#### 5. Interior: Enum + +The body of an enum declaration + + + +#### 6. Interior: For + +The body of a for loop + + + +#### 7. Interior: Foreach + +The body of a for-each loop + + + + + +#### 8. Interior: Function + +The body of a function declaration + + + +#### 9. Interior: If + +The body of an if/elif/else branch + + + +#### 10. Interior: Interface + +The body of an interface declaration + + + +#### 11. Interior: Lambda + +The block body of an anonymous function + + + +#### 12. Interior: Method + +The body of a method declaration + + + +#### 13. Interior: Static + +The body of a static initialization block in a class + + + +#### 14. Interior: Switch + +The body of a switch statement + + + +#### 15. Interior: Switch case + +The body of a case/default branch in a switch statement + + + + + +#### 16. Interior: Try + +The body of a try/catch/finally branch + + + +#### 17. Interior: While + +The body of a while loop + + + ### List #### 1. List @@ -1791,114 +1899,6 @@ The following are internal scopes. They are not intended for user interaction or -### Interior - -#### 1. Interior: Class - -The body of a class/struct declaration - - - -#### 2. Interior: Constructor - -The body of a constructor declaration - - - -#### 3. Interior: Do while - -The body of a do-while loop - - - -#### 4. Interior: Element - -The interior/children of an XML/HTML element - - - -#### 5. Interior: Enum - -The body of an enum declaration - - - -#### 6. Interior: For - -The body of a for loop - - - -#### 7. Interior: Foreach - -The body of a for-each loop - - - - - -#### 8. Interior: Function - -The body of a function declaration - - - -#### 9. Interior: If - -The body of an if/elif/else branch - - - -#### 10. Interior: Interface - -The body of an interface declaration - - - -#### 11. Interior: Lambda - -The block body of an anonymous function - - - -#### 12. Interior: Method - -The body of a method declaration - - - -#### 13. Interior: Static - -The body of a static initialization block in a class - - - -#### 14. Interior: Switch - -The body of a switch statement - - - -#### 15. Interior: Switch case - -The body of a case/default branch in a switch statement - - - - - -#### 16. Interior: Try - -The body of a try/catch/finally branch - - - -#### 17. Interior: While - -The body of a while loop - - - ### Pair delimiter #### 1. Pair delimiter diff --git a/packages/app-web-docs/src/docs/user/languages/xml.mdx b/packages/app-web-docs/src/docs/user/languages/xml.mdx index 1b46782215..3177f3cbb1 100644 --- a/packages/app-web-docs/src/docs/user/languages/xml.mdx +++ b/packages/app-web-docs/src/docs/user/languages/xml.mdx @@ -35,6 +35,14 @@ Below are visualizations of all our scope tests for this language. These were cr +### Interior + +#### 1. Interior: Element + +The interior/children of an XML/HTML element + + + ### Value #### 1. Value: Attribute @@ -79,14 +87,6 @@ Below are visualizations of all our scope tests for this language. These were cr The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality. -### Interior - -#### 1. Interior: Element - -The interior/children of an XML/HTML element - - - ### String #### 1. String: Single line diff --git a/packages/app-web-docs/src/docs/user/scopes/README.md b/packages/app-web-docs/src/docs/user/scopes/README.md index ae43124999..16d3f06183 100644 --- a/packages/app-web-docs/src/docs/user/scopes/README.md +++ b/packages/app-web-docs/src/docs/user/scopes/README.md @@ -34,6 +34,7 @@ - [`"map"`](./map.mdx) - Map, object, or dictionary. - [`"item"`](./collectionItem.mdx) - Entry in a list, map, object, or similar collection. - [`"key"`](./collectionKey.mdx) - Key in a map, object, or dictionary. +- [`"interior"`](./interior.mdx) - Interior ## Functions and calls diff --git a/packages/app-web-docs/src/docs/contributing/private-scopes/fixtures/interior.json b/packages/app-web-docs/src/docs/user/scopes/fixtures/interior.json similarity index 100% rename from packages/app-web-docs/src/docs/contributing/private-scopes/fixtures/interior.json rename to packages/app-web-docs/src/docs/user/scopes/fixtures/interior.json diff --git a/packages/app-web-docs/src/docs/contributing/private-scopes/interior.mdx b/packages/app-web-docs/src/docs/user/scopes/interior.mdx similarity index 98% rename from packages/app-web-docs/src/docs/contributing/private-scopes/interior.mdx rename to packages/app-web-docs/src/docs/user/scopes/interior.mdx index 745de80175..f4119efe72 100644 --- a/packages/app-web-docs/src/docs/contributing/private-scopes/interior.mdx +++ b/packages/app-web-docs/src/docs/user/scopes/interior.mdx @@ -9,24 +9,10 @@ import scopeTests from "./fixtures/interior.json"; Cursorless ID: `interior` -## Spoken form - -Default: `interior` - -## Syntax - -- interior - Interior. - -## Examples - -- `"take interior blue air"` - Selects the interior containing the token containing letter `a` with a blue hat. - ## Visualization -The following are internal scopes. They are not intended for user interaction or spoken use. These scopes exist solely for internal Cursorless functionality. - ### Interior: Cell diff --git a/packages/lib-common/src/references/scopeReferences.ts b/packages/lib-common/src/references/scopeReferences.ts index 26a32bb0e8..16eb1fa7d2 100644 --- a/packages/lib-common/src/references/scopeReferences.ts +++ b/packages/lib-common/src/references/scopeReferences.ts @@ -587,6 +587,17 @@ When an opening and closing delimiter use the same character and no parse-tree i }, ], }, + interior: { + name: "Interior", + group: { id: "collections", index: 5 }, + defaultSpokenForm: "interior", + // This is a psudo-scope and is intended only for documentation purposes. + // The actual spoken form is for the interiorOnly modifier. + visibility: "privateSpokenForm", + isLanguageSpecific: true, + syntaxes: [], + examples: [], + }, // Group: functions argumentOrParameter: { @@ -1413,26 +1424,6 @@ For a range target, the entire range becomes the search text. Without an explici }, ], }, - interior: { - name: "Interior", - group: { id: "private", index: 5 }, - defaultSpokenForm: "interior", - visibility: "private", - isLanguageSpecific: true, - syntaxes: [ - { - pattern: DEFAULT_PATTERN, - description: "Interior.", - cheatsheet: "Interior", - }, - ], - examples: [ - { - command: `${SET_SELECTION} ${VAR_SPOKEN_FORM} ${TARGET}`, - description: `Selects the interior containing the ${TARGET_DESC}.`, - }, - ], - }, surroundingPairInterior: { name: "Surrounding pair interior", group: { id: "private", index: 6 }, diff --git a/packages/lib-common/src/types/SpokenFormVisibility.ts b/packages/lib-common/src/types/SpokenFormVisibility.ts index c4baf37f3d..8509d0695b 100644 --- a/packages/lib-common/src/types/SpokenFormVisibility.ts +++ b/packages/lib-common/src/types/SpokenFormVisibility.ts @@ -7,8 +7,14 @@ * - `"private"` indicates that the spoken form is intended only for internal * experimentation or a targeted working group. Private spoken forms are * also disabled by default. + * - `"privateSpokenForm"` indicates that the spoken form is intended only for + * internal purposes and is not enabled by default, but the reference can be + * otherwise documented. * * An omitted visibility indicates a public spoken form that is enabled by * default. */ -export type SpokenFormVisibility = "disabledByDefault" | "private"; +export type SpokenFormVisibility = + | "disabledByDefault" + | "private" + | "privateSpokenForm"; diff --git a/packages/tool-meta-updater/src/updateReferences.ts b/packages/tool-meta-updater/src/updateReferences.ts index b6f7351759..2c12c98181 100644 --- a/packages/tool-meta-updater/src/updateReferences.ts +++ b/packages/tool-meta-updater/src/updateReferences.ts @@ -1,6 +1,6 @@ import type { FormatPluginFnOptions } from "@pnpm/meta-updater"; import type { ReferenceEntry, ReferenceGroup } from "@cursorless/lib-common"; -import { capitalize } from "@cursorless/lib-common"; +import { camelCaseToAllDown, capitalize } from "@cursorless/lib-common"; import type { RecordedTestPath } from "@cursorless/lib-node-common"; import { recordedTestVisualizerImport, @@ -47,6 +47,7 @@ export function updateReferenceReadmeMd( entry.visibility === "disabledByDefault" ? ` (${DISABLED_BY_DEFAULT})` : ""; + for (const syntax of entry.syntaxes) { const pattern = injectSpokenForm( syntax.pattern, @@ -57,12 +58,14 @@ export function updateReferenceReadmeMd( `- [\`"${pattern}"\`](./${id}.mdx) - ${description}${disabledByDefault}`, ); } + if (entry.syntaxes.length === 0) { const name = entry.defaultSpokenForm != null ? `\`"${entry.defaultSpokenForm}"\`` : entry.name; - expected.push(`- [${name}](./${id}.mdx)`); + const description = capitalize(camelCaseToAllDown(id)); + expected.push(`- [${name}](./${id}.mdx) - ${description}`); } } @@ -127,24 +130,25 @@ export async function updateReferenceMdx( expected.push(`Cursorless ID: ${code(entry.csv_id ?? id)}`, ""); - const spokenFormLines: string[] = []; - - if (entry.defaultSpokenForm != null) { - spokenFormLines.push(`Default: ${code(entry.defaultSpokenForm)}`); - } + if ( + entry.defaultSpokenForm != null && + entry.visibility !== "privateSpokenForm" + ) { + const spokenFormLines = [`Default: ${code(entry.defaultSpokenForm)}`]; - if (entry.legacySpokenForms != null) { - spokenFormLines.push( - `Legacy: ${entry.legacySpokenForms.map((s) => code(s)).join(", ")}`, - ); - } + if (entry.legacySpokenForms != null) { + spokenFormLines.push( + `Legacy: ${entry.legacySpokenForms.map((s) => code(s)).join(", ")}`, + ); + } - if (entry.visibility === "disabledByDefault") { - spokenFormLines.push(DISABLED_BY_DEFAULT); - } + if (entry.visibility === "disabledByDefault") { + spokenFormLines.push(DISABLED_BY_DEFAULT); + } - if (spokenFormLines.length > 0) { - expected.push("## Spoken form", "", ...formatGroup(spokenFormLines), ""); + if (spokenFormLines.length > 0) { + expected.push("## Spoken form", "", ...formatGroup(spokenFormLines), ""); + } } if (entry.syntaxes.length > 0) { diff --git a/packages/tool-meta-updater/src/updateSpokenForms.ts b/packages/tool-meta-updater/src/updateSpokenForms.ts index 66c2d4b32f..de459d2fbb 100644 --- a/packages/tool-meta-updater/src/updateSpokenForms.ts +++ b/packages/tool-meta-updater/src/updateSpokenForms.ts @@ -209,7 +209,11 @@ function entries( throw new Error(`No default spoken form found for '${id}'`); } - if (typeof value !== "string" && value.visibility === "private") { + if ( + typeof value !== "string" && + (value.visibility === "private" || + value.visibility === "privateSpokenForm") + ) { return []; }