From c83ca9a1e69e5f136b6860d0aa9c2e8073516dff Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Tue, 9 Jun 2026 19:45:34 +0800 Subject: [PATCH] fix(picker): avoid each item split into multiple entry read0 can be useful in this case: `echo -en "a\nb" | fzf --read0` --- lua/opencode/ui/base_picker.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/opencode/ui/base_picker.lua b/lua/opencode/ui/base_picker.lua index 94d21918..8f2c4338 100644 --- a/lua/opencode/ui/base_picker.lua +++ b/lua/opencode/ui/base_picker.lua @@ -381,6 +381,7 @@ local function fzf_ui(opts) ['--multi'] = has_multi_action and true or nil, ['--with-nth'] = '2..', -- hide the index prefix from display ['--delimiter'] = '\x01', -- use SOH as delimiter (invisible char) + ['--read0'] = true, }, _headers = { 'actions' }, previewer = (function()