jj String.substr() allows omitting end
Introduced 2026-04-02 · score 0.96
HOW TO USE IT
When a jj template needs the substring from a start index through the string’s end, call `.substr(start)`; `end` is optional. [jj v0.40.0 release notes](https://github.com/jj-vcs/jj/releases/tag/v0.40.0)
<string>.substr(<start>)WHY THIS HELPS
Format a string template using a substring that extends to the string's end.
REQUIREMENTS AND LIMITATIONS
- Version: v0.40.0
- start (required): Zero-based start index, in UTF-8 bytes for String; negative values count from the end.
- end: Exclusive end index; negative values count from the end. Omit to return through the string’s end. No mutual-exclusion rule applies.
FIRST-PARTY EVIDENCE
- https://github.com/jj-vcs/jj/releases/tag/v0.40.0
- https://github.com/jj-vcs/jj/blob/main/docs/templates.md
Check the installed version and the source before using it. Entry JSON