-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b138
-
Not verified
This line:
| Where <format> is a quoted string which will be the value of the field if one of
Does not belong in ---
jshell> /help /set truncation
| Set the max length a displayed value.
|
| /set truncation <mode> <length> <selector>...
|
| Where <mode> is the name of a previously defined feedback mode -- see '/help /set mode'.
| Where <length> is an unsigned integer representing a maximum length.
| Where <format> is a quoted string which will be the value of the field if one of
| Where <selector> is only needed if you wish to fine-tune value truncation length
| by context, <selector> is the context in which the truncation is applied.
| The structure of selector is a hyphen separated list of selector kind lists.
| A selector kind list is a comma separated list of values of one selector kind.
| A selector matches if each selector kind list matches; A selector kind list
| matches if one of the values matches.
|
| Below are the relevant selector kinds for truncation.
|
| The case selector kind describes the kind of snippet. The values are:
| vardecl -- variable declaration without init
| varinit -- variable declaration with init
| expression -- expression -- note: {name}==scratch-variable-name
| varvalue -- variable value expression
| assignment -- assign variable
| The action selector kind describes what happened to the snippet. The values are:
| added -- snippet has been added
| modified -- an existing snippet has been modified
| replaced -- an existing snippet has been replaced with a new snippet
| Examples:
| /set trunc mymode 80
| /set truncation mymode 45 expression
| /set truncation mymode 0 vardecl-modified,replaced
|
| Note that subsequent selectors for a field may overwrite some or all of previous used selectors -- last one wins
| Where <format> is a quoted string which will be the value of the field if one of
Does not belong in ---
jshell> /help /set truncation
| Set the max length a displayed value.
|
| /set truncation <mode> <length> <selector>...
|
| Where <mode> is the name of a previously defined feedback mode -- see '/help /set mode'.
| Where <length> is an unsigned integer representing a maximum length.
| Where <format> is a quoted string which will be the value of the field if one of
| Where <selector> is only needed if you wish to fine-tune value truncation length
| by context, <selector> is the context in which the truncation is applied.
| The structure of selector is a hyphen separated list of selector kind lists.
| A selector kind list is a comma separated list of values of one selector kind.
| A selector matches if each selector kind list matches; A selector kind list
| matches if one of the values matches.
|
| Below are the relevant selector kinds for truncation.
|
| The case selector kind describes the kind of snippet. The values are:
| vardecl -- variable declaration without init
| varinit -- variable declaration with init
| expression -- expression -- note: {name}==scratch-variable-name
| varvalue -- variable value expression
| assignment -- assign variable
| The action selector kind describes what happened to the snippet. The values are:
| added -- snippet has been added
| modified -- an existing snippet has been modified
| replaced -- an existing snippet has been replaced with a new snippet
| Examples:
| /set trunc mymode 80
| /set truncation mymode 45 expression
| /set truncation mymode 0 vardecl-modified,replaced
|
| Note that subsequent selectors for a field may overwrite some or all of previous used selectors -- last one wins