Re: [O] Basic Q: Display specific property in custom agenda view
Thanks Eric, this does it! On Thu, Sep 26, 2019 at 12:27 AM Fraga, Eric wrote: > On Thursday, 26 Sep 2019 at 00:06, Nathan Neff wrote: > > Got it! Now, all I need to do is add the cool ":" functionality > > where a ":" is appended to the result if there is a result :-) > > Maybe something like > > ;; Return PROJ property or category property > (defun njn-get-proj-property() > (if (org-entry-get (point) "PROJ" t) > (concat (org-get-category) ":") > "")) > > (untested) > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d >
Re: [O] Basic Q: Display specific property in custom agenda view
On Thursday, 26 Sep 2019 at 00:06, Nathan Neff wrote: > Got it! Now, all I need to do is add the cool ":" functionality > where a ":" is appended to the result if there is a result :-) Maybe something like ;; Return PROJ property or category property (defun njn-get-proj-property() (if (org-entry-get (point) "PROJ" t) (concat (org-get-category) ":") "")) (untested) -- Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d
Re: [O] Basic Q: Display specific property in custom agenda view
Got it! Now, all I need to do is add the cool ":" functionality where a ":" is appended to the result if there is a result :-) Using %-12:(njn-get-proj-property) doesn't work like %-12:c :-( ;; Return PROJ property or category property (defun njn-get-proj-property() (or (org-entry-get (point) "PROJ" t) (org-get-category))) (setq org-agenda-custom-commands '( ("A" agenda "" ( (org-agenda-span 'day) (org-agenda-prefix-format " %-12(njn-get-proj-property) %?-12t% s") (org-agenda-include-inactive-timestamps nil))) On Wed, Sep 25, 2019 at 11:16 PM Nathan Neff wrote: > > On Wed, Sep 25, 2019 at 7:12 PM Nathan Neff wrote: > >> Hello all, >> >> My apologies for not finding this in the docs, but I'm trying to define a >> simple custom agenda view that is exactly the same as the default day >> week view, >> except the only difference is displaying a property called FOO instead of >> the CATEGORY >> property. >> >> > I found an example here: > https://lists.gnu.org/archive/html/emacs-orgmode/2016-04/msg00402.html > > Thanks, > --Nate > > >> I think it's simply a matter of setting org-agenda-prefix-format to >> something >> other than the default: " %i %-12:c%?-12t% s" but I can't find the exact >> function to call >> in place of %i. I would think there's something like >> %(get-property-of-heading(FOO)) >> >> Thanks for any advice >> --Nate >> >
Re: [O] Basic Q: Display specific property in custom agenda view
On Wed, Sep 25, 2019 at 7:12 PM Nathan Neff wrote: > Hello all, > > My apologies for not finding this in the docs, but I'm trying to define a > simple custom agenda view that is exactly the same as the default day week > view, > except the only difference is displaying a property called FOO instead of > the CATEGORY > property. > > I found an example here: https://lists.gnu.org/archive/html/emacs-orgmode/2016-04/msg00402.html Thanks, --Nate > I think it's simply a matter of setting org-agenda-prefix-format to > something > other than the default: " %i %-12:c%?-12t% s" but I can't find the exact > function to call > in place of %i. I would think there's something like > %(get-property-of-heading(FOO)) > > Thanks for any advice > --Nate >
[O] Basic Q: Display specific property in custom agenda view
Hello all, My apologies for not finding this in the docs, but I'm trying to define a simple custom agenda view that is exactly the same as the default day week view, except the only difference is displaying a property called FOO instead of the CATEGORY property. I think it's simply a matter of setting org-agenda-prefix-format to something other than the default: " %i %-12:c%?-12t% s" but I can't find the exact function to call in place of %i. I would think there's something like %(get-property-of-heading(FOO)) Thanks for any advice --Nate