Re: Play sound on search wrap

2022-10-07 Thread Lifepillar
On 2022-10-06, Arun wrote: > You could try a hack by calling a function that checks for v:warningmsg and > reset it, in a "statusline" invoked function. Something like: > > --- > fu! CheckWrap() > if v:warningmsg =~# "^search hit [BT]" > "Ring bell > exe "norm! \" > endif >

Re: Play sound on search wrap

2022-10-06 Thread Arun
You could try a hack by calling a function that checks for v:warningmsg and reset it, in a "statusline" invoked function. Something like: --- fu! CheckWrap() if v:warningmsg =~# "^search hit [BT]" "Ring bell exe "norm! \" endif let v:warningmsg="" endf "call CheckWrap u

Re: Play sound on search wrap

2022-10-06 Thread Bram Moolenaar
> When performing a search, it's easy for me to miss the "search hit > BOTTOM, continuing at TOP" message because my attention is focused on > the matches. For this reason, I'd like a sound of my choice to be played > when the search wraps (using +sound). Is this possible? No, don't see a way.

Play sound on search wrap

2022-10-06 Thread Lifepillar
When performing a search, it's easy for me to miss the "search hit BOTTOM, continuing at TOP" message because my attention is focused on the matches. For this reason, I'd like a sound of my choice to be played when the search wraps (using +sound). Is this possible? Thanks, Life. -- -- You recei