Add O command to open in the original window at BufExplorer launch.#128
Merged
jlanzarotta merged 2 commits intojlanzarotta:masterfrom Mar 24, 2025
Merged
Add O command to open in the original window at BufExplorer launch.#128jlanzarotta merged 2 commits intojlanzarotta:masterfrom
O command to open in the original window at BufExplorer launch.#128jlanzarotta merged 2 commits intojlanzarotta:masterfrom
Conversation
When launching BufExplorer via `:BufExplorer`, the original launch window is reused temporarily for BufExplorer; then, when pressing `<Enter>` to select a buffer, BufExplorer closes and the original launch window is used for the selected buffer. But when launching BufExplorer via `:BufExplorerHorizontalSplit` or `:BufExplorerVerticalSplit`, a new split is created for BufExplorer. If `<Enter>` is used to select a buffer, this buffer will be opened in the split created for BufExplorer. This new `O` command provides a way to first close the split that was created for BufExplorer at launch such that the selected buffer will be opened in the original window. This addresses issue jlanzarotta#55.
Owner
|
Let me pull all the changes and take a look. |
jlanzarotta
approved these changes
Mar 24, 2025
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.
Summary
Add new
Ocommand to open the buffer under the cursor into the window where BufExplorer was originally launched.This addresses issue Open buffer in previous buffer #55.
Details
When launching BufExplorer via
:BufExplorer, the original launch window is reused temporarily for BufExplorer; then, when pressing<Enter>to select a buffer, BufExplorer closes and the original launch window is used for the selected buffer.But when launching BufExplorer via
:BufExplorerHorizontalSplitor:BufExplorerVerticalSplit, a new split is created for BufExplorer. If<Enter>is used to select a buffer, this buffer will be opened in the split created for BufExplorer.This new
Ocommand provides a way to first close the split that was created for BufExplorer at launch such that the selected buffer will be opened in the original window.