Skip to content

Menu Namespaces

Linwei edited this page Jan 18, 2020 · 4 revisions

You can have multiple menu namespaces at the same time, manipulate them with:

" change current namespace to abc
call quickui#menu#switch('abc')

" reset current namespace (abc)
call quickui#menu#reset()

" populate the menu in current namespace (abc)
call quickui#menu#install(...)


" change current namespace to def
call quickui#menu#switch('def')

" reset current namespace (def)
call quickui#menu#reset()

" populate the menu in current namespace (def)
call quickui#menu#install(...)


" F7 to open the menu in namespace abc
noremap <F7> :call quickui#menu#open('abc')<cr>

" F8 to open the menu in namespace def
noremap <F8> :call quickui#menu#open('def')<cr>

The default menus is located in the system namespace.

Clone this wiki locally