Hi Tony,

On Fri, May 1, 2020 at 9:34 AM Tony Mechelynck <[email protected]>
wrote:

> On Fri, May 1, 2020 at 5:52 PM Yegappan Lakshmanan <[email protected]>
> wrote:
> >
> > Hi all,
> >
> > Currently we have the line(), col(), virtcol() and getpos() functions
> > to get the position of a particular mark. But we don't have a
> > function to get the list of local/global marks (information displayed
> > by the :marks command). A plugin needs to call the above functions
> > in a loop for various supported local/global marks to create this list.
> > What do you think about adding a getmarklist() function which will
> > return the List of placed global/local marks? The help text for this
> function
> > is below.
>
> In the meantime (until you get it into the C code) I suppose your
> plugin could get the output of :marks into a variable by means of
> :redir and parse that: it seems fairly straightforward: one heading
> line, then repeatedly <mark name> <line> <column> <file or text> with
> one or more spaces before each.
>
>
Yes. The existing plugins like the one below are parsing the output of
the :marks command to get this information:

https://github.com/lacygoill/vim-interactive-lists/blob/master/autoload/interactive_lists.vim


If there is a built-in function that returns this information in a Vim
native
type, then it will be much easier for plugins to consume this information.

Regards,
Yegappan

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3DHhoaZ0jEUdCH2jMr8E%3DCtGfWh%3DJJVgGcfwTkmYsqe%2BQ%40mail.gmail.com.

Raspunde prin e-mail lui