-
Notifications
You must be signed in to change notification settings - Fork 54
Feat/implement buffers support #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feat/implement buffers support #180
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a buffer picker feature to fff.nvim, providing a fast way to switch between open buffers similar to fzf.vim's :Buffers command. The implementation includes buffer tracking, fuzzy filtering, preview functionality, and comprehensive documentation.
Key Changes:
- New buffer picker module with MRU (most recently used) sorting and buffer management
- User command
:FFFBuffersfor invoking the buffer picker - Documentation updates in README.md and help files explaining the new feature
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| lua/fff/buffers.lua | New 882-line module implementing the buffer picker UI, buffer tracking, filtering, and management functionality |
| lua/fff/main.lua | Added buffers() function to expose the buffer picker in the main API |
| plugin/fff.lua | Registered :FFFBuffers command for buffer picker invocation |
| README.md | Added buffer picker documentation including features, keybindings, and usage examples |
| doc/fff.nvim.txt | Updated help documentation with buffer picker section and command reference |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…into feat/implement-buffers-support
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
The function get_icon_display does not exist in the icons module. Fixed typo to use the correct function name get_icon.
Thank you for the amazing plugin. @dmtrKovalenko. I just switched to it from fzf.nvim yesterday. Honestly, the speed difference in amazing. One thing that I frequently used and missed here was
:Buffersalternative in here. I had a keybinding in my lua/vim config that would open existing buffers. Hence, I implemented this with some AI assistance as I am currently at my day job and didn't had enough time to go through it all.I tried my fork on local and it just works beautifully.
Please let me know if you want me to update some code or make some other changes and I will love to improve the code.
Thank you.