mii-key / obsidian-links

manipulate & manage obisidian links
MIT License
105 stars 5 forks source link

Feature Request: Option for Unlink to leave only header name behind #18

Closed MalignantCarp closed 11 months ago

MalignantCarp commented 11 months ago

Right now, it seems whenever I unlink something where I link to a header, I get the entire link text left behind unless I also have display text.

For example, if I have a note called This Note and I am linking to its First Header, I would make a wikilink as [[This Note#First Header]]. When I run unlink on that, I get this left behind: This Note#First Header

If I have display text, so say [[This Note#First Header|It's a Header]], unlink leaves behind: It's a Header

Would it be possible to add an option to leave behind just the header name if there is no display text? In the example above, unlink would (ideally) leave behind just: First Header.

mii-key commented 11 months ago

Hi, thank you for the valuable suggestion.

Plz check Configure remove links from heading feature.

I’m looking forward to receiving your feedback.

MalignantCarp commented 11 months ago

Hi, thank you for the valuable suggestion.

Plz check Configure remove links from heading feature.

I’m looking forward to receiving your feedback.

That looks like it would do it.