Skip to content

Releases: danyim/obsidian-named-links

1.3.1

Choose a tag to compare

@github-actions github-actions released this 04 Oct 08:49
5fd531a

What's Changed

  • Show the settings screenshot in dark mode only by @danyim in #19

Full Changelog: 1.3.0...1.3.1

1.3.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 08:24
8f9f083

A batch of long-standing Auto Link Title requests.

New

  • More in a link than the title (#14). Link formats can use {author} (a video's channel, or the page's author), {site}, {description}, {section} (the heading a #fragment points to) and {date} or {date:FORMAT}. A format only fetches the page when it shows something from it.
  • Copied links keep their own title (#15). A link copied or dragged out of a browser, with its text (Edge's Copy link, Firefox's text/x-moz-url, a link dragged from a page), goes in with that text and no request. It works for pages behind a login.
  • Vim's p and P title URLs (#16), counts, registers and visual mode included, by the same rules as a paste.
  • arXiv papers get their real title (#18). PDF, abstract and HTML links to a paper are titled from its abstract page, so arxiv.org/pdf/2206.08077.pdf becomes "Neural Scene Representation for Locomotion on Structured Terrain" instead of 2206.08077.pdf.
  • An API for scripts and other plugins (#13) at app.plugins.plugins['named-links'].api: getTitle(url), getLink(url) and formatLink(url, title). See the README's Scripting section for a Templater example.

Changed

  • URLs in code blocks, inline code and frontmatter are always left alone, so Skip code and frontmatter is no longer a setting. Link format moves to the top of the settings tab (#12).

Fixed

  • Ctrl/Cmd+Shift+V really pastes a URL as plain text now. The shortcut fires two paste events, and the second one used to come out titled (#12).

Full Changelog: 1.2.0...1.3.0

1.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Oct 19:58
b8b9a22

Two requests from @NomarCub, both off by default.

New

  • Decode URLs (#6). Writes a link's URL decoded, so https://jisho.org/word/%E5%AF%BF%E5%8F%B8 goes in as https://jisho.org/word/寿司. Anything that would change where the URL leads (/ ? # & =, % and friends) stays encoded, and a URL with a space goes in <...> so it still links.
  • Paste text onto a selected URL as its title (#7). Select a URL, or a whole [old](url) link, paste some text, and it becomes [your text](url). Nothing is fetched, and one undo gives the URL back.

Also

  • The README has a commands table and a comparison with similar plugins, and it's about half as long.
  • Releases now check that the tag matches the manifest and run lint, the type check and the unit tests before building.

Full Changelog: 1.1.0...1.2.0

1.1.0

Choose a tag to compare

@github-actions github-actions released this 03 Oct 08:15
b69197a

Three things people kept asking for upstream, plus a nicer undo.

New

  • Title clean-up (#3). An optional "Remove the site name" toggle drops the - YouTube / · GitHub / | The New York Times part of a title. It uses the name the page declares, or the one in its address. Two sets of find and replace rules run after it:
    • Domain title rules only apply to one site and its subdomains, e.g. github.com: /^GitHub - / =>.
    • Page title rules apply to every title.
  • Link format (#4). Pick a Markdown link (the default, unchanged), a Markdown link with a hover title, an HTML <a> link, or your own template using {title}, {url} and {domain}. A template without {title}, like [source]({url}), skips the fetch entirely.
  • Undo (#5). Undo after a title comes in now gives you back the URL you pasted, and a second undo removes the paste. No more stranded "Fetching title…".

Changed

  • "Use the selection as the title" is now on by default, so pasting a URL over selected text links that text instead of replacing it. Turn it off in settings for the old behavior.

The README has screenshots of the full settings tab now, if you want to see where everything lives.

Full Changelog: 1.0.0...1.1.0

1.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 17:43
195c4c6

What's Changed

  • Take over Auto Link Title as Named Links, ready for publishing by @danyim in #1

New Contributors

  • @danyim made their first contribution in #1

Full Changelog: https://github.com/danyim/obsidian-named-links/commits/1.0.0