hgiesel / anki-plus-archive

Connect your private notes to Anki
12 stars 0 forks source link

`ark assets` #8

Open hgiesel opened 5 years ago

hgiesel commented 5 years ago

Introduce the command ark assets:

Introduce new kind of syntax and identifier, called assetrefs, which kinda work like pagerefs:

. link:#graph-theory:dihedral-1.jpg[A picture of bla]
. link:#:dihedral-2.jpg[A picture of bla2]

ark verify should check validity of assetrefs, too.

In vim-ankify, I can ways to easily import files from a set directory in the file system.

hgiesel commented 5 years ago

Or rather...

ark assets <sectionid>: lists all assets incldes in ./assets directory in sectionid

ark assetrefs <pageid>: lists all asssets used in sectionid, or pageid

ark revasset <assetref>: revrefs for assetrefs. Should also mean that revrefs is renamed to revpage

assetrefs should look like graph-theory#foobar-image.pdf, or #foobar-image.pdf, if in the current directory.