Show the REPL/output with cursor at the bottom (#792)#793
Show the REPL/output with cursor at the bottom (#792)#793glebovmaksim wants to merge 1 commit intoBetterThanTomorrow:devfrom
Conversation
|
I don't think we can remove the scrolling in that append method. When the window is not visible it should still be scrolled when made visible. So my guess is that this will not work when the output window is in the same tab group as the file where the evaluation happens. I'd be happy to be wrong about it, though. No fan of state. 😄 |
|
The output window will always be scrolled to the bottom when made visible via the |
|
I like your changes here, but I agree with @PEZ that keeping the auto scroll behavior even when the output window is clicked via a tab and when there are unread eval results, is best. So your change would be additive and not remove any existing functionality. I too would like to get rid of that state, but the behavior (as desired) seems inherently stateful. I'm not sure that preventing double scrolling is really necessary, as it's a pretty insignificant thing, I would guess, and an idempotent operation. But if it's pretty simple to prevent, then we should. |
|
Will you maybe have time to finish this during Christmas, @glebovmaksim ? 😄 |
|
Hi @glebovmaksim , I would like to see this through since I usually code with split window and having Calva output there messes with my flow. Are you interested in continuing this? I would give it a shot, even though I know quite little about typescript and even less about vscode (that is how much I want to see this though). |
What has Changed?
Eliminates the state and always shows the REPL/output with cursor at the bottom when using command/shortcut
ctrl+alt+c o.Fixes #792
My Calva PR Checklist
I have:
devbranch. (Or have specific reasons to target some other branch.)master. (Sorry for the nagging.)[Unreleased]entry inCHANGELOG.md, linking the issue(s) that the PR is addressing.ci/circleci: buildtest. NB: There is a CircleCI bug that makes the Artifacts hard to find. Please see this issue for workarounds.The Calva Team PR Checklist:
Before merging we (at least one of us) have:
devbranch (unless reasons).Ping @PEZ, @kstehn, @cfehse, @bpringe