bug: FzfxFileExplorer -> Cannot cd into a directorie with ALT-L on mac
nstirnemann7 opened this issue · 4 comments
Its how the title says, if I press ALT-l nothing happens, if I press ALT-L = Ò, that symbol appears, the easy solution would be to change the keymaps, but i dont find in the config how to change the default keymaps for FzfxFileTree
![image](https://private-user-images.githubusercontent.com/104640386/289607374-59117ea0-7b33-4b31-a6dc-c0224d80b01c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAxMzU1NTksIm5iZiI6MTcxMDEzNTI1OSwicGF0aCI6Ii8xMDQ2NDAzODYvMjg5NjA3Mzc0LTU5MTE3ZWEwLTdiMzMtNGIzMS1hNmRjLWMwMjI0ZDgwYjAxYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMxMVQwNTM0MTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MWFhZTQ4M2Y2Y2ExNDhiYTcxMzA1MDdkMzZjOTAzMDliMDQyYTcyZjFlMjVlYjdhNWRlMGRjYjY2NmQxMTJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.e3bAPfKd7EpyauKVaORB46yKfjI-5e4FNNXnxm_3Sm0)
After pression ALT-SHIFT-L
![image](https://private-user-images.githubusercontent.com/104640386/289607527-0d91ab9d-8efb-4f2a-9a3a-83d768476689.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAxMzU1NTksIm5iZiI6MTcxMDEzNTI1OSwicGF0aCI6Ii8xMDQ2NDAzODYvMjg5NjA3NTI3LTBkOTFhYjlkLThlZmItNGYyYS05YTNhLTgzZDc2ODQ3NjY4OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMxMVQwNTM0MTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNzhhMjFlMDZjOGQ3ZWJjYTY5MTJlOWI5Y2Q5N2JhMjAwMTk2OGZjMWQxZGFmODk1NzIzN2FjNTM1ZTFjYjcyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.4qLBgU2YyoCV66QqjACucgictiq22QjR25PW4te-sUI)
After pressing ALT-l
![image](https://private-user-images.githubusercontent.com/104640386/289607670-3d5cffd9-8437-4f14-ba32-c79a68485910.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAxMzU1NTksIm5iZiI6MTcxMDEzNTI1OSwicGF0aCI6Ii8xMDQ2NDAzODYvMjg5NjA3NjcwLTNkNWNmZmQ5LTg0MzctNGYxNC1iYTMyLWM3OWE2ODQ4NTkxMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMxMVQwNTM0MTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00M2JjYjUwYTUxNmIyYjZlMTAyOGM2MjM1MjI3NjJkYTdjNWEwZjVhMWZiMjliODE5YmVkN2YxYWE0N2NjYTE2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.yTO7AgTyj241s1XmP-bIhTH3CSJt8NHcx1TV8t0Uynw)
System : Latest Macos
Using : lsd in replacement of ls
Neovim Version : nightly
Plugin Manager: Lazy
Config for fzxf: don't pass any opts
On WSL works as intended
hi @nstirnemann7, I am not in front of my keyboard now, will check later.
hi @nstirnemann7 , you can use below config (use CTRL-L
to cd into, use CTRL-H
to go upper):
require('fzfx').setup({
file_explorer = {
interactions = {
cd = {
key = "ctrl-l",
},
upper = {
key = "ctrl-h",
},
},
},
})
Based on different terminal app (iterm2 on macOS, Windows Terminal on Windows, gnome terminal on ubuntu gnome, and others like wezterm, alacritty, kitty), some ctrl
/alt
keys could be override by terminal app.
(It's true that this plugin's configs
is quite complicated), you can refer to:
fzfx.nvim/lua/fzfx/cfg/file_explorer.lua
Lines 288 to 299 in be08a30
hi @nstirnemann7 , you can use below config (use
CTRL-L
to cd into, useCTRL-H
to go upper):require('fzfx').setup({ file_explorer = { interactions = { cd = { key = "ctrl-l", }, upper = { key = "ctrl-h", }, }, }, })Based on different terminal app (iterm2 on macOS, Windows Terminal on Windows, gnome terminal on ubuntu gnome, and others like wezterm, alacritty, kitty), some
ctrl
/alt
keys could be override by terminal app.(It's true that this plugin's
configs
is quite complicated), you can refer to:fzfx.nvim/lua/fzfx/cfg/file_explorer.lua
Lines 288 to 299 in be08a30
This Works! Thanks! I assume this problem happen in the mayority of 60% percentege keyboards, where random combinations give you symbols or glyphs because the keyboard is too short (ALT-l = ¬) (ALT-h = ˙)
Resolved!