sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
16.16k stars 377 forks source link

Use XDG paths for Goto. #1878

Closed voronind-com closed 3 hours ago

voronind-com commented 5 hours ago

Please describe the problem you're trying to solve

Current Goto definitions are as follows: { on = [ "g", "d" ], run = "cd ~/Downloads", desc = "Goto ~/Downloads" },. Which is.. something, I guess. Why not use much more portable approach of cd $XDG_DOWNLOAD_DIR? Same goes for ~/.config.

Would you be willing to contribute this feature?

Describe the solution you'd like

Use XDG variables.

Additional context

I tested them, they work as expected.

Validations

sxyazi commented 3 hours ago

Closing with https://github.com/sxyazi/yazi/pull/1879