-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Re-structure repository and potentially include .tmTheme
files
#1
Comments
Thank you for bringing this issue here and responding, much appreciated! @sgoudham I agree with your point that using From Yazi's position, I can totally accept that these files are not always the latest, and in fact, always being the latest might be problematic. This is also one of the reasons I downloaded them to Again, thank you for your response, giving me the opportunity to explain my position and exchange viewpoints! |
Yes, you can be a maintainer! Happy to make that happen. Also, I have an idea for a potential solution... we manually copy the |
Thanks for replying, we can have multiple maintainers yup! @sxyazi In response to files not being the latest and mismatch of versions, I'm a bit confused here because I thought the I'd like to avoid the introduction of CI here @uncenter |
When thinking about possible approaches to For repositories that are sufficiently complex (e.g ctp/vscode), we'd expect some sort of distribution system for the plugin/extension/addon that doesn't involve manually copying files around in some capacity. This inherently means you are not cloning repositories yourself, unless you plan on developing the port. On the flip side, for projects that are relatively simple (e.g ctp/yazi), the primary workflow is to copy a few files yourself. I personally do not see a usecase where people are cloning the entire repository to take <=3 files out of it? With this in mind, a submodule doesn't seem insane for this purpose. GitHub will allow you to jump to the submodule'd directory to copy from. Even if we don't use a submodule, this should be similar for other embedding approaches. |
I think the issue here is not what Yazi did, but what Yazi didn't do, while For example, I have been trying to keep up with |
Hmmm that's quite interesting, is If This is really interesting though, thanks for sharing and updating my understanding of how the files are used across these applications. It's definitely a headache for an organisation like Catppuccin where we want to prevent duplication 😅 |
Maybe this is why Sublime Text switched to another format, I don't know. 😄 But currently, the Rust ecosystem I can only use it. I think if catppuccin doesn't use these proprietary color values in tmTheme files, there is no such problem, but this is also what I am worried about, because it is in the
The release cycle here refers to the "feature" release cycle of Yazi, as mentioned above, ANSI is only supported from Yazi v0.2.0, Yazi cannot have the features supported by Yes, I can manually pin them, but still need to manually test whether they work properly in Yazi after each change of these tmTheme files (or after problems occur?), from the workload, it seems that there is no difference between directly copying them. |
I'd be willing to move forward with the switch to flavors by building a CI workflow to generate the themes using Whiskers, copy the license files, fetch/pull in the tmtheme files, etc but I really don't like the mandating of only PNG files for preview images. Any chance that could change @sxyazi? Yazi supports WebP and from what I can gather it seems like you are looking at making a theme viewer/manager inside Yazi which would require viewing these files (readme, license, previews) and seeing as Yazi has no issues with WebP I don't get the requirement. |
Someone mentioned https://vimcolorschemes.com here and I thought that was the idea... But now I realize it wasn't a comment by @sxyazi so it might be just a random idea. Either way, I'm not sure I understand the desire to use Maybe this restriction could be lifted? |
Background
This issue assumes the context of the comments made in issue: catppuccin/catppuccin#2278 (comment)
I'm continuing the conversation in here to avoid valuable information being buried in a closed issue.
Description
Thanks for giving us a heads up! In regards to directory restructure, I think it then makes sense to have something like the following:
I understand that you'd like yazi themes to include the
.tmTheme
files in the same directory since it would be invalid and cause further inconvenience for the user. One potential "solution" is via git submodules if @uncenter is happy with managing the additional complexity. The.tmTheme
files could be git symlinked into each directory, meaning the user could clone withgit clone --recurse-submodules
and then copy the files? However, I don't really believe this is worth it.Personally, I still think its fine including the
theme.toml
files and telling users in the README to go download the.tmTheme
file elsewhere, of course not ideal in yazi's case but I'd really like to avoid the duplication of files in the organisation.I really appreciate how much you care about the theme, and I appreciate you being involved in this discussion. When it comes to decisions like the above, I'm looking at it from the perspective of the organisation as a whole.
Duplication of files ultimately harms the organisation overall as files may get updated in one place and not the other, and I'm okay with slightly inconveniencing the user's installation process in return for no duplicated files across repositories. I hope you can continue to understand my position on this.
The text was updated successfully, but these errors were encountered: