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 2ApLDiBda18cFAAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 14:35:12 +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 oHUwCiBda19TFwAAbx9fmQ (envelope-from ) for ; Wed, 23 Sep 2020 14:35:12 +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 B220A9404CA for ; Wed, 23 Sep 2020 14:35:11 +0000 (UTC) Received: from localhost ([::1]:55796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL5rS-0005Lj-JC for larch@yhetil.org; Wed, 23 Sep 2020 10:35:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL5qt-0005Ji-Bu for emacs-orgmode@gnu.org; Wed, 23 Sep 2020 10:34:35 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:52737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL5qr-0005Qe-I1 for emacs-orgmode@gnu.org; Wed, 23 Sep 2020 10:34:35 -0400 Received: by mail-pj1-x102f.google.com with SMTP id bw23so3338042pjb.2 for ; Wed, 23 Sep 2020 07:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:references:user-agent:from:to:cc:subject:reply-to :in-reply-to:date:mime-version; bh=lUeA0aWetnRuuP+XoLU0d3lgFM6QMw3bwPyCyF/Zg4U=; b=WNRwzzDWThnc1MKUsEIFuaST59kFI5TQqWnIiEJY4w4lp3Q+gCDid8hN4i9bZzytdp NX76m7ZiYU4f68Qg84dFBVUP5KkbCmEWym4Q8dmqjIeIhCGmS3ZAhLLfq0s7wScQObID rNRAthBjTgF2qWOjznsKZ46bYKS77undF2AZmw1YH3OwEWuaapR19Tfc8+j00n/mMfB0 iXYUxplmx8bKXqMqNYE//BLVtnQE8agSSdIMx+qJZtC4WWKYU3fRIGSlf5KmHAgumuWE JoGCHiWadPS5qTFX7qwqBrWXbwNSlAB8K8bj88aB1COxHuLFwazwctVjJDfg56PcOTQR JjkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:references:user-agent:from:to:cc :subject:reply-to:in-reply-to:date:mime-version; bh=lUeA0aWetnRuuP+XoLU0d3lgFM6QMw3bwPyCyF/Zg4U=; b=JYCkeCYSkNUI80J92+HXcSeMDPHzuPR1L9vK47odc1hToiZbN0URAD128KLqsfz+Be 1YggUvdGh/eXcHxlsI1kgi6wdX2b85UgZ1WDijIcKxxbPHMhjVxSGkRbQt/+7MF+vBDo 12GCNfkteGJgqKnNiS2RmYYIIdtkxnpIJBcEcraJM5cqZ3t3zSGCL0pKu3Ey6HIcXBUp 1mVf2UcRdGcOXIj1NFktG5npMovQF9Ef7PsYlIShEg9huTSO518Yh1X6ukZCimiL73Fd xLVVCG0e9kfnywq+4Qgs4QYRtiynmvPzilWGiQxTym1H6r8W3BT3NACUsCyEqngV8PIZ dIZg== X-Gm-Message-State: AOAM532s+MAMWorQmMqWljO8KA9hsgCtoLdqzzaWMcBXYJI4XyJGenh0 p9Yc/h1zS/y2tFND1hBxpDuYDjX5mkaQ X-Google-Smtp-Source: ABdhPJx5ULJ4MLLlF7kE8qghdmwqaTxdWKyKwze7qrU6ZT4DBN0KUKiORTV0vq3P25pmb1funSIGLg== X-Received: by 2002:a17:902:a402:b029:d2:21a:d994 with SMTP id p2-20020a170902a402b02900d2021ad994mr147527plq.52.1600871671734; Wed, 23 Sep 2020 07:34:31 -0700 (PDT) Received: from dark.gmail.com ([150.109.103.155]) by smtp.gmail.com with ESMTPSA id o19sm7748pfp.64.2020.09.23.07.34.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 07:34:31 -0700 (PDT) Message-ID: <5f6b5cf7.1c69fb81.47113.0045@mx.google.com> X-Google-Original-Message-ID: <87blhwk1e4.fsf@numbchild@gmail.com> References: <871rjhh3c2.fsf@gnu.org> <90726a9f45332a13802d15581c2da204@isnotmyreal.name> <875z8jpljx.fsf@luisa.c0t0d0s0.de> User-agent: mu4e 1.5.5; emacs 28.0.50 From: stardiviner To: Michael Welle Subject: Re: Support for simultaneous running clocks? In-reply-to: <875z8jpljx.fsf@luisa.c0t0d0s0.de> Date: Wed, 23 Sep 2020 22:34:27 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=numbchild@gmail.com; helo=mail-pj1-x102f.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: -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-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: , Reply-To: numbchild@gmail.com Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=WNRwzzDW; dmarc=pass (policy=none) header.from=gmail.com; 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.71 X-TUID: A9OGG9coPFja Michael Welle writes: > Hello, > > Samuel Wales writes: > >> more than one clock can be useful, but maybe need not be org-related, >> even if that would be nice? for example, your laundry is due in 45m, >> tea will be steeped in 8m, etc. > for that exactly that use case ;) I have a small shell script that > creates at jobs and pops up a msg box when laundry is due. With an elisp > wrapper it's easy to M-x it from Emacs. Nothing fancy or elaborated, but > it works for me. Like this, you're just using system. Not Org Mode. Clock need to clock specific headline tasks or something else. Well, sure, if user in similar case, of course can use shell script, that will be more convenient. Anyone would also like to add this feature? # ============================================================================== I've looked command ~org-clock-in~ source code around, I summarized some parts might related or be affected: - clock under different headlines for multiple clocking. - clock in org-agenda buffer should similar as above. - clock in/out hooks should still working as before. - the mode-line lighter of displaying clock need to be changed (my idea is use mouse hover to display all running clocks in Emacs tooltip). # ============================================================================== Here is some thought about how to implement it, just some thought, not code prototype. (Copied text from my previous message, and added something.) - Most clock commands I uses is clocking from headline on in org-agenda, or even from org-capture. Then clock out. If support multiple simultaneous clocks. Then might need to use some extra arguments like headline location. About this, I think should not be much complexity. - Need to use different variable to maintain all running clocks. - If there are some case have not considered, can also be supported for new feature. - maybe the mode-line clocking might need to adjusted. Anyone have good idea? + If only one clock, then display clocking task tile. + If have more than one clocks, then display clock numbers? + Use mouse-hover tooltip to display currently all running clocks. - But this new feature will bring more usage benefits. Like time tracking on different tasks; project top-level headline and sub-task simultaneous clocking for projects; and more accurate time statistics output on time-block etc. Also user can start new clock without interrupt old clock, for example, user defined an org-capture template will auto start a clock, but don't want to interrupt current clock. # ============================================================================== After this think over, I might want to take a try. I will dig deeper in source code. Come back later. -- [ stardiviner ] I try to make every word tell the meaning that I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3