Introduce verbose option
Provide a way to silence nagging messages, more appropriate for a debug situation.
This commit is contained in:
parent
a21d4474f0
commit
593479169b
@ -391,7 +391,13 @@ endfunction " }}}
|
||||
" Helper Functions: {{{
|
||||
" -- Message -----------------------------
|
||||
function! s:Message(message) " {{{
|
||||
echo 'EasyMotion: ' . a:message
|
||||
if g:EasyMotion_verbose
|
||||
echo 'EasyMotion: ' . a:message
|
||||
else
|
||||
" Make the current message dissapear
|
||||
echo ''
|
||||
" redraw
|
||||
endif
|
||||
endfunction " }}}
|
||||
function! s:Prompt(message) " {{{
|
||||
echohl Question
|
||||
@ -399,7 +405,11 @@ function! s:Prompt(message) " {{{
|
||||
echohl None
|
||||
endfunction " }}}
|
||||
function! s:Throw(message) "{{{
|
||||
throw 'EasyMotion: ' . a:message
|
||||
if g:EasyMotion_verbose
|
||||
throw 'EasyMotion: ' . a:message
|
||||
else
|
||||
throw
|
||||
endif
|
||||
endfunction "}}}
|
||||
|
||||
" -- Save & Restore values ---------------
|
||||
|
@ -44,6 +44,7 @@ let g:EasyMotion_add_search_history = get(g: , 'EasyMotion_add_search_history' ,
|
||||
let g:EasyMotion_off_screen_search = get(g: , 'EasyMotion_off_screen_search' , 1)
|
||||
let g:EasyMotion_force_csapprox = get(g: , 'EasyMotion_force_csapprox' , 0)
|
||||
let g:EasyMotion_show_prompt = get(g: , 'EasyMotion_show_prompt' , 1)
|
||||
let g:EasyMotion_verbose = get(g: , 'EasyMotion_verbose' , 1)
|
||||
let g:EasyMotion_prompt =
|
||||
\ get(g: , 'EasyMotion_prompt' , 'Search for {n} character(s): ')
|
||||
let g:EasyMotion_command_line_key_mappings =
|
||||
|
Loading…
x
Reference in New Issue
Block a user