Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8A65E431FD0 for ; Wed, 6 Jul 2011 06:25:43 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.699 X-Spam-Level: X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zvcX4AFeS7gm for ; Wed, 6 Jul 2011 06:25:42 -0700 (PDT) Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 88895431FB6 for ; Wed, 6 Jul 2011 06:25:42 -0700 (PDT) Received: by qyk29 with SMTP id 29so2418012qyk.5 for ; Wed, 06 Jul 2011 06:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EIgQdD0Zyj6PvoU8Q6qRkDsVAojp8/qF/z7frZGvnFM=; b=WPJRMfyNaSHtWifLX4VgtC5c4bKJEXER5kTuxnFsrMr6XfNDrErzifixllLzN+c8Gc DpqFwqNfkpf95WffabWRROxW45CWvv2xs2kKg3VKXLi9MCE0AfaWpDHQQYOahb5cRtuq QLZnt3/LpMFNQexokumFXJvH4A9S6Xr+5WNbQ= MIME-Version: 1.0 Received: by 10.229.95.20 with SMTP id b20mr6292613qcn.115.1309958741364; Wed, 06 Jul 2011 06:25:41 -0700 (PDT) Sender: amdragon@gmail.com Received: by 10.229.229.211 with HTTP; Wed, 6 Jul 2011 06:25:41 -0700 (PDT) In-Reply-To: <87wrfwpjdi.fsf@free.fr> References: <86iproe86u.fsf@greenrd.plus.com> <877h7xafto.fsf@free.fr> <87pqlpioew.fsf@servo.factory.finestructure.net> <87wrfwpjdi.fsf@free.fr> Date: Wed, 6 Jul 2011 09:25:41 -0400 X-Google-Sender-Auth: eJxBfAHmTjzHHSSxBngqn0Ft5qE Message-ID: Subject: Re: Dangerous space bar key (was: Preventing the user shooting themself in the foot) From: Austin Clements To: Matthieu Lemerre , Jameson Graef Rollins Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Notmuch Mail X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 13:25:44 -0000 On Jul 5, 2011 4:23 PM, "Matthieu Lemerre" wrote: > On Mon, 04 Jul 2011 17:03:51 -0700, Jameson Graef Rollins wrote: >> On Mon, 04 Jul 2011 23:36:35 +0200, Matthieu Lemerre wro= te: >> > I like to use the space (and sometimes the backspace key) to read >> > threads back and forth, but sometimes I might read stuff to quickly an= d >> > archive a thread without wanting it. It is then complex to find it bac= k >> > (especially if the thread contained a single message and I hit space >> > before actually reading the message, so I can't find it again). >> > >> > As a workaround, I have changed the space key function >> > "notmuch-show-advance-and-archive" to not archive the thread if we are >> > at the end of the thread, but to just do nothing. Thus I have to >> > expicitely archive the thread when I have finished reading it, which I >> > find much safer. >> >> I completely agree with your discomfort with the current function bound >> to space. I don't like it at all, and I similarly rebound space to be a >> much more sensible function: > > [...] > >> Notice I also made it so that this does not exit the current thread >> view. > > I patched notmuch to use exactly the same function... Given that we are > two people who independently requested for this behaviour, I think this > should at least be a customisable option, and imo the default should do > nothing and not archive the thread because of this dangerous > behaviour. And, hitting 'a' instead of space to go to the next thread is > the same number of keypresses... Make that two and a half (I haven't actually replaced this function, but only for lack of time). Had I replaced it, though, there are two variations I would have tried.=A0 Have you guys considered these and, if so, any thoughts? * Make SPC mark the *current* message read and move to the next one, rather than moving to the next and marking it read.=A0 This way, you're acknowledging the message as read once you've actually read it, rather than having notmuch mark it read before you've actually read it. notmuch's eagerness to mark things read has always bothered me. For example notmuch-show-archive-thread has the side-effect of marking the first message of the next thread read (which I may not even know exists!). An acknowledgement-based approach seems like it would address problems like this (so would better visual feedback, but that's another issue). * At the end of the thread, return to the index view.=A0 This way, if you want to archive the thread, you can still just press 'a', but if you don't, you're already set to navigate to another thread.