User guide / Bindable action reference

Condition contracts

Development reference · View source

ConditionMeaningApplicable buffer types
selection-has-textAt least one range has different anchor and head offsets; a caret is falseBuffer types with ordinary text selections, including generated buffer types and terminal review; excludes media, directory-tree and UI owners
multiple-selectionsTwo or more selection rangesBuffer types with ordinary text selections, including generated buffer types and terminal review; excludes media, directory-tree and UI owners
register-emptyPending selected register has no text or directory entries; after consumption, tests the unnamed registerEverywhere programs execute; excludes UI owners
read-onlyThe active buffer type’s text cannot be edited, including terminal and media surfacesEverywhere programs execute; excludes UI owners
{mode: <name>}Role membership for normal/select/insert/replace; exact named mode otherwiseEverywhere programs execute; excludes UI owners
{buffer-type: <type>}Exact buffer-types key; unknown names are rejectedEverywhere programs execute; excludes UI owners
recording-macroA macro is currently being recordedEverywhere programs execute; excludes UI owners
tree-entry-expandedThe selected tree entry is expandeddirectory-tree
tree-entry-is-directoryThe selected tree entry is a directorydirectory-tree
tree-entry-is-rootThe selected tree entry is the tree rootdirectory-tree