Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature: disable line matching in split diffs

Open
#781 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
63/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Start by locating the split-diff renderer and tracing where deleted and added lines are paired into rows. Check how its rendering options are exposed, then add the proposed splitLineMatching option with "paired" and "none" modes. Done means the default layout stays paired and "none" renders deleted and added lines on separate rows as shown; run the relevant split-diff tests.

Written by the indexing model from the issue text.

Description

diffs enhancement
Prerequisites
Proposal

Add an option to render split diffs without pairing deleted and added lines into the same row.

Proposed API:

splitLineMatching?: "paired" | "none"

Example patch:

@@ -1,2 +1,2 @@
 const value = getOldValue()
-return oldValue + 1
+return getNewValue(input) + 1

Current paired split layout:

old new │ old side               │ new side
2   2   │ - return oldValue + 1  │ + return getNewValue(input) + 1

With splitLineMatching: "none":

old new │ old side               │ new side
2       │ - return oldValue + 1  │
    2   │                        │ + return getNewValue(input) + 1
Motivation and context

I can't exactly recall where I've seen this diffing mode, but I like it/use it. The closest precedent is Gitea/Forgejo. Gitea describes this as "matching up added and deleted lines" in split diffs, and moved that matching from client-side JS into the renderer in go-gitea/gitea#16775..

Diff2Html exposes a similar concept directly as matching: 'lines' | 'words' | 'none'.

Dominant language
TypeScript
Stars
6.2k
Forks
226
Avg merge
1d 13h
Merged PRs (30d)
33

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from pierrecomputer/pierre

All issues in pierrecomputer/pierre

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.