create buffers with different names to avoid swap clashing in Vim
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 818
- Forks
- 249
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 30
Description
because Reedline always creates the same buffer with control + o in Nushell, i end up in an annoying situation in Neovim where the two buffers are in conflict because opened at the same time in two instances of Neovim...
this is because of the swap mechanism 🤔
i propose to create different buffers each time, e.g. in /tmp/reedline_buffers/{some_random_name}.nu instead of the current /tmp/reedline_buffer.nu defined in src/engine.rs 😋
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/engine.rs around line 1524, where the current /tmp/reedline_buffer.nu path is defined, and trace how control+o creates and opens the buffer. Done means successive buffers use distinct temporary names so simultaneous Neovim instances do not clash through swap files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100