public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
* [Howm-eng 117]  Defaults for incomplete dates
@ 2016-09-26 14:51 areiner
  2016-09-27 12:00 ` [Howm-eng 118] " khi
  0 siblings, 1 reply; 2+ messages in thread
From: areiner @ 2016-09-26 14:51 UTC (permalink / raw)


Hello,
and thanks again for your help with my last wish!  Here is another one:

When entering a date, current howm assumes that any parts not specified 
are the same as for the current date (i.e., either "today" or the date 
previously displayed).  It seems to me, that defaulting to the *closest* 
date instead would be far preferable and more natural, especially 
towards the end of the year when I am far more likely to enter dates for 
the next year, rather than the current one.

So, e.g., starting from today's date, i.e., [2016-09-26],

- entering 5 would result in [2016-10-05] (as this is closer than 9/5 to 
  9/26)  (current howm: [2016-09-05]);

- or, entering 2-15 would give me [2017-02-15] (closer than the same 
  date in 2016)  (current howm: [2016-02-15]);

- whereas entering 8-20 would give me [2016-08-20] (as is the case for 
  current howm).

In the case of a tie, i.e., when both candidate dates, past and future, 
differ by the same amount from the current one, I would opt for the 
later one, as I am more likely to enter a future reminder than to record 
something long past; thus, e.g., again starting from [2016-09-26], 
entering 11 should yield [2016-10-11], rather than [2016-09-11], both of 
which are 15 days from the starting date.

I hope that the idea is clear from this sketch; obviously, the same 
logic should apply to all parts of the dates.  Certainly, howm already 
has everything that is needed as it computes and displays date 
differences all the time, e.g. in todo and schedule buffers.

I would appreciate it if you could show me how to make howm behave this 
way.

Thanks a lot in advance,

Albert.


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

* [Howm-eng 118] Re: Defaults for incomplete dates
  2016-09-26 14:51 [Howm-eng 117] Defaults for incomplete dates areiner
@ 2016-09-27 12:00 ` khi
  0 siblings, 0 replies; 2+ messages in thread
From: khi @ 2016-09-27 12:00 UTC (permalink / raw)


Hi, Albert san.

There is a hidden option that is related to your idea.

;; force future date for "C-c , d" (M-x howm-insert-date)
(setq howm-insert-date-future t)

I'll consider its extension.

Do you like similar behavior when you hit RET on the text
like "2016-09-01"?
Which date should be chosen in this case,
closer candidate from 2016-09-01, or closer candidate from today?

-- 
khi at users.sourceforge.jp


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

end of thread, other threads:[~2016-09-27 12:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-26 14:51 [Howm-eng 117] Defaults for incomplete dates areiner
2016-09-27 12:00 ` [Howm-eng 118] " khi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).