~sircmpwn/aerc2#8: Implement :prompt

Usage: :prompt <text> <cmd...>

Prompts the user for some text and appends it to a command, then executes that command.

Example: [lbinds] c = :prompt "Change to folder? " cf

Status
REPORTED
Submitter
~sircmpwn
Assigned to
No-one
Submitted
4 months ago
Updated
7 days ago
Labels
feature

~sircmpwn added feature 4 months ago

~cdv 7 days ago

I'm trying to implement this. I'm having difficulty. I'm not quite sure how to get the events right. Prompt.Execute seems to me like it needs to put some kind of event on widget.Aerc that is handled immediately after the ExLine.commit returns. I'm just not sure how to do that.

Advice appreciated. Thanks!