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

Change the way config files are parsed #101

Closed
F0xedb opened this issue Mar 9, 2021 · 1 comment
Closed

Change the way config files are parsed #101

F0xedb opened this issue Mar 9, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@F0xedb
Copy link
Member

F0xedb commented Mar 9, 2021

Currently, we need to suffix the config file with numbers e.g. float_1 and float_2 which is rather bizarre.

It would be better and more useful (both from a dev and a user perspective) to support a config as such:

float = "a"
float = "b"
float = "c"

And generate the following lua representation:

local config_value = config.parse("your_config_file")
for floating in config_value["float"] do
    print(floating)
done

Which prints out all values (a, b, c)

By treating every unique element in the config as a list we can omit manual numbering (which is annoying when reordering things like plugins)

@F0xedb F0xedb added the enhancement New feature or request label Mar 9, 2021
@F0xedb F0xedb self-assigned this Mar 9, 2021
@F0xedb
Copy link
Member Author

F0xedb commented Mar 16, 2021

This should be fixed

@F0xedb F0xedb closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant