Repository navigation
feat(buffers): add vim buffer command parity - #300
Merged
Merged
Conversation
fcoury-oai
added a commit
that referenced
this pull request
Aug 21, 2026
* feat(buffers): add unnamed buffer creation * feat(buffers): add vim buffer command parity (#300)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#299 adds
:enew, but unnamed buffers still lack the surrounding Vim workflow for opening splits, listing and selecting buffers, assigning filenames, and saving drafts. Existing name-based picker selection also cannot distinguish multiple[No Name]buffers, and mistyped colon commands can expand into unrelated destructive actions.Stacked on #299.
:new,:vnew, andCtrl-w nfor fresh unnamed buffers in splits, including optional file paths.:b/:buffer,:b#,:bnext,:bprevious, and:ls/:buffers/:fileswith stable buffer numbers, alternate-buffer selection, and ambiguity checks.:file {path}to name a buffer without writing and:saveas {path}to write it under a new name; include filename completion for the new commands.:wqshortcut.How to Test
:newand:vnew, then:ls; confirm each new split has its own numbered[No Name]buffer. Switch with:b <number>and:b#, and confirm the buffer picker opens the selected unnamed buffer rather than another buffer with the same display name.:file notes.txt; confirm the buffer is named without creating a file or clearing its unsaved changes. Run:saveas notes.txt; confirm the file is written and the buffer becomes clean.:enewwor:lss; confirm the command is rejected and the unsaved buffer, disk contents, and window layout remain unchanged.cargo test --test editing bufferandcargo test --lib buffer_picker_lists_and_opens_existing_buffers; expect the buffer-command and duplicate-unnamed-picker regressions to pass.