ibhagwan / fzf-lua

Improved fzf.vim written in lua
GNU Affero General Public License v3.0
2.17k stars 142 forks source link

Feature: Navigation with <C-d> and <C-u> #1444

Closed hexcowboy closed 4 days ago

hexcowboy commented 4 days ago

Have you RTFM'd?

Feature Request

I'm trying to navigate my fzf windows with <C-d> and <C-u> but they don't appear to do anything.

ibhagwan commented 4 days ago

This isn’t a feature request, not even sure what you mean… read the docs/wiki and you’ll figure it out.

hexcowboy commented 4 days ago

It's a normal vim motion to use <C-u> and <C-d> to navigate. I can map them like this but it would be nice to have them as default behavior.

require("fzf-lua").setup({
    keymap = {
        fzf = {
            ["ctrl-d"] = "half-page-down",
            ["ctrl-u"] = "half-page-up",
        },
    },
})
ibhagwan commented 4 days ago

Fzf uses readline defaults, for example, ctrl-e goes to end of line, I have no intentions to change the defaults after almost 3 years that the plug-in exists, the configuration options are there for a reason.