Giter Club home page Giter Club logo

obsidian-auto-link-title's Introduction

Obsidian Auto Link Title

Auto linking example

Automatically Title New Links

This plugin automatically fetches the webpage to extract link titles when they're pasted, creating a markdown link with the correct title set.

For example:

When pasting https://github.com/zolrath/obsidian-auto-link-title the plugin fetches the page and retrieves the title, resulting in a paste of: [zolrath/obsidian-auto-link-title: Automatically fetch the titles of pasted links](https://github.com/zolrath/obsidian-auto-link-title)

Add Titles To Existing Raw URLs

Additionally, using ctrl-shift-e (Windows) or cmd-shift-e (OS X) you can enhance an existing raw link to a markdown formatted link with the proper title.

If your text cursor is within the url https://github.com/zolrath/obsidian-auto-link-title pressing ctrl-shift-e or cmd-shift-e converts the text to [zolrath/obsidian-auto-link-title: Automatically fetch the titles of pasted links](https://github.com/zolrath/obsidian-auto-link-title)

Overwrite Titles Of Existing Markdown Links

Additionally, using ctrl-shift-e (Windows) or cmd-shift-e (OS X) you can overwrite an existing title of a markdown link with the fetched title from the url.

If your text cursor is within [some plugin](https://github.com/zolrath/obsidian-auto-link-title) pressing ctrl+shift+e fetches the sites title and replaces it, resulting in [zolrath/obsidian-auto-link-title: Automatically fetch the titles of pasted links](https://github.com/zolrath/obsidian-auto-link-title)

Mobile Pasting

In order to paste the URL ensure you perform the Tap and Hold -> Paste action to paste the URL into your document.

Gboard

Google's Gboard keyboard has a Clipboard helper shortcut above the keyboard to quickly paste. Due to the implementation of that feature, it does not trigger the paste event, preventing this plugin from interacting with the text.

Privacy Note

In order to retrieve the title this plugin downloads the page located at the pasted URL and extracts the title.

<head><title>Title</title></head>

On Desktop machines this happens using electrons BrowserWindow, allowing it to handle extended character sets such as Chinese with no issue.

However, on mobile as we are not using the electron platform we must simply fetch the page. Due to CORS restrictions on web servers disallowing direct fetches it uses the allorigins.win proxy to download the page. This proxy does not support other character sets and will return them as question marks.

obsidian-auto-link-title's People

Contributors

mkrcah avatar zolrath avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.