Skip to content

fabioarnold/nfd-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nfd-zig

nfd-zig is a Zig binding to the library nativefiledialog which provides a convenient cross-platform interface to opening file dialogs on Linux, macOS and Windows.

This library has been tested on Windows 10, macOS 11.1 and Linux.

Usage

You can run a demo with zig build run. The demo's source is in src/demo.zig.

If you want to add the library to your own project...

  • Add the nfd dependency to your build.zig.zon
    .{
      .dependencies = .{
        .nfd = .{ .path = "libs/nfd-zig" }, // Assuming nfd-zig is available in the local directory. Use .url otherwise.
      }
    }
  • Add the import in your build.zig:
    const nfd = b.dependency("nfd", .{});
    const nfd_mod = nfd.module("nfd");
    exe.root_module.addImport("nfd", nfd_mod);

Screenshot

Open dialog on Windows 10

About

OS-native file dialogs on Linux, macOS and Windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •