Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Search (Cmd+F) can't find diff content that isn't rendered yet

Abierto
#42 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend, search

Línea de trabajo

Start by locating the diff viewer's virtualization, collapsed-region handling, and underlying diff data entry point; reproduce the problem with a large changeset. Done means a UI search covers all changed files and added/removed lines, lists file paths, line numbers, and snippets, and expands and jumps to a selected match; regex and Enter/Shift+Enter navigation are described as ideal behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Problem

In large diffs, the viewer collapses unchanged regions ("N unmodified lines") and only renders the currently visible hunks (virtualization). Because of this, the browser's native find (Ctrl/Cmd+F) only searches text that is already in the DOM:

  • If the code I'm looking for sits inside a collapsed or not-yet-rendered region, find returns 0 results.
  • The match only becomes searchable after I manually scroll to that file and section.

This makes reviewing large changesets painful — I often know the exact symbol/function I want to check, but have to hunt for it by scrolling through every file.

Expected behavior

A search box in the UI that searches the underlying diff data (not the rendered DOM):

  1. Searches across all changed files and added/removed lines.
  2. Shows a result list with file path, line number, and a snippet.
  3. Clicking a result expands the collapsed region and jumps/scrolls to the exact line.
  4. Ideally supports regex and jumping between matches with Enter / Shift+Enter (like GitHub's PR review search, or less search inside git diff).
Lenguaje dominante
TypeScript
Estrellas
206
Forks
37
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wong2/diffx

Todos los issues de wong2/diffx

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.