Skip to content

feat: add ]f/[f navigation support in history mode#210

Merged
esmuellert merged 2 commits intomainfrom
dev/main
Jan 29, 2026
Merged

feat: add ]f/[f navigation support in history mode#210
esmuellert merged 2 commits intomainfrom
dev/main

Conversation

@esmuellert
Copy link
Owner

Summary

Add tab-wide ]f/[f keymaps that work from the diff pane in history mode, addressing user requests for keyboard navigation without switching focus.

Changes

  • Single-file mode (:CodeDiff history %): ]f/[f navigate between commits
  • Multi-file mode (:CodeDiff history): ]f/[f navigate between files within expanded commits

Files Modified

  • lua/codediff/ui/view/keymaps.lua - Smart navigation based on mode
  • lua/codediff/ui/view/init.lua - Keymap setup for history mode
  • lua/codediff/ui/history/render.lua - Added commit navigation functions
  • lua/codediff/ui/history/init.lua - Exported new functions
  • README.md, doc/codediff.txt - Documentation updates

Testing

All existing tests pass.

Closes #187
Closes #208

- Make ]f/[f work tab-wide from diff pane in history mode
- Single-file mode: navigate commits
- Multi-file mode: navigate files within expanded commits

Closes #187, closes #208
@esmuellert esmuellert enabled auto-merge January 29, 2026 03:45
@esmuellert esmuellert merged commit fc6157e into main Jan 29, 2026
13 checks passed
@fredrikaverpil
Copy link
Contributor

Unless I am missing something I still need to manually expand each commit so to move between files across commits?
I opened a POC on auto-expansions of commits here: #212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add next/prev file keymap support from history diff pane feat: add keybinds to go to next/prev commit in File History

2 participants