Monday, January 29, 2024

Re: Commit: patch 9.1.0009: Cannot easily get the list of matches

This is very cool!
I have tried to install as soon as it went out (I am follower on GitHub so I am immediately notified) but then I found out that matchbufline() is not available (yet) on MacVim (at its 9.1 Version). 
I'll install it as soon as that command will be available on MacVim. 

On Tuesday 9 January 2024 at 15:51:45 UTC+1 Yegappan Lakshmanan wrote:
On Sun, Jan 7, 2024 at 8:30 AM Yegappan Lakshmanan <yega...@gmail.com> wrote:
Hi all,

On Thu, Jan 4, 2024 at 1:45 PM Christian Brabandt <cbl...@256bit.org> wrote:
patch 9.1.0009: Cannot easily get the list of matches

Commit: https://github.com/vim/vim/commit/f93b1c881a99fa847a1bafa71877d7e16f18e6ef
Author: Yegappan Lakshmanan <yega...@yahoo.com>
Date:   Thu Jan 4 22:28:46 2024 +0100

    patch 9.1.0009: Cannot easily get the list of matches

    Problem:  Cannot easily get the list of matches
    Solution: Add the matchstrlist() and matchbufline() Vim script
              functions (Yegappan Lakshmanan)


To demonstrate the use of the new matchbufline() function, I have created
the following script.  This does search text completion from the list of words
in the current buffer.  After typing a few letters in the "/" prompt, if you press
Tab, it will complete the word from the current buffer.  If you press Tab again,
then it will go to the next match.  If you press Shift-Tab, it will go back to
the previous match.


I have uploaded this plugin to the https://github.com/yegappan/searchcomplete repository.

Regards,
Yegappan 

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/7482c109-a5ff-4bbe-b7cd-0c47ec829393n%40googlegroups.com.

No comments:

Post a Comment