Scrolling: mouse wheel per region, page/line/top/bottom keys, pinned view while streaming
This commit is contained in:
1 parent
c15783129d
commit
f0a0111343
5 files changed
+344
-34
No files matched your search
@@ -77,6 +77,8 @@ struct Config {
|
||||
max_tokens: Option<u32>,
|
||||
/// Model for read-only `task` subagents; default: the provider's cheapest tier (Haiku / Luna).
|
||||
explore_model: Option<String>,
|
||||
/// Capture the mouse for wheel scrolling (default true; false = terminal selection works without shift).
|
||||
mouse: Option<bool>,
|
||||
/// Replaces the built-in system prompt (AGENTS.md etc. are still appended).
|
||||
system_prompt: Option<String>,
|
||||
lsp: Option<LspCfg>,
|
||||
@@ -121,6 +123,7 @@ impl Config {
|
||||
compact_at: o.compact_at.or(c.compact_at),
|
||||
max_tokens: o.max_tokens.or(c.max_tokens),
|
||||
explore_model: o.explore_model.or(c.explore_model),
|
||||
mouse: o.mouse.or(c.mouse),
|
||||
system_prompt: o.system_prompt.or(c.system_prompt),
|
||||
lsp: o.lsp.or(c.lsp),
|
||||
extensions: [c.extensions, o.extensions].concat(),
|
||||
@@ -613,6 +616,8 @@ async fn main() -> Result<()> {
|
||||
pricing,
|
||||
specs,
|
||||
open_sessions,
|
||||
mouse: cfg.mouse.unwrap_or(true)
|
||||
&& std::env::var_os("HX_MOUSE").is_none_or(|v| v != "0"),
|
||||
commands: {
|
||||
let mcp = mcp.clone();
|
||||
Box::new(move |name: &str, arg: &str| {
|
||||
|
||||
Reference in new issue
Block a user