lapce / lapce/lapce

Arbitrary Editors diff Comparison

Open
#2,136 17 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-editor C-feature
Dominant language
Rust
Stars
38.9k
Forks
1.3k
Avg merge
19m
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.

Need to see the difference i.e. compare two arbitrary buffers - i.e. in full generality.

  • Buffers as it maybe unsaved new files too, not necessarily a saved file.
  • Arbitrary as I am talking in context of non-SCM or non-R/VCS

Use Cases

Based on https://github.com/lapce/lapce/issues/2136#issuecomment-1426859906 , here are some use cases:

  • compare dirty file (changes in editors) with saved file
  • compare 2 non-consecutive commits
  • compare modifications w.r.t. a refrence document - say the TA's provided answers

Describe the solution you'd like

Ability to select any two arbitrary editors in the "Open Editors" panel and "Compare selected".

This feature is available in VS Codium, Atom, Notepad++, doublecmd

Describe alternatives you've considered

The frontend is as simple as it can get, so, i don't think any alternates exist.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Open Editors panel and locate the editor comparison entry points; the issue names no files or tests. Done means selecting any two editors, including unsaved buffers, and displaying their diff, covering the listed comparison use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.