fff icon indicating copy to clipboard operation
fff copied to clipboard

fix(pi-fff): compose pi-fff editor with other extensions (#475)

Open gustav-fff opened this issue 6 months ago • 1 comments

Closes #475

Root cause

pi-fff called ctx.ui.setEditorComponent() directly, replacing any editor factory installed by earlier extensions. Load-order determined which extension's editor behavior survived.

Fix

Read previous editor factory via ctx.ui.getEditorComponent(). If exists, instantiate base editor and wrap setAutocompleteProvider to chain FFF @... autocomplete with base provider. Preserves other editor behaviors (from pi-glance, pi-powerline-footer, etc).

Verified

Code compiles, follows Pi composability pattern from https://github.com/earendil-works/pi/issues/3935. FFF autocomplete chains with base editor when previous factory exists, standalone FffEditor otherwise.

Automated triage via gustav-fff bot.

gustav-fff avatar May 20 '26 04:05 gustav-fff

When will this be merged?

@dmtrKovalenko

tifandotme avatar Jun 01 '26 13:06 tifandotme