Re: [O] Word-counting in a subtree

2017-08-22 Thread Nicolas Goaziou
Hello, Jacopo De Simoi writes: > this has the drawback that it also counts words in the header line; except > this, could work as a temporary solution, but I'd still like to cook up some > tag integrated with org What about something like this (untested): (defun my-count-words (&optional i

Re: [O] Word-counting in a subtree

2017-08-22 Thread Simon Guest
[copy to list] A few years ago I wrote org-wc.el, which is on MELPA. It uses overlays to display a word count against each heading. Just install the package, and run org-wc-display. https://github.com/tesujimath/org-wc Hope that helps. cheers, Simon On 22 August 2017 at 09:34, Jacopo De Simo

Re: [O] Word-counting in a subtree

2017-08-21 Thread Jacopo De Simoi
On Monday, August 21, 2017 2:09:25 PM EDT Eric S Fraga wrote: > On Monday, 21 Aug 2017 at 13:21, Jacopo De Simoi wrote: > > tl;dr > > > > Is there a way to create a token on a subtree header that would count > > words in the subtree and [optionally] mark a maximum allowed number of > > words? > I

Re: [O] Word-counting in a subtree

2017-08-21 Thread Eric S Fraga
On Monday, 21 Aug 2017 at 13:21, Jacopo De Simoi wrote: > tl;dr > > Is there a way to create a token on a subtree header that would count words > in > the subtree and [optionally] mark a maximum allowed number of words? I cannot help you directly but what I do is: narrow the region to the sub-t

[O] Word-counting in a subtree

2017-08-21 Thread Jacopo De Simoi
tl;dr Is there a way to create a token on a subtree header that would count words in the subtree and [optionally] mark a maximum allowed number of words? Long question I am preparing an application and filling out many forms; each section of the form (that I rewrote as a subtree-header) has a