KetraTerm
API · DevelopmentAll versions

precedingArguments

Decoded words after the executable and strictly before the active token, in input order. Includes subcommands, option names, values, and --. Leading environment assignments and the executable are excluded. Available even without a command spec; empty at command/operator positions.

Only the cursor's command segment is included, according to the request's shell syntax. Quotes and escapes follow the shared tokenizer; empty quoted words remain empty strings. No variable, glob, or command expansion is performed. The active word (even at its end) and all later words are excluded. This immutable, request-owned list may be retained across suspension or later requests; its size is bounded by the words in the parsed prefix.