File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 3
3
" tools.vim -
4
4
"
5
5
" Created by skywind on 2019/12/23
6
- " Last Modified: 2019/12/23 21:22:46
6
+ " Last Modified: 2021/11/30 01:33
7
7
"
8
8
" ======================================================================
9
9
@@ -487,3 +487,20 @@ function! quickui#tools#terminal(name)
487
487
endfunc
488
488
489
489
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