diffstalkerd 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,98 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ## [0.11.0] - 2026-08-06
11
+
12
+ ### Added
13
+
14
+ - **Search file contents across the repo** (Ctrl/⌘+Shift+F, or bare `F`), in the
15
+ web UI. Literal text, not a pattern — `git grep -F`, so there is no regex to
16
+ learn and none to hang the daemon. Results group by file with line numbers;
17
+ Enter opens the file in the Explorer scrolled to the matching line. The corpus
18
+ is the same as the file finder's: tracked plus untracked, never gitignored.
19
+ Bounded server-side — 500 results, 20 per file, 4 MiB, 5 seconds — and it says
20
+ when it hit a limit rather than quietly showing you less.
21
+
22
+ - **Better hunk headers for the languages git ships regexes for.** The
23
+ `@@ ... @@ <context>` text names the function a hunk is inside, but git only
24
+ guesses well when a gitattributes file opts the path into one of its built-in
25
+ drivers, which most repos never set up. diffstalker now supplies that default
26
+ itself, at the lowest priority, so a repo's own `.gitattributes` still wins.
27
+ Python goes from `class Widget:` to `def render(self):`; Java from
28
+ `public class Widget {` to `public void render() {`; Ruby, Go, Rust, C#, PHP
29
+ and the rest likewise. **TypeScript, JavaScript and Vue are unaffected** —
30
+ git ships no driver for them, and borrowing another language's does not work.
31
+
32
+ - **`/` narrows the changed-file list, in the web UI.** Type to hide the rows
33
+ you are not looking at; the diff stack narrows with the list, so it also
34
+ shortens the page. It is a filter, not a search: no syntax, no scopes, and it
35
+ only ever hides rows from the set already on screen. The count always names
36
+ its corpus ("4 of 214 changed files"), a filter matching nothing says so
37
+ rather than looking like a clean tree, and the query resets when the repo
38
+ changes under you (follow mode). Esc clears it.
39
+
40
+ - **`e` expands every large diff at once, in the web UI.** A file past 1500
41
+ changed lines starts behind a "Load diff" gate, which also hides it from the
42
+ browser's own find-in-page. One key mounts all of them, so Ctrl+F then
43
+ reaches the whole changeset. It does nothing when nothing is gated.
44
+
45
+ ### Fixed
46
+
47
+ - **A commit no longer dies mid-hook, and a fetch no longer dies mid-transfer.**
48
+ The idle timeout added alongside the funcname drivers applied to every git
49
+ call, including ones that are legitimately silent for a long time: git only
50
+ writes progress to a terminal, so a pre-commit hook running a test suite, or a
51
+ pack being negotiated, looks identical to a hang. Hook-running and remote
52
+ operations now get a much larger budget; local reads keep the short one. Both
53
+ are still bounded.
54
+ - **Content search no longer 500s on a huge matched line, a NUL, a newline, or a
55
+ very long query.** An over-budget result now returns what it found and says it
56
+ is partial; a query git cannot take literally is refused with a clear message
57
+ instead of surfacing as a server error. Searching also no longer needs git
58
+ 2.38 — the per-file cap is counted locally rather than passed to `git grep`.
59
+ - **diffstalker no longer displaces your own global gitattributes.** The
60
+ generated funcname defaults are only injected when you have no per-user
61
+ attributes of your own; previously they took priority over yours and silently
62
+ dropped every rule you had defined, textconv and merge drivers included.
63
+ - **The terminal UI no longer misses a file-list change that lands mid-fetch.**
64
+ A status change arriving while `/files` was in flight was swallowed by the
65
+ reply that overtook it, leaving the finder showing a list that predated it.
66
+ - **`/` is inert in views that have no filter.** It used to set invisible state
67
+ on Journal, History, Compare and Explorer, which then appeared as an
68
+ already-open filter on returning to Changes.
69
+ - **A hung git command can no longer wedge a request forever.** Every git
70
+ invocation now has an idle timeout — 10 seconds for local reads, 10 minutes
71
+ for anything running your hooks or talking to a remote. Without it a stuck
72
+ credential prompt or an unresponsive remote held its queued operation open
73
+ for the life of the process.
74
+ - **Ctrl+C now quits from the file finder too.** It was the one place in the
75
+ terminal UI where the universal exit did nothing: the finder's text input
76
+ takes over the keyboard and swallows control characters, so the app-level
77
+ binding never saw the key.
78
+ - **The terminal UI no longer refetches the whole file list on every watcher
79
+ tick.** A status change now just marks the list stale, and the finder fetches
80
+ it when it opens. On a busy tree that was one round-trip per tick for a list
81
+ nobody was looking at.
82
+ - **Pressing the finder key repeatedly on a slow daemon no longer stacks up
83
+ finder windows.** The modal slot is now claimed before the file list is
84
+ fetched, not after.
85
+ - **A file whose name contains blessed markup no longer corrupts the finder.**
86
+ Result text is escaped before it is drawn.
87
+ - **The version indicator no longer freezes at whatever was true when the tab
88
+ opened.** It was pulled only when the event stream connected, so a tab left
89
+ open on a second monitor — the way this is meant to be used — never asked
90
+ again and kept reporting "up to date" indefinitely. It now re-asks hourly
91
+ while connected, and stops when the stream closes. The daemon still caches
92
+ npm's answer for six hours, so this costs one local request an hour.
93
+ - **A tab now notices when the daemon under it was restarted on a new
94
+ version.** The web UI ships inside the daemon package, so the daemon's own
95
+ version identifies the bundle: when it changes, the page is older than the
96
+ API it is calling and the status bar says so and asks for a reload. It never
97
+ reloads on its own — this is a tool people leave open to keep looking at
98
+ something.
99
+
8
100
  ## [0.10.0] - 2026-08-03
9
101
 
10
102
  ### Added