Skip to content

Add native open and save file dialogs#179

Merged
treeform merged 1 commit into
masterfrom
agent/file-dialogs
Jul 11, 2026
Merged

Add native open and save file dialogs#179
treeform merged 1 commit into
masterfrom
agent/file-dialogs

Conversation

@treeform

Copy link
Copy Markdown
Owner

Summary

  • Adds openFileDialog and saveFileDialog with optional filters and default paths.
  • Implements native dialogs on macOS (NSOpenPanel/NSSavePanel), Windows (GetOpenFileNameW/GetSaveFileNameW), and Linux (zenity).
  • Emscripten stubs return empty string; includes examples/filedialogs.nim.

Test plan

  • Run nim c examples/filedialogs.nim and press O/S to open/save on macOS
  • Confirm cancel returns ""
  • Spot-check filters (*.txt, etc.)
  • Windows/Linux smoke if available

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@treeform
treeform merged commit aa5f066 into master Jul 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant