emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jesse Johnson <holocronweaver@gmail.com>
To: emacs-orgmode@gnu.org
Subject: sort habits by priority
Date: Thu, 27 Apr 2017 15:33:05 -0700	[thread overview]
Message-ID: <86583c1c-ed6a-6229-0e46-f48052edfa15@gmail.com> (raw)

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?

Jesse

             reply	other threads:[~2017-04-27 22:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27 22:33 Jesse Johnson [this message]
2017-04-27 22:52 ` sort habits by priority Nicolas Goaziou

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=86583c1c-ed6a-6229-0e46-f48052edfa15@gmail.com \
    --to=holocronweaver@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).