Open Hatbringer opened 2 months ago
Sure, I will add this in the next update
Import from Wheel of Names would also be really useful and should be trivial to implement.
They use standard JSON, and the only relevant part for Picker would be entries
object, as it contains the list of things.
Here's a basic parser:
import json
entries: list = []
with open("test.json", "r") as f:
data = json.load(f)
for entry in data["entries"]:
entries.append(entry["text"])
print(entries)
And a test file: test.json
I added the ability to open a text file in the newest version (v1.1.0), I might add importing from other websites in a future update
The ability to export and import items from a text file would be highly useful.