Skip to content

Add inline edit for diffs - #1477

Open
MUFFANUJ wants to merge 10 commits into
jupyterlab:mainfrom
MUFFANUJ:inlineEdit
Open

MUFFANUJ wants to merge 10 commits into
jupyterlab:mainfrom
MUFFANUJ:inlineEdit

Conversation

@MUFFANUJ

Copy link
Copy Markdown
Member

Closes #1464

This change adds inline editing support for WORKING vs HEAD plain text diffs and keeps the UX stable by saving edits with a 1-second debounce, refreshing diff content safely, and restoring cursor/focus after refresh. It also adds focused tests for edit button visibility, save behavior, safe refresh handling, selection restoration, and dispose-time save to ensure the flow is deterministic and reliable.

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a Binder on branch MUFFANUJ/jupyterlab-git/inlineEdit

@MUFFANUJ

Copy link
Copy Markdown
Member Author

Hmm, so right now if the file is already open it does not reflect the edit mode changes

@MUFFANUJ

Copy link
Copy Markdown
Member Author

For quick look up:

Screen.Recording.2026-05-30.at.3.54.24.AM.mov

@MUFFANUJ

MUFFANUJ commented May 29, 2026

Copy link
Copy Markdown
Member Author

So earlier, when we had unsaved changes, and we used the edit mode to make changes in the same file with unsaved changes, it overwrote the changes. I feel this is maybe not something a user would want ( to lose their changes ). So, we have now added a notification Inline edit is unavailable while this file has unsaved changes in another editor.

Screen.Recording.2026-05-30.at.5.13.12.AM.mov

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Feature Request: Add inline editing to the Git diff view (VS Code-style)

1 participant