* Headline text special property @ 2014-09-16 14:48 Brett Witty 2014-09-16 16:36 ` Thorsten Jolitz 0 siblings, 1 reply; 3+ messages in thread From: Brett Witty @ 2014-09-16 14:48 UTC (permalink / raw To: Org mailing list [-- Attachment #1: Type: text/plain, Size: 219 bytes --] Hi, Is there a special property that contains the text of a headline but not the stars, todo, tags or any of that other data? Alternatively, is there a way to clean up %ITEM before giving it to a column-view? BrettW [-- Attachment #2: Type: text/html, Size: 285 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Headline text special property 2014-09-16 14:48 Headline text special property Brett Witty @ 2014-09-16 16:36 ` Thorsten Jolitz 2014-09-18 11:28 ` Brett Witty 0 siblings, 1 reply; 3+ messages in thread From: Thorsten Jolitz @ 2014-09-16 16:36 UTC (permalink / raw To: emacs-orgmode Brett Witty <brettwitty@brettwitty.net> writes: Hi, > Is there a special property that contains the text of a headline but > not the stars, todo, tags or any of that other data? not a property, but functions: ,----[ C-h f org-heading-components RET ] | org-heading-components is a compiled Lisp function in `org.el'. | | (org-heading-components) | | Return the components of the current heading. | This is a list with the following elements: | - the level as an integer | - the reduced level, different if `org-odd-levels-only' is set. | - the TODO keyword, or nil | - the priority character, like ?A, or nil if no priority is given | - the headline text itself, or the tags string if no headline text | - the tags string, or nil. `---- * TODO Test :mytag: #+BEGIN_SRC emacs-lisp (save-excursion (outline-previous-heading) (nth 4 (org-heading-components))) #+END_SRC #+results: : Test or ,----[ C-h f org-get-heading RET ] | org-get-heading is a compiled Lisp function in `org.el'. | | (org-get-heading &optional NO-TAGS NO-TODO) | | Return the heading of the current entry, without the stars. | When NO-TAGS is non-nil, don't include tags. | When NO-TODO is non-nil, don't include TODO keywords. `---- #+BEGIN_SRC emacs-lisp (save-excursion (outline-previous-heading) (org-get-heading t t)) #+END_SRC #+results: : Test -- cheers, Thorsten ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Headline text special property 2014-09-16 16:36 ` Thorsten Jolitz @ 2014-09-18 11:28 ` Brett Witty 0 siblings, 0 replies; 3+ messages in thread From: Brett Witty @ 2014-09-18 11:28 UTC (permalink / raw To: Thorsten Jolitz; +Cc: Org mailing list [-- Attachment #1: Type: text/plain, Size: 1702 bytes --] Thanks! It'd be nice if there was a way to turn this into a property for easy dynamic columnview blocks, but I guess you can't have everything :) BrettW On Wed, Sep 17, 2014 at 2:36 AM, Thorsten Jolitz <tjolitz@gmail.com> wrote: > Brett Witty <brettwitty@brettwitty.net> writes: > > Hi, > > > Is there a special property that contains the text of a headline but > > not the stars, todo, tags or any of that other data? > > not a property, but functions: > > ,----[ C-h f org-heading-components RET ] > | org-heading-components is a compiled Lisp function in `org.el'. > | > | (org-heading-components) > | > | Return the components of the current heading. > | This is a list with the following elements: > | - the level as an integer > | - the reduced level, different if `org-odd-levels-only' is set. > | - the TODO keyword, or nil > | - the priority character, like ?A, or nil if no priority is given > | - the headline text itself, or the tags string if no headline text > | - the tags string, or nil. > `---- > > * TODO Test :mytag: > > #+BEGIN_SRC emacs-lisp > (save-excursion > (outline-previous-heading) > (nth 4 (org-heading-components))) > #+END_SRC > > #+results: > : Test > > or > > ,----[ C-h f org-get-heading RET ] > | org-get-heading is a compiled Lisp function in `org.el'. > | > | (org-get-heading &optional NO-TAGS NO-TODO) > | > | Return the heading of the current entry, without the stars. > | When NO-TAGS is non-nil, don't include tags. > | When NO-TODO is non-nil, don't include TODO keywords. > `---- > > #+BEGIN_SRC emacs-lisp > (save-excursion > (outline-previous-heading) > (org-get-heading t t)) > #+END_SRC > > #+results: > : Test > > -- > cheers, > Thorsten > > > [-- Attachment #2: Type: text/html, Size: 2384 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-18 11:29 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-09-16 14:48 Headline text special property Brett Witty 2014-09-16 16:36 ` Thorsten Jolitz 2014-09-18 11:28 ` Brett Witty
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.