kyoheiu / felix

tui file manager with vim-like key mapping
https://kyoheiu.dev/felix/
MIT License
692 stars 24 forks source link

Unable to edit files in a symlinked folder on Windows #267

Closed RioNight closed 5 months ago

RioNight commented 6 months ago

I am using Windows + Wezterm + bash with the default configuration of fx.

Here is the directory in fx: image

symlinked-bash is a symlinked folder. It links to new-dir: image (See the symlinked-bash -> new-dir.) symlinked-bash was created in bash using ln -s new-dir/ symlinked-bash. Windows Developer Mode had to be enabled and the follwing had to be put in ~/.bashrc: export MSYS=winsymlinks:nativestrict.

new-dir: image

If I press l on symlinked-bash, the path at the top gets prefixed with \\?\. It looks almost like a UNC path: image

If I press l on new-dir, the path at the top is fine: image

If I press <cr> on symlinked-bash, this occurs. The file is empty and the path at the bottom is messed up. image

If I press <cr> on new-dir, everything works normally.

kyoheiu commented 5 months ago

Thank you for the report. I hope this is fixed by https://github.com/kyoheiu/felix/commit/04b84264a89b5772abc165142f534d072ddf839d . The new version will be released soon.

kyoheiu commented 5 months ago

Fixed in v2.12.0.