linrongbin16 / fzfx.nvim

A Neovim fuzzy finder that updates on every keystroke.
https://linrongbin16.github.io/fzfx.nvim/
MIT License
122 stars 5 forks source link

bug: FzfxFileExplorer -> Cannot cd into a directorie with ALT-L on mac #490

Closed nstirnemann7 closed 9 months ago

nstirnemann7 commented 9 months ago

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

After pression ALT-SHIFT-L

image

After pressing ALT-l

image

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

linrongbin16 commented 9 months ago

hi @nstirnemann7, I am not in front of my keyboard now, will check later.

linrongbin16 commented 9 months ago

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: https://github.com/linrongbin16/fzfx.nvim/blob/be08a3006551843cf273184c89233e5114d8a21b/lua/fzfx/cfg/file_explorer.lua?plain=1#L288-L299

nstirnemann7 commented 9 months ago

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:

https://github.com/linrongbin16/fzfx.nvim/blob/be08a3006551843cf273184c89233e5114d8a21b/lua/fzfx/cfg/file_explorer.lua?plain=1#L288-L299

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 = ˙)

nstirnemann7 commented 9 months ago

Resolved!