preservim / vim-markdown

Markdown Vim Mode
4.69k stars 524 forks source link

Cursor in heading, show computed anchor for that heading? #658

Closed sideshowbarker closed 4 months ago

sideshowbarker commented 4 months ago

When I have the cursor in/on a particular heading, is there a way I can get vim to display the computed anchor for that heading?

For example, if I have my cursor in this heading:

### How can I propose a new feature?

…then I’d like for vim to somewhere display this:

#how-can-i-propose-a-new-feature

The use case is just: I’d like to copy that text so that I can then use it to add a link for that heading elsewhere in my file.

sideshowbarker commented 4 months ago

I realize now that https://github.com/preservim/vim-markdown/issues/659 is how this should ideally work