Codimd: auto link explode

Created on 12 Mar 2017  路  5Comments  路  Source: hackmdio/codimd

it would be a great feature in a MD to be able to select a text in and with a combination of keys create a new MD linked to it
Ex from a MD
// in edit mode
this is a new topic to develop
//select topic
this is a new topic to develop
//hit a combinations of keys to create a new md named topic and link added automatically
this is a new topic

Hacktoberfest enhancement

Most helpful comment

I'd like to extend this to "link to existing page".

Also, here's what WordPress does - which I quite like and which could be extended to also satisfy @mamatucci's suggestion:

grafik

When you have text selected in the editor and hit Ctrl+K, you'll be presented with the very nice short interface above. You can either post a URL into it, or start searching for existing articles, posts... in your wordpress installation. If this _also_ had a way to "create new pad" and directly link to it (perhaps setting the new pad's title correctly, along the way) it would make wiki-like usage of hackMD very convenient.

All 5 comments

I'd like to extend this to "link to existing page".

Also, here's what WordPress does - which I quite like and which could be extended to also satisfy @mamatucci's suggestion:

grafik

When you have text selected in the editor and hit Ctrl+K, you'll be presented with the very nice short interface above. You can either post a URL into it, or start searching for existing articles, posts... in your wordpress installation. If this _also_ had a way to "create new pad" and directly link to it (perhaps setting the new pad's title correctly, along the way) it would make wiki-like usage of hackMD very convenient.

Wrote a mini chrome extension that auto creates documents + link using a shortcut:
https://github.com/rmst/hackmd-enhance

It can not link to existing one docs but that would be an awesome feature (contributions welcome!).

In Hackpad one would start typing @... and is presented with an input box that searches pad titles, or creates new ones. One would have to press Return to confirm the creation. Deleting the @ character would close the box.

Would it appear useful to migrate the logic from the -enhance repository into the CodiMD frontend and iterate from there?

I would like to use @ for mentioning/referencing/tagging people at a later point (open for discussion obviously). I think it is an extremely common prefix for tagging people, so that it might be unexpected using it for something else.

I think the Link Exploder as in HackMD would really be great. I use CodiMD as my generic notes platform, and linking to existing notes is always painful. Just for me to understand - if this feature is present in HackMD, can't it de (easily) migrated?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neopostmodern picture neopostmodern  路  4Comments

mxmo0rhuhn picture mxmo0rhuhn  路  3Comments

Someniak picture Someniak  路  3Comments

qiuwch picture qiuwch  路  3Comments

dsprenkels picture dsprenkels  路  3Comments