Hi Bram, On Thu, Sep 19, 2019 at 12:28 PM Bram Moolenaar <[email protected]> wrote: > > Yegappan wrote: > > > Currently the following Vim built-in functions are available to get > > information about individual marks: getpos(), line() and col(). > > > > But we don't have a function to get the list of marks placed in a > > buffer or the list of global marks (similar to the list displayed by > > the :marks command). > > > > What do you think about adding a getmarks() function that returns > > the list of global marks or the list of marks placed in a buffer? > > One can loop over all the mark names to get all the values. When would > it be useful to get the whole list? > > If anybody would want to get marks for a buffer that is not in a window > we could add an optional argument to getpos(). But I don't recall > anyone asking for this. >
This feature request came up in the "Support for plugin authors needs to be improved (poll) #3573" last year: https://github.com/vim/vim/issues/3573 In addition to this, the discussion also centered around adding support for user-specified custom marks from a plugin. - 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/CAAW7x7nkJtx8AGgi8661FCWg%3Dh0%3DgkVRCgwEKS9h4yq341TnyQ%40mail.gmail.com.
