You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.
Allow for duplicate file-types in fmt_table by not assigning the key like fmt_table["filetype"] = "value" but instead using table.insert(fmt_table, values). Reading the table will require nested loops, as doing this will mean we will have a potentially "table in a table in a table" as a worse-case scenario.
Reasoning: Some people might prefer one formatter over another, so this will allow conflicting formatters to exist in the same table, and also allow us to worry less over potential conflicts
The text was updated successfully, but these errors were encountered:
Fixes#8 and fixes#9
By not using the filetype as the key, we can have duplicate supported filetypes. This makes adding new formatters as painless as possible.
I've also completely revamped the list command to show as a table in the log, with the current on/off status.
PS: the 'fmt' command now runs the formatter, and 'fmt list' is to show the available formatters.
Allow for duplicate file-types in
fmt_table
by not assigning the key likefmt_table["filetype"] = "value"
but instead usingtable.insert(fmt_table, values)
. Reading the table will require nested loops, as doing this will mean we will have a potentially "table in a table in a table" as a worse-case scenario.Reasoning: Some people might prefer one formatter over another, so this will allow conflicting formatters to exist in the same table, and also allow us to worry less over potential conflicts
The text was updated successfully, but these errors were encountered: