Skip to content

Commit 900ea04

Browse files
authored
Merge pull request #76 from fulll/release/1.6.1
v1.6.1
2 parents 1a892fb + a19cecd commit 900ea04

4 files changed

Lines changed: 34 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Each release entry covers the motivation, new features, breaking changes (if any
66

77
| Version | Blog post |
88
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
9+
| [v1.6.1](https://fulll.github.io/github-code-search/blog/release-v1-6-1) | Fix TUI only displaying first text fragment when a file has multiple matches |
910
| [v1.6.0](https://fulll.github.io/github-code-search/blog/release-v1-6-0) | Power navigation: global fold/unfold, gg/G top/bottom, paged scroll, open-in-browser |
1011
| [v1.5.0](https://fulll.github.io/github-code-search/blog/release-v1-5-0) | Advanced filter targets, regex mode, word-jump, scroll fix |
1112
| [v1.4.0](https://fulll.github.io/github-code-search/blog/release-v1-4-0) | TUI visual overhaul, community files, demo animation |

docs/blog/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Full release notes and changelogs are always available on
1111

1212
| Release | Highlights |
1313
| -------------------------- | ----------------------------------------------------------------------------------------------------- |
14+
| [v1.6.1](./release-v1-6-1) | Fix TUI rendering only the first fragment for multi-match files |
1415
| [v1.6.0](./release-v1-6-0) | Power navigation: global fold/unfold (`Z`), Vim `gg`/`G` jumps, paged scroll, open-in-browser (`o`) |
1516
| [v1.5.0](./release-v1-5-0) | Advanced filter targets (content/path/repo), regex mode, word-jump shortcuts, scroll accuracy fix |
1617
| [v1.4.0](./release-v1-4-0) | TUI visual overhaul, violet branding, demo animation, SECURITY / Code of Conduct, README improvements |

docs/blog/release-v1-6-1.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "What's new in v1.6.1"
3+
description: "Patch fix: the TUI now correctly renders all text fragments when a file contains multiple matches, not just the first one."
4+
date: 2026-03-04
5+
---
6+
7+
# What's new in github-code-search v1.6.1
8+
9+
> Full release notes: <https://github.com/fulll/github-code-search/releases/tag/v1.6.1>
10+
11+
## Highlights
12+
13+
### Fix: all text fragments now displayed for multi-match files
14+
15+
When a file contained **multiple matches**, the TUI was only rendering the first text fragment and silently dropping the rest. This meant that in dense codebases where the same query matched several locations in a single file, only one extract was ever visible in the interactive view.
16+
17+
The root cause was an incorrect indexing assumption in the fragment rendering loop. The fix ensures every `TextMatch` fragment is iterated and rendered, regardless of how many matches exist in the same file.
18+
19+
**Before:** only the first fragment of each multi-match file was shown.
20+
**After:** all fragments are shown, consistent with the markdown/JSON output.
21+
22+
---
23+
24+
## Upgrade
25+
26+
```bash
27+
github-code-search upgrade
28+
```
29+
30+
Or download the latest binary directly from the
31+
[GitHub Releases page](https://github.com/fulll/github-code-search/releases/tag/v1.6.1).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-code-search",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "Interactive GitHub code search with per-repo aggregation",
55
"keywords": [
66
"bun",

0 commit comments

Comments
 (0)