~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
7 months ago
Updated
2 months ago
Labels
feature

~cdv 2 months 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!

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