neogit icon indicating copy to clipboard operation
neogit copied to clipboard

Suggestion: extend accessibility by improving mapping config

Open ttytm opened this issue 2 years ago • 1 comments

Instead of:

finder = {
    ["<cr>"] = "Select",
    ["<c-c>"] = "Close",
    ...
}
finder = {
    select = { "<cr>" },
    close = { "<c-c>" },
    ...
}

Allowing to set multiple mappings per action.

A change like this could be added as addition to the current config with a deprecation notice for the current values, the notice should turn into a warning after some weeks before the old config is removed.

ttytm avatar Nov 05 '23 23:11 ttytm

Custom description may be useful too.

finder = {
  select = { { "<CR>" }, "󰅴 Select item" }
}

Sorting in the help menu by description will improve readability - you can always specify some prefix or symbol to group together. diffview.nvim acts like this.

image

karmicdude avatar Dec 12 '23 20:12 karmicdude