Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
392 stars 71 forks source link

[FEAT] Have special tokens in the 'Extra' section. #1315

Open develroo opened 9 months ago

develroo commented 9 months ago

As it stands now the Extra section of a token while display markdown and open up image links if you supply a url to it.

Would it be possible though to add an extra token to open a link in a New window? My reasoning is, atm I put tokens on the map to hold the descriptions of rooms, events, history etc. But I would also like to add DM notes too but have them permanent until I close the window on them. This way I could drag them to another screen of arrange them around my screen so I can see them at all times depending on the scene.

I know the markdown library does not support it per se, but the parsing aspect could treat certain tokens and different, so maybe something like

!![reflink](https://ref.link.show)

It could prompt perhaps, (open in a new window)

Just a thought.

Edit 1:

Oh I just thought of an easier way to implement it. Just have a checkbox on the Extras tab to [] Open in a new window. Doh!