summaryrefslogtreecommitdiff
path: root/Taskfile.yaml
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-19 10:42:59 +0300
committerPaul Buetow <paul@buetow.org>2026-07-19 10:42:59 +0300
commit9c87952fbae0b84cde3802086eed88f3a0c51051 (patch)
tree0c0b0994183e4bb871a9c78b280fb5c7e90d3cb8 /Taskfile.yaml
parentd4f446c82281e5941e3436b207c59f6eca2e16f5 (diff)
bv0: open @file references from the 'o' key in $EDITOR
The 'o' key now opens an @path/to/file.txt reference in $EDITOR in the foreground when the task carries no URL. URLs keep precedence so the original open-URL behavior is unchanged when both are present. - Add fileRefRegex plus extractFileRef/findTaskFileRef/resolveFileRefPath helpers: scan description then annotations, expand a leading ~, and anchor on (^|\s) so email @host parts are not treated as references. - openFileInEditorCmd mirrors launchDescriptionEditorCmd, using tea.ExecProcess to suspend the TUI, run the editor on the real terminal, and restore the TUI on exit. - Refactor handleOpenURL into small helpers to stay under the size limit. - Add fileref_test.go covering parsing, ~ expansion, annotation fallback, and URL precedence. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'Taskfile.yaml')
0 files changed, 0 insertions, 0 deletions