From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SKyYJz36imP6pgAAbAwnHQ (envelope-from ) for ; Sat, 03 Dec 2022 08:26:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MByHJz36imO40wAAauVa8A (envelope-from ) for ; Sat, 03 Dec 2022 08:26:53 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 735DE3DC36 for ; Sat, 3 Dec 2022 08:26:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1MuM-0000Zj-89; Sat, 03 Dec 2022 02:25:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p1MuK-0000YG-Bl for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 02:25:56 -0500 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1MuI-0003Q4-Nb for emacs-orgmode@gnu.org; Sat, 03 Dec 2022 02:25:56 -0500 Received: by mail-pg1-x52b.google.com with SMTP id q71so6172046pgq.8 for ; Fri, 02 Dec 2022 23:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=aEmGblkqqMool42xowKRNMK4RA49SzDtdPBR66c9wNs=; b=FjcYyhfnJkWzcYw7jEkNVeECyreX47c0/KX9B/3QBKlv7XjsFZjBV7JoJDFKCF3sDS glZm4dFC+9eNn1IOdxE+tH5/f8aADWwr9v6Nd0N+UZ3h1mS1XRh+jgj3n8Rz2ILLNY86 WtEEiC3b3RyTLHr39GV3mHyqJzxkvgfP3z+WunORWZfJ7UiQrYwVrPcMVkUE/qJT4nKg EDx7KOEIo1IBYSaXRr5csDM+RXS9zPOU4SwBTeqKmS/QqKduDJIqXEdr7A8S795AwTed udeoKGZspB7ffCzFt5CJmtJ5vlu54Ol68x+Z7uXDIwz03Z9RFmtccNcue2pmt4cypKKO nIAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aEmGblkqqMool42xowKRNMK4RA49SzDtdPBR66c9wNs=; b=IPGHqTLLbgvnJINVHuPdvn2BsAIfg5cWp1H1PyyNBapQN8hti+B1aag+RsL22zClPl L6IdGK3xkiyfW5Bjia33Co90gZqlu1vupqzjEHZktstW23g/BVzBhkeTzLj3ptmYTEZu YRCX7YDVObEspCYmb15bW/ItnUhOdQtsg0K4SyRBdp/X/iFzvAjeNjUTVmuzNeL2azzz tm6462I74Wubyq/uFYNaGvIFQHHp2pJkKPDjxDhjCCDeJ1F8Oytw++Kab1k/J7Xz5XGw GgI8ApUnMdXrF3kMskp3Ub0eJxA9JGnuLSUUPMuQzaZ8WuIIvHVP3uFZy80dyfTR3+kd rQNw== X-Gm-Message-State: ANoB5pnGFOJ0r9CNweaAdK+Uvwmp5qtWD2/sduFZOxWJ9Yd/BjbGezea lH0ygOQi4VNrs/uUOkoMrMgEF9dAv8w= X-Google-Smtp-Source: AA0mqf6y1YjaviZj3jqBkACyY8tLjrqt3FSU1tnBQiZBjugeYmB47znqrpo5cq1w1PZXsLGCXNaKDw== X-Received: by 2002:a05:6a00:35cd:b0:573:787c:c7a4 with SMTP id dc13-20020a056a0035cd00b00573787cc7a4mr65509753pfb.37.1670052352532; Fri, 02 Dec 2022 23:25:52 -0800 (PST) Received: from localhost ([150.107.26.21]) by smtp.gmail.com with ESMTPSA id 83-20020a621956000000b005748029bab8sm6135298pfz.156.2022.12.02.23.25.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Dec 2022 23:25:51 -0800 (PST) User-agent: mu4e 1.8.11; emacs 30.0.50 From: Payas Relekar 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 Message-ID: <87a645dk3m.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=relekarpayas@gmail.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670052413; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aEmGblkqqMool42xowKRNMK4RA49SzDtdPBR66c9wNs=; b=RKLTMaRpgR+dQfATSgfV88AdK03QXplZSbydiv/4hKI6ySBIQJr8G653uwx9fBK/NeKvkT nOpZM2eQffZXZEK9Jzs59fVfkZyOqIz/S5JYuQ02d/k5iV2/ztO4VLiVMQhtXAFJTRTFKg hnAC5WmmdLIh12S9OnU+rK2nwmtUtC/RV+n5+3HWQRG4u3s4JNXb521omwNwOE//FxalZF Qnn4aGI3ZGqM9jxmUB93akT+LcakJPz8xkzNplgYrP5Or0ZORSMCArkW+3mPu7KX0QwNkB 8QrUxkMwIe9oTioiGlliltFgKoHFYtXU333hEsGfraWZmsAE7tOq2WxZyaTjKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670052413; a=rsa-sha256; cv=none; b=Y8s0amxxcQ10uhs4fehZlV0uV08nOKi/69OJWMEf4okKj6QP02FwFRiO72DJgg3vPl/hoY ZE2WNDfe5maCC5TOhp/TkYGEQbLSOMWmX/v9ZH+xpDYmnCHpHGzVOVs+7mocizez8kIpYX AWd44ldFFntEmlPY35/H4u1nITzlOudcGDxzzrxa2bvjRVei/FlB/FNzIpyXE+qvNLgQ8P 5ZNK+sV207/2UNCZjLoeVt5IYeUPjRbbfl2HREjJ6gkoPFU0FoLnfbAls2bH33t2JTO323 MHyunIJEcQrH7fZE8IsD9lGSYUVEn2iIOI9IgRy3Efr9H//gynVmJQdEOECfug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FjcYyhfn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FjcYyhfn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 735DE3DC36 X-Spam-Score: -2.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: QwFhEGFphIVh 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/) --