Skip to content

Add /source --page to route through a single pager - #2154

Merged
rolandwalker merged 1 commit into
mainfrom
RW/source-page-option
Aug 22, 2026
Merged

Add /source --page to route through a single pager#2154
rolandwalker merged 1 commit into
mainfrom
RW/source-page-option

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

Typically under /source, each query runs separately, and the decision on whether the output is large enough to page is limited to each separate query output. So you either get multiple pager invocations, or perhaps none, even if the global output of all of the /source script is long enough to look pageable.

This introduces /source --page to route the output of multiple query outputs through a single pager.

Notes and limitations

  • interactive confirmations are not possible within the single pager
  • exiting the pager before viewing the end-of-file might lead to some queries not executing
  • some code is duplicated

Fixes #1864 .

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

Typically under /source, each query runs separately, and the decision on
whether the output is large enough to page is limited to each separate
query output.  So you either get multiple pager invocations, or perhaps
none, even if the global output of all of the /source script is long
enough to look pageable.

This introduces /source --page to route the output of multiple query
outputs through a single pager.

Notes and limitations

 * interactive confirmations are not possible within the single pager
 * exiting the pager before viewing the end-of-file might lead to some
   queries not executing
 * some code is duplicated
@rolandwalker rolandwalker self-assigned this Aug 22, 2026
@rolandwalker
rolandwalker merged commit e6bc489 into main Aug 22, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: output controls on source (verbose + paging)

1 participant