Skip to content

How do I change the scroll speed? #1416

Closed

Description

@willleeney

Error: Config file at ~/.config/opencode/opencode.json is invalid
↳ Unrecognized key(s) in object: 'scroll_speed'

Please can you tell me how I change the scroll speed?

I can see something was merged recently that allows me to set the speed but I don't know how to change that setting?

Activity

  1. rekram1-node commented on Jul 30, 2025

    @rekram1-node
    Contributor

    I know we addressed in another thread but just copying to say so here too:

    You have to edit the toml file this is only for tui. it isnt exposed intentionally and adam will likeky add an easier way to set in future. toml is at: ~/.local/state/opencode/tui and you set scroll speed like (must be int):

    scroll_speed = 3
  2. diocletiann commented on Jul 31, 2025

    @diocletiann

    scroll_speed = 3

    Thanks, scroll_speed = 1 works. 3 was super disorienting in a tui.

    Why is inertial scrolling disabled? It doesn't behave like other tuis (claude code for example).

  3. rekram1-node commented on Jul 31, 2025

    @rekram1-node
    Contributor

    you would have to ask Adam, I am not sure but Idrc either way

  4. nikhilmaddirala commented on Aug 8, 2025

    @nikhilmaddirala

    I know we addressed in another thread but just copying to say so here too:

    You have to edit the toml file this is only for tui. it isnt exposed intentionally and adam will likeky add an easier way to set in future. toml is at: ~/.local/state/opencode/tui and you set scroll speed like (must be int):

    scroll_speed = 3

    Hi @rekram1-node - I don't see any .toml file or a tui dir:

    ❯ ls ~/.local/share/opencode/
    auth.json       bin             log             project

    Any idea how I can address this?

  5. nikhilmaddirala commented on Aug 8, 2025

    @nikhilmaddirala

    Also, I find that scroll speed varies by terminal. When I'm using the VS Code integrated terminal, I find scrolling to be too fast. But when I use Ghostty, the speed is fine. I'm on MacOS.

  6. rekram1-node commented on Aug 8, 2025

    @rekram1-node
    Contributor

    @nikhilmaddirala you are looking in wrong dir, run cat ~/.local/state/opencode/tui

  7. elvstejd commented on Aug 11, 2025

    @elvstejd

    Same as @nikhilmaddirala. On MacOS and speed is different depending on the terminal I'm using.

    Ghostty speed is just right.
    Stock terminal is fine, but on the faster side.
    Cursor (VS code) terminal is very sensitive and way too fast. Annoying because it's the one i use 70% of time.

    Haven't touched the scroll_speed setting yet, but worried it might fix one and make the others too slow in comparison.

  8. rekram1-node commented on Aug 11, 2025

    @rekram1-node
    Contributor

    @elvstejd I had same experience but I've set scroll_speed to 1 and ghostty still feels fine for me, but maybe that's just me

  9. elvstejd commented on Aug 11, 2025

    @elvstejd

    @rekram1-node Ah, that did it actually. Much better, thanks!

  10. adamdotdevin commented on Aug 13, 2025

    @adamdotdevin
    Member

    should we just default to 1? cc @rekram1-node

  11. rekram1-node commented on Aug 13, 2025

    @rekram1-node
    Contributor

    @adamdotdevin I think so yeah

  12. adamdotdevin commented on Aug 13, 2025

    @adamdotdevin
    Member

    1 felt pretty slow to me in ghostty, defaulting to 2!

  13. rekram1-node commented on Aug 13, 2025

    @rekram1-node
    Contributor

    sounds good 👍

  14. willleeney commented on Aug 13, 2025

    @willleeney
    Author

    Can you add it as a setting not as the tui setting because that keeps on getting overwritten for me.

  15. rekram1-node commented on Aug 14, 2025

    @rekram1-node
    Contributor

    Hmm @adamdotdevin what do you think?

  16. adamdotdevin commented on Aug 15, 2025

    @adamdotdevin
    Member

    Hmm @adamdotdevin what do you think?

    yeah, but i wonder if we need a tui top-level key under config for things like this; do you mind taking a stab at this, @rekram1-node?

  17. rekram1-node commented on Aug 15, 2025

    @rekram1-node
    Contributor

    yes @adamdotdevin will do

  18. self-assigned this
    on Aug 15, 2025
  19. felixmccuaig commented on Nov 9, 2025

    @felixmccuaig

    @adamdotdevin @rekram1-node scroll is absolute garbage on macbook pro. Makes it pretty much unusable compared to claude code, it would be good to allow users to configure this at startup like claude code startup config.

  20. rekram1-node commented on Nov 9, 2025

    @rekram1-node
    Contributor

    @felixmccuaig what terminal are u using because different ones have different behaviors also is it too fast for u or too slow?

  21. connorads commented on Nov 20, 2025

    @connorads
    Contributor

    @felixmccuaig I have the same issue. I'm often running Claude Code or OpenCode from VS Code terminal. Scroll speed is fine in CC but painfully slow in OC. I updated the scroll_speed in ~/.config/opencode/opencode.json by adding a "tui": { "scroll_speed": 10 } section, which made it better after a restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions