Skip to content
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

Allow selecting from a list of user formulas #123

Closed
kovzol opened this issue Jan 6, 2020 · 2 comments · Fixed by #200
Closed

Allow selecting from a list of user formulas #123

kovzol opened this issue Jan 6, 2020 · 2 comments · Fixed by #200

Comments

@kovzol
Copy link
Contributor

kovzol commented Jan 6, 2020

This would be useful for new-comers to learn the syntax of user formulas, and also to provide more examples immediately. Also, the list could be saved for the next startup of XaoS as well. See http://rtzme.sourceforge.net/english.php for some idea how this could be implemented.

@kanurag94
Copy link
Member

There are two approaches on how to implement this:

  1. Use a .useformulasXaoS file and save all formulas there separated by a new line in format as
formula1 forumula1_name
formula2 formula2_name
  1. Create individual files for formula in a directory user_formulas and save them in a format as
Name: Formula_name
Created_on: 21/09/2020
Author: Superman
# Formula starts after this line
myformula keeps on going and
extends to multiple lines

I am inclined towards approach 2 considering we may have support for multi line formulas someday.

What do you think?

@kovzol
Copy link
Contributor Author

kovzol commented Aug 17, 2020

I think currently it's OK to have just a list of user formulas saved in the ~/.config/XaoS\ Project/XaoS.conf file (see QSettings), maybe just an array of strings and nothing more. Later we can do something better by sharing formulas with other users, but for that we need much more.

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

Successfully merging a pull request may close this issue.

2 participants