-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: make UI extensions easier #1257
Merged
Merged
Conversation
This file contains 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
sxyazi
changed the title
feat: make UI extensions easier
feat!: make UI extensions easier
Jul 5, 2024
sxyazi
changed the title
feat!: make UI extensions easier
[WIP] feat!: make UI extensions easier
Jul 5, 2024
sxyazi
changed the title
[WIP] feat!: make UI extensions easier
feat!: make UI extensions easier
Jul 12, 2024
sxyazi
added a commit
that referenced
this pull request
Jul 12, 2024
sxyazi
added a commit
to yazi-rs/plugins
that referenced
this pull request
Jul 12, 2024
sxyazi
added a commit
that referenced
this pull request
Jul 12, 2024
sxyazi
added a commit
that referenced
this pull request
Jul 13, 2024
sxyazi
added a commit
that referenced
this pull request
Jul 13, 2024
sxyazi
added a commit
that referenced
this pull request
Jul 13, 2024
sxyazi
added a commit
to yazi-rs/plugins
that referenced
this pull request
Jul 13, 2024
dedukun
added a commit
to dedukun/relative-motions.yazi
that referenced
this pull request
Jul 14, 2024
dedukun
added a commit
to dedukun/bookmarks.yazi
that referenced
this pull request
Jul 14, 2024
This was referenced Jul 15, 2024
Hi @sxyazi , |
@saumyajyoti Raised a PR saumyajyoti/omp.yazi#1 |
Rolv-Apneseth
pushed a commit
to Rolv-Apneseth/starship.yazi
that referenced
this pull request
Jul 15, 2024
saumyajyoti
added a commit
to saumyajyoti/omp.yazi
that referenced
this pull request
Jul 15, 2024
feat: adapt to sxyazi/yazi#1257
Thanks @sxyazi . the issue is resolved now. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 PR redesigns the UI rendering architecture. Each component is now tab-specific, which will allow for easier implementation of dual pane through plugins in the future.
The linemode has been abstracted into a separate component, enabling users to extend it more easily.
Entity
,Linemode
, andStatus
components now have newchildren_add
andchildren_remove
methods, allowing developers to add other subcomponents to them based on presets, and this also makes multiple linemodes possible (e.g., displaying both file permissions and modification time).Manager
,Folder
, andFile
componentrender()
methods no longer take any parametersStatus.style()
has been changed toStatus:style()
This mainly affects users who use the "full border" on the tips page - it's now a standalone plugin and no longer needs manual patching. Check it out at https://github.com/yazi-rs/plugins/tree/main/full-border.yazi.
And here is an example of the linemode and status bar extension, #1288 (comment)