diffs.nvim/lua/diffs
Barrett Ruth f948982848 fix(commands): handle :e on diffs:// buffers via BufReadCmd
Problem: running :e on a :Gdiff buffer cleared all content because
diffs:// buffers had no BufReadCmd handler. Neovim tried to read the
buffer name as a file path, found nothing on disk, and emptied the
buffer. This affected all three buffer creation paths (gdiff,
gdiff_file, gdiff_section).

Solution: register a BufReadCmd autocmd for diffs://* that parses the
URL and regenerates diff content from git. Change buffer options from
nofile/wipe to nowrite/delete (matching fugitive's approach) so
buffer-local autocmds and variables survive across unload/reload
cycles. Store old filepath as buffer variable for rename support.
2026-02-06 22:21:33 -05:00
..
commands.lua fix(commands): handle :e on diffs:// buffers via BufReadCmd 2026-02-06 22:21:33 -05:00
debug.lua fix(highlight): use hl_group instead of line_hl_group for diff backgrounds 2026-02-06 18:31:10 -05:00
diff.lua fix(ci): typing 2026-02-06 21:33:55 -05:00
fugitive.lua feat(fugitive): line position tracking for keymaps 2026-02-05 00:27:35 -05:00
git.lua feat(git): add index and working tree content retrieval 2026-02-04 22:23:09 -05:00
health.lua feat(highlight): add character-level intra-line diff highlighting 2026-02-06 13:53:58 -05:00
highlight.lua fix(highlight): use hl_group instead of line_hl_group for diff backgrounds 2026-02-06 18:31:10 -05:00
init.lua feat(config): replace algorithm 'auto'/'native' with 'default'/'vscode' 2026-02-06 21:23:40 -05:00
lib.lua feat(highlight): add character-level intra-line diff highlighting 2026-02-06 13:53:58 -05:00
log.lua feat: add :Gdiff, :Gvdiff, :Ghdiff commands for unified diff view 2026-02-04 19:52:17 -05:00
parser.lua fix(parser): detect filetype from file content (shebang/modeline) 2026-02-05 01:08:43 -05:00