From 997219b38fc6f14169f646b4000ea2d162d4dad3 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 24 Oct 2021 23:56:26 -0400 Subject: lei: Add transient wrapper for piem-lei-query Expose (most if not all) relevant arguments of lei-q in a new transient. The only somewhat tricky part here is propagating the original arguments so that piem-lei-query-thread and piem-lei-query-show can find messages that require a non-default source (e.g., an unregistered external or a remote source when there are local externals configured). While remote operations work, the current design is still focused on a setup where externals are configured locally, as described in <20210605211402.20304-1-kyle@kyleam.com> (e.g., there's no attempt to limit the number of times the server is hit). Using the key 's' (for search) is unfortunate given the command name is `lei q', but I think that's better than using 'q', which is pretty widely used for "quit" in Emacs buffers. Message-Id: <20211025035630.297598-7-kyle@kyleam.com> --- piem.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'piem.el') diff --git a/piem.el b/piem.el index 16ccdfc..31b9c71 100644 --- a/piem.el +++ b/piem.el @@ -986,7 +986,8 @@ this triggers the creation of a new worktree." [[("a" "apply patch" piem-am) ("b" "call b4-am" piem-b4-am)] [("i" "inject thread into maildir" piem-inject-thread-into-maildir) - ("l" "copy public-inbox link" piem-copy-mid-url)]]) + ("l" "copy public-inbox link" piem-copy-mid-url)] + [("s" "search with lei" piem-lei-q)]]) -- cgit v1.2.3