Skip to content

Feature request. Links: inserting the link title from a linked file header #149

@artkpv

Description

@artkpv

Hello, thanks for this tool! I switched to this from VimWiki.

Could we have a header inserted into a link title? Probably a function that in normal or visual mode insert a title for a link under cursor from a linked file first header. That file is in markdown.

Example:

.
├── index.md
└── test.md

index.md:

Before:
[random url text](test)

After:
[First header in test.md](test)

test.md:

Preamble content

# First header in test.md

The content itself

vimrc:

filetype plugin on

let g:wiki_filetypes = ['wiki', 'md']
let g:wiki_link_target_type = 'md'

Environment:

❯ uname -a
Linux 5.11.15-arch1-2 #1 SMP PREEMPT Sat, 17 Apr 2021 00:22:30 +0000 x86_64 GNU/Linux
❯ nvim --version
NVIM v0.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions