Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gh640/sublimeurlconverter

🌏 A Sublime Text 3 / 4 package which converts raw urls to html/markdown links.
https://github.com/gh640/sublimeurlconverter

markdown sublime-package sublime-text sublime-text-3 sublime-text-4 url

Last synced: about 1 month ago
JSON representation

🌏 A Sublime Text 3 / 4 package which converts raw urls to html/markdown links.

Awesome Lists containing this project

README

        

# SublimeUrlConverter

A Sublime Text 3 / 4 package which converts raw urls to html/markdown links. Titles of links are fetched through target web pages.

## Supported formats

- HTML
- Markdown
- RestructuredText
- Custom format

### HTML

![Screenshot for html](https://raw.github.com/gh640/SublimeUrlConverter/master/assets/demo_html.gif)

### Markdown

![Screenshot for markdown](https://raw.github.com/gh640/SublimeUrlConverter/master/assets/demo_markdown.gif)

### RestructuredText

![Screenshot for ResructuredText](https://raw.github.com/gh640/SublimeUrlConverter/master/assets/demo_restructuredtext.gif)

### Custom

![Screenshot for custom format](https://raw.github.com/gh640/SublimeUrlConverter/master/assets/demo_custom.gif)

## Usage

### Commands

You can run bulk url conversion with the following commands.

- `UrlConverter: Convert urls to html links`
- `UrlConverter: Convert urls to markdown links`
- `UrlConverter: Convert urls to RestructuredText links`
- `UrlConverter: Convert urls to paths`
- `UrlConverter: Convert urls to custom-formatted links`

Select urls, open the command palette, and select one of the above commands.

### Settings

```json
{
"fallback_template": "{title}\n{url}",
"timeout": 10
}
```

#### `fallback_template`

You can use a custom link format for the command. The default format is as shown below.

There are 2 tokens which can be used in the template: `{title}` and `{url}`.

#### `timeout`

Seconds the fetching process times out with.

Default: `10`

## License

Licensed under the MIT license.