gpt4 book ai didi

Emacs 组织模式 : how to adjust previous clock if I forget to clock out

转载 作者:行者123 更新时间:2023-12-03 20:15:22 25 4
gpt4 key购买 nike

现在使用 emacs org 模式大约一个月来跟踪我所有的项目和任务。

我全天为所有事件计时,而不仅仅是与工作相关的事件。

我的问题是——我经常忘记打卡参加一项新事件(比如吃午饭)。当我返回并打卡回到工作事件时,我需要先打卡吃午饭,然后调整它的开始时间戳。这对于午餐事件来说是可以的,但是它并没有调整我吃午餐之前之前的工作工作相关任务,所以净是之前的任务与午餐重叠并且不准确。

有没有办法改变行为,以便调整之前的任务?我不希望使用空闲功能来执行此操作;我希望自动进行调整。

最佳答案

预计到达时间:这也再次出现在邮件列表中,并且似乎最近对代码库进行了提交,它提供了另一种 [也许更好] 的方式来做到这一点。见 the mailing list discussion对于 Bastien(组织模式维护者)的输入:

S-M-[up/down] on a clock timestamp will try to update the previous/next clock timestamp too.



(实际上, bzg's 下面的建议就是这个东西......它只是没有包含上面的快捷方式,所以我认为他的答案看起来比上面的更难/更不吸引人,这真的很容易。)

您也可以使用 org-resolve-clocks .见 Resolving idle time .

本质上,您有一些标题并被打卡:
* Work
:LOGBOOK:
CLOCK: [2012-07-25 Wed 8:26]
:END:

我吃完午饭回来,意识到我忘了打卡下类和吃午饭。

我跑 M-x org-resolve-clocks并得到这个提示:
Select a Clock Resolution Command:

i/q/C-g Ignore this question; the same as keeping all the idle time.

k/K Keep X minutes of the idle time (default is all). If this
amount is less than the default, you will be clocked out
that many minutes after the time that idling began, and then
clocked back in at the present time.
g/G Indicate that you "got back" X minutes ago. This is quite
different from 'k': it clocks you out from the beginning of
the idle period and clock you back in X minutes ago.
s/S Subtract the idle time from the current clock. This is the
same as keeping 0 minutes.
C Cancel the open timer altogether. It will be as though you
never clocked in.
j/J Jump to the current clock, to make manual adjustments.

For all these options, using uppercase makes your final state
to be CLOCKED OUT.

既然我想 K等 X 分钟的工作,打卡,然后打卡进午餐,我按 K ,这提示我(现在是~1:30p):
Keep how many minutes? (default 303) 

我可以按 Enter 保留所有这些,但假设我在 12 点左右吃午饭。这大约是 3.5 小时的工作,所以我将输入 210 RET .

现在,我进入午餐并得到这个提示:
You stopped another clock 101 minutes ago; start this one from them? (y or n)

我输入 y RET午餐在上午 11:56 打卡。如果您从午餐回来又开始工作(或开始工作却忘记了),请重复此过程:
M-x org-resolve-clocks
K
____ RET ;; for how many minutes you at lunch
C-c C-x C-i ;; to clock in on Work again
y RET ;; clock in at when you stopped lunch

最终结果:
* Work
:LOGBOOK:
CLOCK: [2012-07-25 Wed 12:41]
CLOCK: [2012-07-25 Wed 8:26]--[2012-07-25 Wed 11:56] => 3:30
:END:

* Lunch
:LOGBOOK:
CLOCK: [2012-07-25 Wed 11:56]--[2012-07-25 Wed 12:41] => 0:45
:END:

希望这可以帮助。组织模式时钟向导, Bernt Hansen ,向我解释了 via an org-mode mailing list thread .

关于Emacs 组织模式 : how to adjust previous clock if I forget to clock out,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11143645/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com