Codimd: Post new note while also setting the alias

Created on 11 Nov 2018  路  3Comments  路  Source: hackmdio/codimd

As an extension to https://github.com/hackmdio/codimd/pull/673 it would be nice to be able to create a note including an alias. I'm not particularly picky about how that would be done. Two ways come to mind:

  • keeping /new and adding a parameter ?alias=the-awesome-alias
  • using the-awesome-alias/new (or the other way 'round)

This would enable the CLI to determine the url, making imports easier. This was - not as precisely - mentioned in https://github.com/hackmdio/codimd-cli/issues/7 already.

enhancement imporexport

Most helpful comment

Huh, looks like I missed this issue somehow. Shouldn't be overly complicated to implement, let's schedule it for release 1.4.0.

All 3 comments

This would be a super nice feature to facilitate imports / exports. The only workaround I could come up with now was to write myself a bunch of export import tools [1] and set up a static github-pages site to redirect from the old notebook ids to the new, randomly created ones.

[1] https://github.com/rmst/codimd-import

Huh, looks like I missed this issue somehow. Shouldn't be overly complicated to implement, let's schedule it for release 1.4.0.

Hi,

I'm testing the server API and the CodiMD cli and I found this feature extremely useful. 驴Is there any estimated release date for 1.4.0 to support this feature?

On a related issue, would be nice to have something that allows cli to change the content of a note to other text given the note url. Is stated as a desired collaboration and I'm exploring an interface between Pharo and CodiMD now (screenshot below, but I have stopped until 1.4.0 gets released with the note URL alias feature). If I can get some pointers on how to change the content of an existing note, using the current API, and for example curl, this feature of creating a note on a particular URL, could be faked on the current version by visiting a note (so, creating it) and then changing its contents.

Grafoscopio CodiMD API

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mxmilkiib picture mxmilkiib  路  3Comments

Nebukadneza picture Nebukadneza  路  3Comments

arnisoph picture arnisoph  路  5Comments

almereyda picture almereyda  路  4Comments

yaxu picture yaxu  路  4Comments