how to select a command without hitting <enter> ?
lsaint opened this issue · 3 comments
lsaint commented
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?
neolao commented
how did you solved the issue? I want to do the thing as you described
neolao commented
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()' ],
\ ])
lsaint commented
call quickui#menu#install("mYmenu", [
\ [ "Test", 'exec input("", ":call SearchInFiles()")'],
\ ])