lextoumbourou / obsidian-title-as-link-text

An Obsidian plugin to set the Markdown Link Text using a title
MIT License
11 stars 1 forks source link

Delay links update while changing h1 header #1

Open andrezgz opened 1 year ago

andrezgz commented 1 year ago

This plugin is just what I was looking for! I've used markdown links since the beginning so I've always suffered when renaming notes and changing h1 headers (since they differ in my schema).

So, my only issue right now with this solution is that while I'm changing the h1 header, links are changed multiple times until I've finished. Would it be possible to delay (debounce) the event trigger?

lextoumbourou commented 1 year ago

Good idea.

lextoumbourou commented 1 year ago

I've added a 1 second debounce in the latest version - 1.0.10 - which is available now in BRAT. Let me know how you find it.

I might consider making the debounce length a setting, if necessary.

andrezgz commented 1 year ago

The 1 second delay sounds good to me. Thanks!