Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds optional shada-file sourcing to the oldfiles provider: when configured, the provider normalizes and verifies the shada path, attempts to source it via Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant P as Oldfiles Provider
participant FS as Filesystem
participant NV as Neovim
U->>P: Request oldfiles (opts.shada_file?)
alt shada_file set
P->>FS: normalize & stat(shada_file)
FS-->>P: exists / not exists
alt exists
P->>NV: execute :rshada! <escaped path>
NV-->>P: vim.v.oldfiles updated
else not exists
P-->>U: warn "shada file not found"
end
end
P->>NV: read vim.v.oldfiles
NV-->>P: return oldfiles list
P-->>U: present results
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@lua/fzf-lua/providers/oldfiles.lua`:
- Around line 74-82: The shada file path is passed unescaped and uses vim.uv
directly; change the block that handles opts.shada so it checks existence with
the local uv alias (uv.fs_stat) and calls vim.cmd("rshada! " ..
vim.fn.fnameescape(file)) instead of concatenating the raw path, ensuring you
compute file = vim.fs.normalize(opts.shada) first and keep the existing
utils.warn message when the file is missing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 16fd87e3-0cb3-4208-bb77-5757099a5354
📒 Files selected for processing (2)
lua/fzf-lua/defaults.lualua/fzf-lua/providers/oldfiles.lua
985ac9e to
a041e79
Compare
Supply custom shada file to read using `:rshada!` with `opts.shada_file`, enables oldfiles from the cli.
a041e79 to
e1ba6c8
Compare
Supply custom shada file to read using
:rshada!(opts.shada), enables oldfiles from the cli.Summary by CodeRabbit
New Features
Documentation