Code Monkey home page Code Monkey logo

wikilinks-to-mdlinks-obsidian's Introduction

Wikilinks to MDLinks (an Obsidian.md plugin)

GitHub release (latest SemVer) GitHub All Releases

This plugin allows for the conversion of individually selected wikilinks to markdown links, and vice versa.

demo

How-to

  1. Click your cursor somewhere within the link you want to convert.
  2. Either use the hotkey Ctrl/cmd + shift + L, or press Ctrl/cmd + p to open the settings dialog and search for Wikilinks to MDLinks: Toggle selected wikilink to markdown link and vice versa. Just typing in a bit of the command, e.g. "toggle" would likely allow this command to show up via the suggestions the search dialog provides.
  3. The selected link gets toggled to either wikilink format or markdown format, depending on what it was before.

Settings

  • Toggle selected wikilink to markdown link and vice versa

Future Plans

  1. Convert all wikilinks in selected text to markdown
  2. Convert all markdown links in selected text to wikilinks

Installation

From within Obsidian

  1. Install via the Third Party plugins setting. Search for Wikilinks to MDLinks.
  2. Activate the plugin in the settings.

How to run this repo

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run dev to start compilation in watch mode.

Obsidian API Documentation

Based on the following links:

https://github.com/obsidianmd/obsidian-sample-plugin https://github.com/obsidianmd/obsidian-api

Version History

0.0.5

  • Updated for callback check

0.0.4

  • Updated markdown link regex

0.0.3

  • Updated certain functions as per Obsidian pull request recommendations

0.0.2

  • Changed shortcut to Ctrl/cmd + shift + = due to conflict with previous.

0.0.1

  • Initial release. Includes Toggle selected wikilink to markdown link and vice versa.

wikilinks-to-mdlinks-obsidian's People

Contributors

agathauy 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.