Waypoint icon indicating copy to clipboard operation
Waypoint copied to clipboard

Waypoint callout is Bugged

Open AlyceOsbourne opened this issue 1 year ago • 2 comments

When nesting a waypoint inside a callout, it causes the callout to not be cleared before being updated properly.

Before a file is added it looks like this image After image I am not sure the code the detects the contents of the waypoint takes into account the >

AlyceOsbourne avatar Apr 07 '24 01:04 AlyceOsbourne

I think I found the issue. In lines 234-243 of main.ts

if (waypointStart === -1 && (trimmed.includes(waypointFlag) || trimmed.includes(beginWaypoint))) {
	isCallout = trimmed.startsWith(">");
	initialWaypoint = trimmed.includes(waypointFlag);
	waypointStart = i;
	continue;
}
if (waypointStart !== -1 && trimmed === endWaypoint) {
	waypointEnd = i;
	break;
}

There should be a line to change endWaypoint to have a > marker in front as well. Probably before the continue; . I'm pretty sure waypointEnd just stays as -1, which is why it would overshoot.

I do not have a Typescript dev environment though, so I can not test if the fix works. Would appreciate if someone could try it and see if that fixes it.

ltchin avatar Apr 26 '24 21:04 ltchin

I really hope someone can make a built out of @ltchin 's suggestion. Callouts are a must have for me to use this plugin, unfortunately :/

g-adel avatar Sep 06 '24 16:09 g-adel