Skip to main content
All CollectionsCommands
Commands: /shorten
Commands: /shorten
G
Written by Glen Smith
Updated over 3 years ago

Overview

The /shorten command can be used to shorten a phrase, which is useful for trimming a prompt before using it

Input text can be inline text, or variables and the trimmed output will replace the command in the content window, or the output can be directed to a variable.

Examples

Example1: Shorten a phrase to the length of 5 (Example: hello)

/shorten 5 [hello world]

Example 2: Shorten a phrase to the length of 5 characters and add "..." to the end (Example: hello...)

/shorten 5 ... [hello world]

Arguments

  • characters (number)

  • readmore (text to append)

Aliases

The following alias can also be used to shorten a phrase

/trim
Did this answer your question?