diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-19 10:51:32 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-19 10:51:32 +0300 |
| commit | 4c057d02a11a81579836e451e74c0e7ebb1649ea (patch) | |
| tree | 8b97a063ae6488628386f47e8fea874adaa9d424 /README.md | |
| parent | 8ec2807ece746b001e3d64a1db990ce239a98801 (diff) | |
Support "@ path" file reference (space after @) when file exists
Extend the `o` open-file feature so a reference written with a space
after the @ ("@ path/to/file.txt") is also recognized. Because "@ word"
is common in prose (e.g. "meet @ 5pm"), the spaced form is only treated
as a file reference when the resolved path actually exists on disk. The
original no-space "@path" form keeps precedence and its existing
behavior (opened as-is, so a not-yet-existing file can be created).
Adds fileRefSpacedRegex, a fileExists guard, and unit tests covering the
existing/missing/prose/precedence cases.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions
