Feature Request: Built-in text/content search across files
- Langage dominant
- Rust
- Étoiles
- 22.5k
- Forks
- 773
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## Feature Request
**Summary:**
GitUI currently does not provide a built-in way to search for text or content across files in a repository. Users who want to find a specific string, pattern, or piece of code must leave the GitUI interface and use an external tool (e.g. `grep`, `rg`, or their editor's search).
**Expected Behavior:**
GitUI should include a built-in file content search (similar to `grep` / `ripgrep`) that allows users to:
- Enter a search query (plain text or regex)
- See matching files and line previews directly within the TUI
- Navigate to a specific match in context
**Why This Matters:**
Code review and diff inspection workflows often require looking up where a symbol or string is used across the repository. Having to switch out of GitUI to a separate terminal search breaks the flow and reduces the tool's usefulness as a self-contained Git UI.
**Possible Approach:**
- Add a dedicated search panel (e.g. reachable via a keybinding like `/` or a dedicated shortcut)
- Internally delegate to `git grep` or an optional `ripgrep`/`grep` backend
- Display results in a scrollable list with file path, line number, and a snippet of the matching line
- Allow jumping into the diff/file view from a result
**Alternatives Considered:**
- Using `git grep` manually in a separate terminal — works but requires context switching
- Using editor search — not available when GitUI is the primary interface
**References:**
- Similar feature in other TUI Git clients (e.g. lazygit's filter/search capabilities)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Aucun fichier ni test n’est identifié ; commencez par examiner les points d’entrée TUI existants pour les raccourcis clavier, les panneaux et la vue diff/fichier. Définissez le panneau de recherche autour du raccourci `/` proposé et évaluez `git grep` ou un backend ripgrep/grep optionnel. La fonctionnalité est considérée comme terminée lorsque les utilisateurs peuvent rechercher du texte ou des regex, parcourir les chemins de fichiers avec des aperçus de lignes et accéder à une correspondance dans son contexte.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, rust
- Domaine
- cli, devtools, search
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 42/100