[GH-ISSUE #7706] [Feature]: Autocomplete macros like {{char}} in prompt fields #4255

Closed
opened 2026-10-21 06:13:36 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7706

Originally assigned to: @ylli-selmani on GitHub.

What problem does this solve?

Writing macros in prompt fields means remembering exact names ({{charPostHistory}}, {{personaDescription}}, {{getvar::}}) or opening the macro reference every time. The omnibar and the Professor Mari composer already grey in a completion you can accept with Tab, but the fields where macros actually live don't.

Proposed solution

In every field that has the macro reference button, typing {{ plus a few letters shows the rest of the macro name as ghost text ({{ch → ar}}), and Tab accepts it. Reuse the omnibar's ghost-text style and source the names from the macro registry, so new macros complete automatically.

Alternatives considered

A dropdown list of matching macros. Ghost text matches what the omnibar and Mari already do and stays out of the way while typing prose.

Additional context

Tab still indents as before when there is no suggestion.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @ylli-selmani on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7706 Originally assigned to: @ylli-selmani on GitHub. ## What problem does this solve? Writing macros in prompt fields means remembering exact names (`{{charPostHistory}}`, `{{personaDescription}}`, `{{getvar::}}`) or opening the macro reference every time. The omnibar and the Professor Mari composer already grey in a completion you can accept with Tab, but the fields where macros actually live don't. ## Proposed solution In every field that has the macro reference button, typing `{{` plus a few letters shows the rest of the macro name as ghost text (`{{ch` → `ar}}`), and Tab accepts it. Reuse the omnibar's ghost-text style and source the names from the macro registry, so new macros complete automatically. ## Alternatives considered A dropdown list of matching macros. Ghost text matches what the omnibar and Mari already do and stays out of the way while typing prose. ## Additional context Tab still indents as before when there is no suggestion. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4255
No description provided.