Closed YakovL closed 5 years ago
Although one may also expect ctrl+click to work as "open in a new tab", I'll postpone introducing such behavior due to the following complications:
e.metaKey
catch cmd+click?)chkToggleLinks
) (by the way, the logic whether to toggle seems to be rather weird)I also don't expect one would need to disable adding href
, but if that's the case, getTiddlerLinkHref
can be overwritten (in the simplest case with getTiddlerLinkHref = () => 'javascript:;'
This set of changes introduces a helper for getting permalink/permaview url (
Story.prototype.getPermaViewHash
) and addshref
attribute to prettyLinks so that right click works with them like with usual links and one can select "open in new tab" action