all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Closing a task yesterday (or changing the day cutoff to 4am)
@ 2019-02-02  0:29 Leo Gaspard
  2019-02-02  7:29 ` Marcin Borkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Leo Gaspard @ 2019-02-02  0:29 UTC (permalink / raw)
  To: emacs-orgmode

Hello!

I have a few tasks marked as `:STYLE: habit`. And I relatively often
finish one of those daily habits after midnight.

Yet, I'd like to count it as having been finished the day before, so
that day switch time happens while I sleep.

I do understand that the best fix to this problem would be to fix my
sleep schedule and to go to sleep before midnight, but, assuming I can't
fix this up, do you know if there is a workaround to either:
 * Make org-mode consider the day to switch at something like 4am
 * Automatically close a task as though it was the day before, 23:59

Currently my workaround is to close the task then manually fixup the
`SCHEDULED`, `:LAST_REPEAT:` and `:LOGBOOK:` lines to set them to the
day before, 23:59, but it's being… quite painful.

Anyway, thank you for org-mode, that allows me to be mildly annoyed at
things I wouldn't even have considered might become an issue someday
with programs I used before!

Cheers,
  Leo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Closing a task yesterday (or changing the day cutoff to 4am)
  2019-02-02  0:29 Closing a task yesterday (or changing the day cutoff to 4am) Leo Gaspard
@ 2019-02-02  7:29 ` Marcin Borkowski
  2019-02-02 15:30   ` Leo Gaspard
  2019-02-02 15:14 ` Uwe Koloska
  2019-02-02 15:15 ` Uwe Koloska
  2 siblings, 1 reply; 7+ messages in thread
From: Marcin Borkowski @ 2019-02-02  7:29 UTC (permalink / raw)
  To: Leo Gaspard; +Cc: emacs-orgmode


On 2019-02-02, at 01:29, Leo Gaspard <orgmode@leo.gaspard.io> wrote:

> Hello!
>
> I have a few tasks marked as `:STYLE: habit`. And I relatively often
> finish one of those daily habits after midnight.
>
> Yet, I'd like to count it as having been finished the day before, so
> that day switch time happens while I sleep.
>
> I do understand that the best fix to this problem would be to fix my
> sleep schedule and to go to sleep before midnight, but, assuming I can't
> fix this up, do you know if there is a workaround to either:
>  * Make org-mode consider the day to switch at something like 4am
>  * Automatically close a task as though it was the day before, 23:59
>
> Currently my workaround is to close the task then manually fixup the
> `SCHEDULED`, `:LAST_REPEAT:` and `:LOGBOOK:` lines to set them to the
> day before, 23:59, but it's being… quite painful.

You do realize you are not the first one to have that problem, don't
you?  Have you seen `org-agenda-todo-yesterday'?

;-)

Notice, however, that IMHO this is only a dirty hack.  A real solution
to the same problem, as you have noticed, is something that
I implemented a few years ago, and that was a radical change of my
sleeping patterns.  Now I seldom go to bed after 22:30, and usually get
up before 5:30.  This has too many advantages to list them in a short
email. :-) (Of course, I am aware not everyone can pull this off, also
for objective reasons.  My sister is a nurse, for example.)

> Anyway, thank you for org-mode, that allows me to be mildly annoyed at
> things I wouldn't even have considered might become an issue someday
> with programs I used before!

Not sure whether this is a compliment, but I like it:-).

--
Marcin Borkowski
http://mbork.pl

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Closing a task yesterday (or changing the day cutoff to 4am)
  2019-02-02  0:29 Closing a task yesterday (or changing the day cutoff to 4am) Leo Gaspard
  2019-02-02  7:29 ` Marcin Borkowski
@ 2019-02-02 15:14 ` Uwe Koloska
  2019-02-02 15:30   ` Leo Gaspard
  2019-02-02 15:15 ` Uwe Koloska
  2 siblings, 1 reply; 7+ messages in thread
From: Uwe Koloska @ 2019-02-02 15:14 UTC (permalink / raw)
  To: Leo Gaspard, emacs-orgmode

Am 02.02.19 um 01:29 schrieb Leo Gaspard:
> I have a few tasks marked as `:STYLE: habit`. And I relatively often
> finish one of those daily habits after midnight.
> 
> Yet, I'd like to count it as having been finished the day before, so
> that day switch time happens while I sleep.

Maybe the variable 'org-extend-today-until' can help.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Closing a task yesterday (or changing the day cutoff to 4am)
  2019-02-02  0:29 Closing a task yesterday (or changing the day cutoff to 4am) Leo Gaspard
  2019-02-02  7:29 ` Marcin Borkowski
  2019-02-02 15:14 ` Uwe Koloska
@ 2019-02-02 15:15 ` Uwe Koloska
  2 siblings, 0 replies; 7+ messages in thread
From: Uwe Koloska @ 2019-02-02 15:15 UTC (permalink / raw)
  To: emacs-orgmode

Am 02.02.19 um 01:29 schrieb Leo Gaspard:
> I have a few tasks marked as `:STYLE: habit`. And I relatively often
> finish one of those daily habits after midnight.
> 
> Yet, I'd like to count it as having been finished the day before, so
> that day switch time happens while I sleep.

Maybe the variable 'org-extend-today-until' can help.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Closing a task yesterday (or changing the day cutoff to 4am)
  2019-02-02  7:29 ` Marcin Borkowski
@ 2019-02-02 15:30   ` Leo Gaspard
  0 siblings, 0 replies; 7+ messages in thread
From: Leo Gaspard @ 2019-02-02 15:30 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: emacs-orgmode

Marcin Borkowski <mbork@mbork.pl> writes:
> You do realize you are not the first one to have that problem, don't
> you?  Have you seen `org-agenda-todo-yesterday'?

Thank you! Sounds like it'll combo nicely with `org-extend-today-until`
pointed out by Uwe, to slowly make checking tasks the day before less
and less convenient and push the sleep schedule the right way.

>> Anyway, thank you for org-mode, that allows me to be mildly annoyed at
>> things I wouldn't even have considered might become an issue someday
>> with programs I used before!
>
> Not sure whether this is a compliment, but I like it:-).

It's definitely meant to be! :)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Closing a task yesterday (or changing the day cutoff to 4am)
  2019-02-02 15:14 ` Uwe Koloska
@ 2019-02-02 15:30   ` Leo Gaspard
  2019-02-03 16:18     ` John Lee
  0 siblings, 1 reply; 7+ messages in thread
From: Leo Gaspard @ 2019-02-02 15:30 UTC (permalink / raw)
  To: Uwe Koloska, emacs-orgmode

Uwe Koloska <uwe@koloro.de> writes:
> Maybe the variable 'org-extend-today-until' can help.

Indeed, thank you!

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Closing a task yesterday (or changing the day cutoff to 4am)
  2019-02-02 15:30   ` Leo Gaspard
@ 2019-02-03 16:18     ` John Lee
  0 siblings, 0 replies; 7+ messages in thread
From: John Lee @ 2019-02-03 16:18 UTC (permalink / raw)
  To: emacs-orgmode

Also see variable org-use-effective-time

On Sat, 2 Feb 2019, at 15:30, Leo Gaspard wrote:
> Uwe Koloska <uwe@koloro.de> writes:
> > Maybe the variable 'org-extend-today-until' can help.
> 
> Indeed, thank you!
> 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-02-03 16:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-02  0:29 Closing a task yesterday (or changing the day cutoff to 4am) Leo Gaspard
2019-02-02  7:29 ` Marcin Borkowski
2019-02-02 15:30   ` Leo Gaspard
2019-02-02 15:14 ` Uwe Koloska
2019-02-02 15:30   ` Leo Gaspard
2019-02-03 16:18     ` John Lee
2019-02-02 15:15 ` Uwe Koloska

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.