Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Add an option to copy contents from a file to another #31

Open
redsigma opened this issue Dec 15, 2022 · 0 comments
Open

Add an option to copy contents from a file to another #31

redsigma opened this issue Dec 15, 2022 · 0 comments

Comments

@redsigma
Copy link
Contributor

redsigma commented Dec 15, 2022

The behavior should work as follow

Let's say you have an extra called Hide Library News
If the user chooses to install this extra then this extra will copy the contents from a file (mentioned in the manifest file) to another file (mentioned again in the manifest file).


The syntax in the manifest could be like this:

Let's take for example the last line which is
"Big Picture Button + Green Notification Icon";"bigpic_n_greenicon";"big_picture_button,greenicon";"Navigation Bar"

If we add this new option then this line would look like

"Big Picture Button + Green Notification Icon";"bigpic_n_greenicon";"big_picture_button,greenicon";"Navigation Bar";"file_to_copy_from.txt";"resource/webkit.css"


Now the line for the actual extra would actually be this

"Hide Library News";"hide_library_news";"";"Client Windows";"file_to_copy_from.txt";"resource/webkit.css"
And this will copy the contents from file_to_copy_from.txt and append them to the resource/webkit.css file

PS: maybe in the future a rework for the manifest file could be made so it uses yaml syntax

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant