[WIP][RFC] Open tmp window: handle case where tmp window is prev window #488
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.
This is my first ever contribution to an nvim plugin, so take everything with a grain of salt.
This PR fixes an issue when the
win_split_mode
is set such that no new window is opened, but instead the agenda/capture buffer are opened in the current window. See the following excerpt of my org config:There is a problem when "finalizing" the capture (with
<C-c>
by default), namely that it tries to close the temporary window. But a temporary window had never been opened.I wonder if this PR is at all going in the right direction. I haven't run the test suite yet as I haven't yet learned how that works. I'll hopefully get to it in the next days unless you tell me now that this PR doesn't make sense.