~rjarry/aerc#239: 
default-menu-cmd with a pipe

If i set the default-menu-cmd to something like this:

default-menu-cmd=sort | fzf

...then directories related mappings, like :menu -d :cf<Enter>, work just fine.

However, calling the :attach mapping like this:

[compose::review]
a = :menu :attach<Enter>

...then seems to break. And if I remove this sort | part from default-menu-cmd, then the above mapping starts to work again.

May be that's some relics from the times when aerc had file-picker-cmd? And in case of :attach, default-menu-cmd is parsed somehow different?

Status
RESOLVED BY_DESIGN
Submitter
~skejg
Assigned to
No-one
Submitted
4 months ago
Updated
27 days ago
Labels
No labels applied.

~rjarry REPORTED BY_DESIGN 27 days ago

Hi, for some reason, this had slipped under my radar.

When :menu is used without -a nor -d, nothing is piped in the standard input, the sort | fzf commands hangs waiting for something in stdin.

I believe fzf sorts stuff by default.

Register here or Log in to comment, or comment via email.