emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Payas Relekar <relekarpayas@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] Add option for category to be derived from #+TITLE instead of file name [9.6 ( @ /nix/store/jv2kmcbm79k4g6i778hblw98l0pxxghf-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.6/)]
Date: Sat, 03 Dec 2022 12:49:13 +0530	[thread overview]
Message-ID: <87a645dk3m.fsf@gmail.com> (raw)


After discovering categories
(https://orgmode.org/manual/Categories.html) I'd like to use them
everywhere because it makes agenda cleaner. But currently, it has only
below options to get this value (in order of precedence, highest to lowest)

- #+CATEGORY property (if present)
- file name

While I can set the property in my capture templates, it will only take
effect on newly created files and will not retroactively apply all the
previously created ones.

As such, I'd like to propose adding variable to allow user to specify
whether #+TITLE property should be preferred over #+CATEGORY. The
default can continue as is, but if the user chooses to perfer title,
order of preference will look like (highest to lowest):

- #+TITLE (if present)
- #+ CATEGORY (if present)
- file name

Will something like this be possible?

Thanks,
Payas

Emacs  : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0)
Package: Org mode version 9.6 ( @ /nix/store/jv2kmcbm79k4g6i778hblw98l0pxxghf-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.6/)
--


             reply	other threads:[~2022-12-03  7:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-03  7:19 Payas Relekar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-12-03  7:31 [BUG] Add option for category to be derived from #+TITLE instead of file name [9.6 ( @ /nix/store/jv2kmcbm79k4g6i778hblw98l0pxxghf-emacs-packages-deps/share/emacs/site-lisp/elpa/org-9.6/)] Payas Relekar

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=87a645dk3m.fsf@gmail.com \
    --to=relekarpayas@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).