From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [GNU ELPA] I'd like to add switchy.el: a last-recently-used window switcher Date: Sun, 09 Apr 2023 11:08:29 +0300 Message-ID: <838rf1mq9u.fsf@gnu.org> References: <87cz4dpk0n.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9939"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 09 10:08:36 2023 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 1plQ6G-0002PZ-6W for ged-emacs-devel@m.gmane-mx.org; Sun, 09 Apr 2023 10:08:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plQ5b-0005Jo-Ph; Sun, 09 Apr 2023 04:07:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plQ5Z-0005Je-Up for emacs-devel@gnu.org; Sun, 09 Apr 2023 04:07:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plQ5Z-0003qK-Mk for emacs-devel@gnu.org; Sun, 09 Apr 2023 04:07:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fttm8Ms277ivTRFNy/F5/WmbjMPSrRjLdDn0cVmCKX8=; b=J/GWWjFb2xXq 2/lZA0vy8iXv038n37EAbH5U8CSDmHvZu0kdewmQRMHdqxvCCJCMS5ikjsWQ2ydHXpwQQpvq0tUw4 SP1xI2I8pgTkrRc5SZRtlwS4bhA1JKby1qVl/+A/PVMRFr6zg1WlhUP4Mg4AAFmlSR6kVswk8tpN3 F+ER8G9fnnG3jlMveHslC6t9b4cl2VLSgzL/TGGwym0IQAX33rOrU1w7gktIEAadsJtOx5xAcnfib 0oJl9cz0JnIAnZLUKwV+Dsa28D9QHRyjC6SUI9E4R8kbJ+Eajt0h1PVoHvaWoMCZeb37xomLL7Ii/ 8NhlFyyXL2TOiU+m9zPW2Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plQ5Y-00034V-Ul; Sun, 09 Apr 2023 04:07:53 -0400 In-Reply-To: <87cz4dpk0n.fsf@gnu.org> (message from Tassilo Horn on Sun, 09 Apr 2023 09:36:27 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305196 Archived-At: > From: Tassilo Horn > Date: Sun, 09 Apr 2023 09:36:27 +0200 > > I've written a small utility called switchy.el which I'd like to add to > GNU ELPA. I can do that on my own but wanted to give you a chance for > commenting first. I'm attaching the file below. > > In essence, the single command provided is `switchy-window' which is > similar to `other-window' except that it switches to other windows in > last-recently-used order instead of top-to-bottom-left-to-right order. > With quick consecutive invocations you can reach any window but if you > have a small delay between invocations (controlled by the single > defcustom `switchy-delay'), you toggle between the two last recently > used windows. Thanks. Any chance of changing the name of the package to make the fact that it switches windows more evident? Like switchy-window.el, for example? Another minor nit: you say "last-recently-used order", but I believe the correct terminology is "least-recently-used order".