path, err = nfd.open(filter, init) -- lets you pick a single file
paths, err = nfd.openMany(filter, init) -- lets you pick multiple files
path, err = nfd.save(filter, init) -- lets you save to a single file
where:
- filter (string, optional): A weird DSL for filetypes you probably shouldn't emulate. it supports type subgroups (so like jpg files are "jpg,jpeg" and so on) but doesn't let you name them. defaults to all files.
- init (string, optional): The initial path the file chooser should suggest. Normally this is a directory, but for save() you can suggest an initial filename like "/my/path/untitled.file". defaults to the working directory.