-
Notifications
You must be signed in to change notification settings - Fork 76
feat(main): add option to sync current editable buffer with parent buffer - #192
Open
tyzerrr wants to merge 2 commits into
Open
feat(main): add option to sync current editable buffer with parent buffer #192tyzerrr wants to merge 2 commits into
tyzerrr wants to merge 2 commits into
Conversation
@github-actions
github-actions
Bot
added
the
size/m
Medium PR (<50 lines changed)
label
Dec 29, 2025
@tyzerrr
tyzerrr
changed the title
(削除) feat: Add option to sync current editable buffer with parent buffer (削除ここまで)
(追記) feat(main): Add option to sync current editable buffer with parent buffer (追記ここまで)
Dec 29, 2025
@tyzerrr
tyzerrr
changed the title
(削除) feat(main): Add option to sync current editable buffer with parent buffer (削除ここまで)
(追記) feat(main): add option to sync current editable buffer with parent buffer (追記ここまで)
Dec 29, 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.
This pull request introduces a new feature that keeps the parent window's buffer in sync with the zen window in Zen Mode, which is particularly useful for preserving buffer state (such as LSP) when switching buffers. The implementation includes a new configuration option, supporting logic, and event-driven synchronization.
Feature: Parent Buffer Synchronization
sync_parent_bufferconfiguration option (enabled by default) to the Zen Mode setup, allowing users to keep the parent window's buffer synchronized with the zen window.sync_parent_buffer_enabledflag and related logic inview.luato control whether buffer synchronization is active.BufEnterto trigger buffer synchronization between the zen window and its parent window.sync_parent_bufferfunction inview.luato perform the actual buffer synchronization when appropriate.sync_parent_bufferfunction inplugins.luato allow toggling the synchronization feature programmatically.