Skip to main content

Scopes

Text-based scopes

  • "char" - Single character within a token.
  • "sub" - Word-like component within a token, such as part of camelCase or snake_case.
  • "token" - Token such as a word, number, or operator.
  • "identifier" - Identifier-style sequence, such as camelCase, snake_case, or kebab-case.
  • "sentence" - Text ending at sentence punctuation or a paragraph boundary.
  • "line" - Line, excluding indentation.
  • "full line" - Full line, including indentation.
  • "block" - Paragraph, contiguous non-empty lines around the target.
  • "short block" - Paragraph bounded by surrounding pair delimiters.
  • "file" - Entire document.
  • "paint" - Non-whitespace sequence.
  • "short paint" - Non-whitespace sequence bounded by surrounding pair delimiters.
  • "link" - URL / Web address.
  • "<pair>" - Surrounding matching delimiter pair and its contents.
  • "glyph <character>" - Instance of single character <character>.

Document hierarchy

Collections

  • "list" - List or array.
  • "map" - Map, object, or dictionary.
  • "item" - Entry in a list, map, object, or similar collection.
  • "key" - Key in a map, object, or dictionary.

Functions and calls

  • "arg" - Function parameter or function-call argument.
  • "arg list" - Complete parameter or argument list.
  • "lambda" - Anonymous or lambda function.
  • "funk" - Named function declaration.
  • "funk name" - Name in a function declaration.
  • "call" - Function, method, or constructor call.
  • "callee" - Expression invoked by a function call.

Classes and objects

  • "class" - Class or struct declaration or definition.
  • "class name" - Name in a class or struct declaration.
  • "instance" - Occurrence matching the current instance.
  • "name" - Name in a declaration, such as a variable or function name.
  • "attribute" - Attribute, such as one on an HTML element.
  • "type" - Type annotation or declaration.
  • "value" - Value in an assignment, collection entry, return statement, or similar construct.

Statements and expressions

  • "state" - Complete statement, such as a variable declaration or expression statement.
  • "branch" - Branch of a control-flow construct, such as if, try, switch, or ternary.
  • "if state" - Complete if statement.
  • "condition" - Condition of a conditional, loop, or similar construct.
  • "comment" - Line or block comment.
  • "command" - Command, such as a Talon spoken command or shell command.
  • "regex" - Regular-expression literal.

Markup and styles

  • "element" - Complete XML, HTML, or JSX element, or a LaTeX environment.
  • "start tag" - Opening XML, HTML, or JSX tag, or LaTeX begin command.
  • "end tag" - Closing XML, HTML, or JSX tag, or LaTeX end command.
  • "tags" - Opening and closing XML, HTML, or JSX tags, or LaTeX begin and end commands.
  • "selector" - CSS selector.
  • "unit" - Unit suffix in a measurement, such as px in 100px.

Sections

  • "section" - Heading and its content through the next heading of the same or higher level.
  • "one section" - Level-one heading and its content. (Disabled by default)
  • "two section" - Level-two heading and its content. (Disabled by default)
  • "three section" - Level-three heading and its content. (Disabled by default)
  • "four section" - Level-four heading and its content. (Disabled by default)
  • "five section" - Level-five heading and its content. (Disabled by default)
  • "six section" - Level-six heading and its content. (Disabled by default)

Notebook

  • "cell" - Notebook cell or Markdown fenced code block.