-
Notifications
You must be signed in to change notification settings - Fork 71
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
Consider using include syntax #177
Comments
Whoa, I didn't even know about the |
this sounds good, have a question. do you know if you can use more than one Ex.
|
You can use more than one import, and in a quick test I believe it works by merging, so:
Would result in using
Hm. Well, a first quick idea (and note: I haven't explored how this project is currently functioning nor have I given my idea much thought):
I just did a test where I modified a property in an imported file and when saving, alacritty doesn't detect this. It only detects changes to |
Yep, i like the idea of having a file and change the content. Could you please verify if applying your changes the preview works as currently is working? |
What is it you'd like me to verify exactly? I've minimally verified this concept, using a alacritty_example.mp4 |
Unless you meant "applying your changes" as in make the functional changes to this project, I don't think I'd have time for that currently. Maybe in time though, it's good we're talking about it and making notes |
no, I didn't mean applying the changes, hahaha, it could take time, yes, I wanted to see how it could work as you demonstrated it in the video record. the touch alacritty.yml action makes me think if that will work or not. 🤔 |
We can still do it. The project is already using
Little example from this video: #!/usr/bin/env node
const config = "/home/jtm/.config/alacritty/alacritty.yml";
const fs = require('fs');
const fd = fs.openSync(config);
console.log('before', fs.statSync(config).mtime);
fs.futimesSync(fd, new Date(), new Date());
console.log('after', fs.statSync(config).mtime); So in the case of the $USER already having the alacritty_toucher.mp4 |
hehe yeah I didn't really think you'd have meant that, but also, it might not take much time! Not if we iron out a definitive plan forward :P |
Something that makes me be worried about it's when the user is picking another theme, since it's an async process it could cause issues, it will be great if you can verify that as well. After that we can ask the creator of the package for his point of view. |
I see, yeah I can investigate that and possibly even change the implementation idea around. |
btw, I may say this before but from my side, I like the idea, it seems to be secure because that way we won't need to touch the alacrity.yml a lot. and may not cause issues there, also we can add comments in the |
I'll be honest, this is what I thought this utility would do as it is a lot easier to manage for the user. I use Nerd Fonts for instance, which I saw disappear because of the color change. I can work on this and submit a pull request if you guys want? |
hey, @tahir-hassan sure thing! please do we appreciate it |
Instead of adding many configurations to the user's alacritty.yml, you could simply append (or replace) an
include
:Making a 1 line change seems pretty solid. Maybe you've considered and want the current solution to be standalone (not requiring other files).
The text was updated successfully, but these errors were encountered: