Repository navigation
feat: add terminal scrolling by lines and pages - #409
Merged
Merged
Conversation
This was referenced Oct 16, 2026
ekovovo
pushed a commit
to ekovovo/navop
that referenced
this pull request
Oct 19, 2026
- main/Cargo.toml、Cargo.lock:0.20.2 -> 0.20.3 - CHANGELOG.md:新增 v0.20.3 双语发布说明 本版自 v0.20.2 以来已合入 main 的变更: - 终端按行 / 按屏滚动回看历史输出(feigeCode#409) - Auto 模式 SQL 编辑器粘性会话,跨执行保留会话变量(feigeCode#312) - 笔记 Markdown 大纲面板与代码字体设置(feigeCode#406) - Redis:启用 TLS 修复、集群汇总全部 master、空库切换崩溃修复(feigeCode#414、feigeCode#416) - SFTP:上传可立即取消、同连接 3 条并发车道、目录符号链接处理(feigeCode#417、feigeCode#418) - 清空表刷新数据页签、结果集保存限定库名、剪贴板 JSON 原文复制(feigeCode#412、feigeCode#413)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add keyboard shortcuts to scroll the terminal scrollback by lines and by pages:
Ctrl+Shift+Up/Ctrl+Shift+Down— scroll up/down one lineShift+PageUp/Shift+PageDown— scroll up/down one pageThe shortcuts are registered and refreshable in the terminal context and exposed in the Settings → Shortcuts tab. Page scrolling keeps one line of context to avoid losing orientation. The shortcuts deliberately do not occupy plain
PageUp/PageDownorShift+Up/Shift+Down, which remain available for shell/TUI input and history navigation.In VI mode the new actions move the VI cursor, matching the existing mouse-wheel semantics; in alt-screen there is no scrollback, so the keys are propagated to the running program (vim, less, etc.) instead of being consumed.
How to Test
Ctrl+Shift+Up/Ctrl+Shift+Downand confirm the scrollback scrolls by one line each time.Shift+PageUp/Shift+PageDownand confirm scrolling by one page while keeping one line of context.vim,less,htop) and confirm the new shortcuts do not interfere with it (keys are passed through).Checklist
cargo runfor story tests related to the changes.