From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Jesse Johnson <holocronweaver@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: sort habits by priority
Date: Fri, 28 Apr 2017 00:52:55 +0200 [thread overview]
Message-ID: <87lgqlzcmw.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <86583c1c-ed6a-6229-0e46-f48052edfa15@gmail.com> (Jesse Johnson's message of "Thu, 27 Apr 2017 15:33:05 -0700")
Hello,
Jesse Johnson <holocronweaver@gmail.com> writes:
> I want to sort habits by priority, such that priority overrides all
> other criteria (schedule, deadline, consistency, etc.).
>
> In attempting to implement this I discovered that
> org-habit-get-priority is an inline function and thus cannot be
> overridden by the user. There seems to be no straightforward way to
> accomplish my goal without editing the org source code directly.
>
> I am not the only one to run into this problem:
> http://stackoverflow.com/questions/37200762/sort-todays-habits-by-priority-in-main-agenda-view
>
> I think the best solution is either to make org-habit-get-priority
> a regular function (assuming this doesn't cause a serious performance
> degradation) or to add user-customizable variable(s) which can
> configure how habits are prioritized.
>
> Thoughts?
You can implement your own sorting strategy. See
`org-agenda-cmp-user-defined'. So you don't need to change or override
this function.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2017-04-27 22:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-27 22:33 sort habits by priority Jesse Johnson
2017-04-27 22:52 ` Nicolas Goaziou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgqlzcmw.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=holocronweaver@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).