From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2Lt8NTh0xl4fdgAA0tVLHw (envelope-from ) for ; Thu, 21 May 2020 12:29:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +GEzMTh0xl5fUgAAbx9fmQ (envelope-from ) for ; Thu, 21 May 2020 12:29:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E7F7F940429 for ; Thu, 21 May 2020 12:29:43 +0000 (UTC) Received: from localhost ([::1]:38816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbkKT-0000KQ-Ci for larch@yhetil.org; Thu, 21 May 2020 08:29:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbkK8-0000Fe-HC for emacs-orgmode@gnu.org; Thu, 21 May 2020 08:29:20 -0400 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:44629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbkK7-0000wE-MN for emacs-orgmode@gnu.org; Thu, 21 May 2020 08:29:20 -0400 Received: by mail-qk1-x729.google.com with SMTP id b6so6923095qkh.11 for ; Thu, 21 May 2020 05:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:user-agent:from:to:subject:message-id:date:mime-version; bh=CokgXFhT4fDuP/CAbsA81k15gDVoSOQ5Z4Fp5GwO+N8=; b=oB8LURmPFSXBr48KgmnYOCO4PAFs28VddmVGFZWRrdz0TJ9L7fiSYM72WcgOvwX6fy SqNjULv8cbrUf5y9tbfWI97/AI3lhVuJDfSi26B3Pv/PFd7ofhLrB8oQedua+JBcimce rS0AlHGH5E0CqzIUKIzWmf1S5cyRSrXVm5U6vL3ps7xSLuzRMSP+EDegi1bFx0tW7TEu GQ2t859veCmyyTZhfwKDk9YIvm4buPrImbQQYfjd/BAi/2wwtWSQmEYvBWSF7mBgrqPk T8irj9t3wQDSaTn7U8cqkC+GeEk8pp97c3dmmNI50qgosk9M2LaB3VIIpeTfqR4BAanK LKYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:user-agent:from:to:subject:message-id :date:mime-version; bh=CokgXFhT4fDuP/CAbsA81k15gDVoSOQ5Z4Fp5GwO+N8=; b=V46RsHe3QZWTb4oM7bjf7YheVzUUF8R/dD1nuow0r7khVka+gCzvV8+4gjPY8D9Fjj y7eai63jUEalPgX+24HygXeZiQmTPvqaLLqYM16plUyx2qi4x+4W6C6z3HpMpuA05CL4 4A85Ru9mndCk6TlEsDwE+Dy7nuOgGPsa9db3HVt3i/5p3qta00SLU8RXDH3ndvWIu3UT vI9s2D5orZAIL8rFBG4i9m1x16dGxr5Ab2gFKpftbn4S5o2SNw2QH9s7S1c+onhvelxI m6za9yYTtY++CjUAouS75SHOdrNxcwQxGZucG+L/PrISLppi94TdrqmWUkLRXZdv7uQT loMw== X-Gm-Message-State: AOAM533ZVAI/U63Pys6RmS7tLY1POEY2HDaYhFAMTHOC2dcAoZomoE1H 8vSKzGFgT1VmMjFJlaxGWbat8BeGEss= X-Google-Smtp-Source: ABdhPJyFlYPRXCgRZGc8DGi3e44OWfSwE633x2kKeyKeq9R4KNMKQUNlFkpHvOohuKNJc22S2vPR1g== X-Received: by 2002:a37:e50b:: with SMTP id e11mr10257238qkg.224.1590064157877; Thu, 21 May 2020 05:29:17 -0700 (PDT) Received: from gusbrs-laptop ([191.30.253.93]) by smtp.gmail.com with ESMTPSA id g57sm5084536qtb.48.2020.05.21.05.29.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 May 2020 05:29:17 -0700 (PDT) User-agent: mu4e 1.4.6; emacs 26.3 From: Gustavo Barros To: emacs-orgmode@gnu.org Subject: A small idea to simplify (further) time input in the date/time prompt Message-ID: <875zcpqxnq.fsf@gmail.com> Date: Thu, 21 May 2020 09:29:13 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=gusbrs.2016@gmail.com; helo=mail-qk1-x729.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=oB8LURmP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: BH2MLEfeFcQ1 Hi All, the Org date/time prompt does deliver the promise in the manual that we "start getting annoyed by pretty much any other way of entering a date/time out there". It has indeed become so for me, as the date/time prompt is very neat. But there is one place where input could be even shorter, which is time input. Currently, time input mostly requires "hour colon minutes", thus a full time specification even when minutes are "00". And "mostly" because you can get away with that last part if you use am/pm convention (alas, I do not belong to those strange corners of the world). Besides, the colon is a shift-key in many common keyboard layouts (from a simple search, it seems to be so in British, American, US International, German, Spanish, and Portuguese layouts, it doesn't seem to be so for the French layout though). So I'd like to suggest a simplification there, which is: a string in the format "hour h minute" (that's small caps letter "H"), but in which "hour h" would also be recognized as a full hour and "00" minutes presumed. The mnemonic is obvious for "hour", which works well for English, French, Spanish, Portuguese, not so much for German. With this, we'd have some example inputs, and their respective results: 8h -> 08:00 10h30 -> 10:30 18h -> 18:00 9h-10h -> 09:00-10:00 9h30-10h -> 09:30-10:00 14h+1h -> 14:00-15:00 This would ease input in two ways. First, it presumes the minutes in full hours, thus dispensing with this typing. Considering full hours are a very common case for scheduling and appointments, that shortening should be significant. It is also one key shorter than the am/pm way for full hours, and two keys shorter for non full hours in the same case. Second, it is easier to type "h" than it is to type ":", it is easier to reach and it is not a shift-key, so the chord is gone too. One corner case which will arise is if "zero hour" should also be presumed. Arguably midnight is not that common in most people's agenda, and could be either "0h" or "24h", so we should not really worry in shortening something like "midnight and thirty minutes" as "h30". But this is more tricky with duration specification, that is with "+". In this case minutes not comprising a full hour might well be common. So, how to specify an appointment starting at 10:00 that lasts 30 minutes? Some alternatives could be: "10h+0h30", "10h+h30", "10h+30m". On a first thought I like the last one better, but I'm really not sure what the best approach should be here. Needless to say, current input conventions should not change. This is just thought as an additional way of inputting time, alongside the ones which already exist. I'm unaware of any use of "h" in the date/time prompt (or of "m", for that matter), so I presume this should be viable without conflicting with other currently recognized input forms. That's the small suggestion I had to make for the date/time prompt. I guess, technically, this should be filed as "feature request". But it is just an idea I bring to your consideration, in the hope someone else here also likes it. Best, Gustavo.