Skip to content

Commit 89f09e8

Browse files
committed
feat: dont add blink by default, add doc on how to add it manually
refer: #3064, #3039, #3199
1 parent 2526ed1 commit 89f09e8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

autoload/vimtex/view.vim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ function! vimtex#view#inverse_search(line, filename, column = 0) abort
118118
endif
119119
redraw
120120

121-
call vimtex#ui#blink()
122-
123121
if exists('#User#VimtexEventViewReverse')
124122
doautocmd <nomodeline> User VimtexEventViewReverse
125123
endif

doc/vimtex.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4245,7 +4245,11 @@ Examples (Vimscript) - see below for a Lua example: >vim
42454245
" Specify additional behaviour after inverse search
42464246
augroup vimtex_event_5
42474247
autocmd!
4248+
" Use a custom center and flash function
42484249
autocmd User VimtexEventViewReverse call CenterAndFlash()
4250+
4251+
" Or perhaps just use a vimtex blink function
4252+
autocmd User VimtexEventViewReverse call vimtex#ui#blink()
42494253
augroup END
42504254

42514255
" Focus the terminal after inverse search
@@ -6494,6 +6498,9 @@ Note: This reference is currently a work in progress!
64946498
Utility function for reverse search from pdf viewer. Takes two arguments:
64956499
the line number and a filename. The function runs the event
64966500
|VimtexEventViewReverse| at the end, which allows more user customization.
6501+
E.g., the user could call `vimtex#ui#blink()` to have a blinking effect
6502+
after doing the reverse search. See the docs for |VimtexEventViewReverse|
6503+
for an example.
64976504

64986505
==============================================================================
64996506
FAQ *vimtex-faq*

0 commit comments

Comments
 (0)