get_view_chars
Return text between two character offsets from any open Sublime Text tab. Works with Terminus views and automatically clamps to buffer boundaries.
Instructions
Return text at character offsets begin..end (0-based, end exclusive) from any open tab. Works for Terminus tabs and any other view. Clamps to buffer bounds automatically. Use get_view_size first, then e.g. begin=size-5000, end=size to read the last 5000 chars. Omit name for the active view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| begin | Yes | ||
| end | Yes | ||
| name | No |