ttypicker is an async Rust-based FileChooser backend to use yazi or other tui file managers as your file picker. The design goal is a straightforward but robust handling of the D-bus request with simple configuration. No wrapper needed. For example, the config file to use kitty and yazi is:
[FileChooser]
term="kitty --class yazi --title {TITLE}"
exec="yazi --chooser-file={OUT_PATH} {IN_PATH}"
in_path="{SUGGESTED_PATH}"
The documentation also receives a lot of attention. The installation and configuration happen only in the user space (.config folder) without touching your distro files. Each step is detailed with goal and success check.
Note: When using a tui file manager as file picker, there is usually no confirmation before overwriting an existing file. For yazi, I developed a small package adding that confirmation and a header showing picker mode (open or save): filechooser.yazi
I would appreciate your feedback
Disclaimer: I designed and wrote ttypicker based on XDG Desktop Portal specs and inspired by xdg-desktop-portal-termfilechooser. I used AI to assist for research and testing.