skywind3000/vim-quickui

how to select a command without hitting <enter> ?

lsaint opened this issue · 3 comments

Just like in normal mode, input :xxx -a -b -c (something_i_want_to_input_dynamically)

When i select an item from quickui#menu#, is there a way to just show :xxx -a -b -c at the bottom and let me input something else dynamically then hit enter manually?

how did you solved the issue? I want to do the thing as you described

I created a function with an input:

function! SearchInFiles()
  let searchTerm = input('Search in files: ')
  execute "CtrlSF " searchTerm
endfunction

call quickui#menu#install('mYmenu', [
  \ [ "Test", ':call SearchInFiles()' ],
\ ])
call quickui#menu#install("mYmenu", [
    \ [ "Test", 'exec input("", ":call SearchInFiles()")'],
\ ])