sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.

Home Page:https://yazi-rs.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong folder for Windows in keymap preset

8LWXpg opened this issue · comments

What system are you running Yazi on?

Windows

What terminal are you running Yazi in?

Windows Terminal 1.20.11271.0

Did you try the latest code to see if this problem got fixed?

Not tried, and I'll explain why below

Describe the bug

The config and temp directory is different on Windows.

# Goto
{ on = [ "g", "h" ], run = "cd ~", desc = "Go to the home directory" },
{ on = [ "g", "c" ], run = "cd ~/.config", desc = "Go to the config directory" },
{ on = [ "g", "d" ], run = "cd ~/Downloads", desc = "Go to the downloads directory" },
{ on = [ "g", "t" ], run = "cd /tmp", desc = "Go to the temporary directory" },
{ on = [ "g", "<Space>" ], run = "cd --interactive", desc = "Go to a directory interactively" },

Expected Behavior

config should be ~/AppData/Roaming/yazi/config and temp should be ~/AppData/Local/Temp on Windows

Configuration

No response

Anything else?

No response

Hi, cd ~/.config here doesn't refer to Yazi's configuration but rather the configuration for all software. AFAIK, some Windows software does store their configuration files in ~/.config, so I don't think this is an issue.

Regarding /tmp, it is indeed a directory that doesn't exist on Windows. I'll create a PR to remove it – I want to try and find the largest common subset between Unix and Windows.

I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.