An open API service indexing awesome lists of open source software.

https://github.com/micro-garden/mdfy-plugin

A micro text editor plugin that converts a URL under the cursor into a Markdown link.
https://github.com/micro-garden/mdfy-plugin

markdown micro micro-editor micro-plugin plugin terminal text-editor url

Last synced: about 1 month ago
JSON representation

A micro text editor plugin that converts a URL under the cursor into a Markdown link.

Awesome Lists containing this project

README

          

# MDfy (Markdown-ize) Plugin for Micro

**MDfy (Markdown-ize)** is a plugin for the
[micro](https://micro-editor.github.io/) text editor that converts a URL under
the cursor into a Markdown link.

`mdfy` command transforms a URL under the cursor into Markdown link format:

```
[text](url)
```

The text part is automatically extracted from the last path segment of the URL.

For example, if your cursor is on:

```markdown
https://example.com/path/to/page
```

It will be transformed into:

```markdown
[page](https://example.com/path/to/page)
```

Shortcut: `Ctrl-Alt-g`

## Installation

Place the plugin folder in `~/.config/micro/plug/mdfy/`, or clone it
directly from the GitHub repository:

```sh
mkdir -p ~/.config/micro/plug
git clone https://github.com/micro-garden/mdfy-plugin ~/.config/micro/plug/mdfy
```

Alternatively, this plugin is also available through the unofficial plugin
channel:
https://github.com/micro-garden/unofficial-plugin-channel
You can install it by adding the channel and then using `plugin install`.

## License

MIT.

## Author

Aki Kareha (aki@kareha.org)