klembot / chapbook

A simple, readable story format for Twine 2.
https://klembot.github.io/chapbook
MIT License
80 stars 24 forks source link

Chapbook-style links don't show arrows linking passages in the editor #186

Open jtheory opened 3 months ago

jtheory commented 3 months ago

Describe the bug I used the Link -> Passage Link function to add new links in the editor, and that created links like this: {link to: 'Passage name', label: 'Label text'} ...which works when testing the story, but aren't supported otherwise in the editor (no arrows between passages, no autocomplete for passage name, no auto-creation of new passages).

I went hunting through the docs, found the [[Passage name<-Label text]] format, and that works fully.

What's the direction here? I've hunted through issues but not found any discussion, and the docs don't talk about a custom Chapbook style anywhere that I could find.

To Reproduce

Expected behavior Two good options for consistency across docs & the editor:

Stories and screenshots Here's an example -- there are two links from "Realization", to Call friend and Processing done, but only the classic style one shows the arrow.

image

Environment Twine version 2.8.1 (89) in Ubuntu via Snap.

greyelf commented 3 months ago

note: the same "no connection arrow is shown" issue is true for any Link Inserts that accepts a Passage name as an argument. eg. {reveal link}

klembot commented 3 months ago

This should be fixed as of version 2.0.0. Could you try that out?

greyelf commented 3 months ago

@klembot I reinstalled Chapbook v2.0.0 using the URL from the documentation's Version History section, and then created a new project with the following initial Passage... note: both of the Links were created using the toolbar option.

:: Start
Content of the initial Passage visited
{link to: 'Second', label: 'Next'}
{reveal link: 'Show Third', passage: 'Third'}

...and as neither the Second or Third Passages referenced by the Links were auto-created I manually did that myself.

A dashed connection arrow is show between Start and Third, but no arrow is shown between Start and Second.

klembot commented 3 months ago

@greyelf most of what you're describing is intended behavior; the dotted-line references that Twine allows format to specify do not autocreate passages, which was an intentional decision. There does seem to be a bug where it recognizes {link to: 'Second'} but not {link to: 'Second', label: 'Next'}.