File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33" tools.vim -
44"
55" Created by skywind on 2019/12/23
6- " Last Modified: 2019/12/23 21:22:46
6+ " Last Modified: 2021/11/30 01:33
77"
88" ======================================================================
99
@@ -487,3 +487,20 @@ function! quickui#tools#terminal(name)
487487endfunc
488488
489489
490+ " ----------------------------------------------------------------------
491+ " search inputbox
492+ " ----------------------------------------------------------------------
493+ function ! quickui#tools#input_search ()
494+ let text = quickui#input#open (' Enter text to search:' , ' ' , ' search' )
495+ redraw
496+ if text == ' '
497+ echo " quit search"
498+ return
499+ endif
500+ let text = escape (text, ' [\*~^' )
501+ " exec '/' . text
502+ call feedkeys (" \<ESC> /" . text . " \<cr> " , ' n' )
503+ endfunc
504+
505+
506+
You can’t perform that action at this time.
0 commit comments