Skip to content

Autoscroll on paste - #24

Merged
as-cii merged 1 commit into
masterfrom
fix-autoscroll-on-paste
Apr 27, 2021
Merged

Autoscroll on paste#24
as-cii merged 1 commit into
masterfrom
fix-autoscroll-on-paste

Conversation

@as-cii

@as-cii as-cii commented Apr 27, 2021

Copy link
Copy Markdown
Member

With these changes we're adding an autoscroll request on paste that we missed in #18.

As part of this pull request, we are also removing the BufferView::changed_selections method and inlining the autoscroll request inside of update_selections. This is nicer because it'll force us to determine whether we want to autoscroll every time we update the selections, so that we don't forget to do so in the future.

/cc: @nathansobo @maxbrunsfeld

This also removes the `changed_selections` and moves the autoscroll
request inside of `update_selections`. This is nicer because it'll force
us to determine whether we want to autoscroll every time we update the
selections, so that we don't forget this in the future.
@as-cii
as-cii merged commit 2a1496b into master Apr 27, 2021
@as-cii
as-cii deleted the fix-autoscroll-on-paste branch April 27, 2021 09:59
Anthony-Eid pushed a commit to Anthony-Eid/zed that referenced this pull request Aug 25, 2024
m-bers pushed a commit to m-bers/zed that referenced this pull request Apr 19, 2026
…e-latest-zed

Merge latest zed upstream paying close attention to and u...
ShalashaskaOcelot pushed a commit to ShalashaskaOcelot/zed that referenced this pull request Jul 14, 2026
…stries#24/zed-industries#25 and backlog items

- Tick confirmed awaiting_testing items (interrupt-shows-✕, rerun-during-run,
  re-run-after-finish); stuck-running observation stays open.
- Archive phases 21 (live counter), 22 (multi-select), 23 (collapse) — all
  confirmed working; remaining manual tests moved to awaiting_testing.md.
- Bug zed-industries#24: rich outputs (tables/images/markdown/json) dropped on save, so
  outputs don't survive close/reopen (plain/stream/error round-trip fine).
- Bug zed-industries#25: adding a cell at the viewport bottom doesn't scroll it into view.
- Backlog: retain cell output through cut/paste and delete/undo; a per-cell
  "last executed time" indicator.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014eseBDGa7au9r2VxBHeh9X
ShalashaskaOcelot pushed a commit to ShalashaskaOcelot/zed that referenced this pull request Jul 14, 2026
…s#24)

Rich outputs — pandas DataFrame tables (text/html), matplotlib images,
markdown and JSON reprs — were silently dropped on save: their Output
variants stored only the rendered view, so Output::to_nbformat returned
None and the data never reached the .ipynb. Reopening a notebook then showed
no outputs for any data work.

Retain the source MimeBundle on the Image, Table, Markdown, and Json
variants (captured in Output::new, where the bundle is already available and
which every construction path funnels through) and serialize it back as
DisplayData in to_nbformat. Rich outputs now round-trip through save/reopen;
plain, stream, and error outputs already did.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014eseBDGa7au9r2VxBHeh9X
ShalashaskaOcelot pushed a commit to ShalashaskaOcelot/zed that referenced this pull request Jul 14, 2026
…/23; backfill changelog commit IDs

- Bugs zed-industries#21 (spurious conflict toast) and zed-industries#24 (rich outputs dropped) confirmed
  fixed by the user; recorded in CHANGELOG.md and removed from bugs.md and the
  awaiting_testing pointer list.
- Phase 17 fully done (stuck-running observation dismissed after 5+ phases with
  no recurrence) and Phase 23 done (output-collapse persistence confirmed now
  that zed-industries#24 is fixed) — both sections removed from awaiting_testing.md.
- Refresh the zed-industries#22/zed-industries#23 test recipes for their follow-up fixes.
- Backfill CHANGELOG.md with the implementation commit for every completed
  phase and confirmed bug.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014eseBDGa7au9r2VxBHeh9X
ShalashaskaOcelot pushed a commit to ShalashaskaOcelot/zed that referenced this pull request Jul 15, 2026
The snapshot pipeline already round-trips outputs end to end: copy/cut and
the delete-undo record serialize cells via to_nbformat_cell (which has
carried ALL outputs since bug zed-industries#24 retained rich outputs' source media), and
paste/undo rebuild through Cell::load, which restores them. What was missing
when the gap was reported pre-dated that fix.

Adds test_cell_outputs_round_trip_through_snapshot (stream + plain-result +
rich markdown outputs through load → snapshot) and an outputs() accessor on
CodeCell for it. Phase 27 complete; phase 32 (notebook UX niceties: Esc
collapses multi-selection, markdown preview render-on-exit, focus return
after toolbar interactions) promoted to keep 5 phases in rotation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014eseBDGa7au9r2VxBHeh9X
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
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.

1 participant