liuchengxu/vim-which-key

Feature request: sort by config file

v6cc opened this issue · 3 comments

v6cc commented

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Want to sort by the name in config file

Describe the solution you'd like
A clear and concise description of what you want to happen.

" f for fzf
let g:which_key_map.f = {
      \ 'name' : '+fzf',
      \ 'f' : [':Files',    'Files'],
      \ 'F' : [':Filetypes',    'File types'],
      \ 'm' : [':Marks',    'Marks'],
      \ 'M' : [':Maps',     'Normal mode mappings'],

always want to show f , F , m , M ....

v6cc commented

if set

let g:which_key_vertical = 1

it use space more than they need , can I set it to auto fit it need ?

v6cc commented

a

Sort by the order of the defined key.

It's unsupported as you can't sort the Dict by the order of key defined.