From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: On the adoption of transient.el Date: Mon, 5 Jul 2021 12:51:43 -0700 Message-ID: References: <877di4on3d.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18947"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gabriel , Emacs developers To: Yuri Khan , Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 05 21:52:34 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Udu-0004j3-FI for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Jul 2021 21:52:34 +0200 Original-Received: from localhost ([::1]:59944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0Udt-0007N1-C4 for ged-emacs-devel@m.gmane-mx.org; Mon, 05 Jul 2021 15:52:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0UdB-0006g1-3T for emacs-devel@gnu.org; Mon, 05 Jul 2021 15:51:49 -0400 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:41924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0Ud9-0007gS-9O for emacs-devel@gnu.org; Mon, 05 Jul 2021 15:51:48 -0400 Original-Received: by mail-pj1-x1035.google.com with SMTP id cx9-20020a17090afd89b0290170a3e085edso575383pjb.0 for ; Mon, 05 Jul 2021 12:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=lKZJV9n9ToOpiA/Ey3hwNZkW8Q7iJLmVt+dcXvGBSew=; b=K94LKlcTbyf2pDGQ3iMO1XJrkaMDIgR1eFNQuQIICbV5MreVh6TupvboohfXCfxvUd R5i1ruXBd7F4BSG7Hjc/yidqNCWHe3+hXP/QD18X5GB1QvMHQOUL4EhyBwSMuvrUA6MA braD8h4rpnIbfV35lZhGJV2RUIGclKtcKebIyTOrtMIQdOa2H9/pp6Vw0EJDbmlIJQQX dsJrJm6b9Cl6zwDLhVnBI3kJf5EgiNnyVzgyxgDioiTDP3TxZF7K9pm2YMsKJeBt6hi1 Xw0UeObfC+dvMaXGOXO8TRWfHXw2ZAxiMxPNusDqgYe17jnhg9fnqxmWEEILKdNSBXXr cM0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lKZJV9n9ToOpiA/Ey3hwNZkW8Q7iJLmVt+dcXvGBSew=; b=dtTuhfgGbrWiV+693oze1CiZMXZHRWuvO4eYCLc/2zkR1dAZygIUQx/bhMt+rFpsrS /mbisYbQy62nx/Sk99/CH48VTzA2IesJUskl2MSAxCymApvS2ZALGMHqM6b5tqkQv7cI sHgP5P/X/u1tvMqHHKt3ZFL2lRRnE/5fs1VB91Q/fO6VMafcPEwQeddKHmYtxxkNGZIC pKqXll+23eyfDizDdBTbGJxYCZYuARdlTvKzBJ8LCgHYGlNsthygnJ+tlLoHQXYIywJE BiUrVZ1Q62MZG9HDlYh2L6gapiiMDbwicbSgnVmxH2tVy7PZwazvwwHXQHrPCCf1Y+3u 2IFA== X-Gm-Message-State: AOAM531B2ByGnU77FuKziOkh+3bNlV4nXgLYHk2O0xFPSDaTgiuJCP60 RnPnAmumqPkEwHObEuk20tyaqccQKdI= X-Google-Smtp-Source: ABdhPJyNNNZGcHs2qouGZMtntJxkL0QVr20g4C6A2Sjyv3AWH8pCOE1AhJumC04S+UDw8tPOmTwozQ== X-Received: by 2002:a17:902:b181:b029:fc:c069:865c with SMTP id s1-20020a170902b181b02900fcc069865cmr13763953plr.28.1625514705326; Mon, 05 Jul 2021 12:51:45 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id l2sm2673531pfc.157.2021.07.05.12.51.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Jul 2021 12:51:45 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271141 Archived-At: On 7/5/2021 9:50 AM, Yuri Khan wrote: > On Mon, 5 Jul 2021 at 21:25, Philip Kaludercic wrote: > >> Do you have any concrete examples where it could be used? > > Every time I do an ‘M-x rgrep’, I am asked three to infinity > questions, in a sequence: Coincidentally, I've been working on an alternative/enhancement to rgrep that works with (almost) any grep-like program[1], and I've been looking into using transient.el to replace my current implementation of setting search options (I just use `read-from-minibuffer' with a custom keymap that resembles how isearch works). I'd definitely be interested in seeing some examples of how I might use transient.el to accomplish this. I looked over the documentation for transient.el, and while it seems very thorough, I had a hard time understanding how to do something isearch-like with it. Given sufficient time, I could probably figure it out, but having a smallish example to imitate would be a big help for getting started. In particular, I want to be able to invoke the `urgrep' command, type a search string, and hit RET to search[2], but also be able to type some key combinations to tweak options (both toggling boolean flags and setting values, e.g. number of lines of context to show). (Also note: if you're interested in using urgrep, feel free, but there's a reason it hasn't been added to a package archive yet. I'm still changing lots of things around, so I make no promises about backwards compatibility for the time being.) - Jim [1] https://github.com/jimporter/urgrep [2] 90% of the time, I just want to search for a string, so I'm optimizing for that case.