r/orgmode • • Mar 17 '21

question Book progress tracking

Does anyone have any ideas how best to track this? I don't need to-the-page tracking, just the number of chapters I've read and the number I've got left.

0 Upvotes

25 comments sorted by

15

u/nv-elisp Mar 17 '21

Consider that people are taking their own time to try and help you when you reply. Your replies have been condescending and inconsiderate:

Whoopee

That's a sh** load of lines for a book with even a moderate number of chapters.

See post.

You're wasting everyone's time (yes, even your own) with these responses.

-5

u/hjfbdsbfc Mar 17 '21

Right, and you think "Personally I read books, not process them" wasn't fucking condescending.

I didn't ask what anybody else does, I asked for how I might do what I wanted to do. It appears that there isn't a solution, instead everyone is being defensive and asking why I would want to do what I asked. Dog forbid that anyone would want to do something they don't do, eh.

"That's a sh** load of lines for a book with even a moderate number of chapters." is a statement of fact. One line for each chapter of even one moderate sized book would be unwieldy.

As for "See post", well since I want to track the progress of my book reading, and that's what I wrote in my post, why do you think I should repeat myself? Do you think that would add any value?

To be honest this is exactly the attitude I've seen plenty of other times in this sub. Your arrogance is astounding given the ignorance on display.

3

u/nv-elisp Mar 17 '21 edited Mar 17 '21

It appears that there isn't a solution

Someone gave you a solution which you didn't prefer. Fair enough. When asked for more information about what you're trying to do, you refused. Should people just keep guessing at what it is you want until they land on a solution you like?

To be honest this is exactly the attitude I've seen plenty of other times in this sub.

If the attitude is "trying to help a complete stranger despite their apparent lack of resourcefulness and unwillingness to put effort into their own questions", then you're right. That's abundant on most subreddits.

Your arrogance is astounding given the ignorance on display.

I feel it's much more arrogant to expect people to provide support and refuse to cooperate with them than it is to point it out.

Best of luck and I hope your next question benefits from this.

-3

u/hjfbdsbfc Mar 17 '21

When asked for more information about what you're trying to do, you refused.

All the information is present in my original post. But hey, I'm repeating myself. Are you hard of reading?

I feel it's much more arrogant to expect people to provide support and refuse to cooperate with them than it is to point it out.

Interesting that you think I "expect" anything of the sort. I take it your mind-reading isn't going too well.

5

u/nv-elisp Mar 17 '21 edited Mar 17 '21

Are you hard of reading?

You know, I may be. I just reread the original post and now I get what you want. My apologies. You can execute a source block to keep all the information on one line. For example:

* TODO BOOK TITLE
#+begin_src emacs-lisp :lexical t :results silent
(let ((chapters 3)
      (read 0))
  (defun track-chapters-dwim-not-what-i-asked (&optional shitload-of-lines)
    "Print info about chapters I've read in an acceptable format via intuition.
If SHITLOAD-OF-LINES is non-nil, use `too many` lines.
This may or may not be too many lines, but I won't tell you so or why.
Please help me."
    (setq read (1+ read))
    (let* ((complete (= read chapters))
           (info (concat (string-join
                          `("You've read "
                            ,@(when shitload-of-lines
                                (make-list (random chapters) "\n"))))
                         (if complete
                             "the book! Whoopee."
                           "%d chapters out of %d or %%%.02f of the book!"))))
      (when complete (org-todo 'done)
            (setq read 0))
      (apply #'message
             `(,info ,@(unless complete
                         (list read chapters (* 100 (/ read (float chapters))))))))))
#+end_src

Then hit C-c C-c on that block and the following:

#+begin_src emacs-lisp :lexical t
(track-chapters-dwim-not-what-i-asked 'shitload)
#+end_src

It should produce output such as:

: You’ve read 1 chapters out of 3 or %33.33 of the book!

: You’ve read 
: 
: 2 chapters out of 3 or %66.67 of the book!

: You’ve read 
: the book! Whoopee.

I'm too ignorant to improve on this, but I'm sure you can handle that. Best of luck!

9

u/qrider70 Mar 17 '21 edited Mar 17 '21

You could set up something like this:

* Book Title [/]
  • [ ] Chapter 1
  • [ ] Chapter 2

....

As you read, you can check off the chapters. Then use C-c C-c in the brackets to update the count?

3

u/[deleted] Mar 17 '21 edited Mar 17 '21

This is what I do:

* TODO Reading [1/2]
** DONE Preface
** TODO Chapter 1

With this:

(defun org-summary-todo (n-done n-not-done)
  "Switch entry to DONE when all subentries are done, to TODO otherwise."
  (let (org-log-done org-log-states)   ; turn off logging
    (org-todo (if (= n-not-done 0) "DONE" "TODO"))))
(add-hook 'org-after-todo-statistics-hook #'org-summary-todo)

2

u/[deleted] Mar 17 '21

I actually have a more elaborate version of the Lisp code there now but it's on my other machine

1

u/[deleted] Mar 17 '21

IIRC Org had a configuration option for what org-summary-todo does, but I don't recall the name unfortunately.

1

u/[deleted] Mar 17 '21

As of what version? I'm pretty sure I ripped this code from the manual. (I do have a more advanced version of this now, I just wasn't on the right computer when I posted this.)

1

u/[deleted] Mar 17 '21

Whoops, sorry. Checked the docs ((org) Breaking Down Tasks) and indeed it's a suggested piece of code, not an included feature. I mistakenly thought it was a defcustom.

1

u/backtickbot Mar 17 '21

Fixed formatting.

Hello, keithpinson: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

-10

u/hjfbdsbfc Mar 17 '21

That's a sh** load of lines for a book with even a moderate number of chapters.

4

u/[deleted] Mar 17 '21

What exactly are you trying to do? If this is for textbooks then I think it's more efficient to just mark read chapters in the index.

For literature I'm not sure there's any benefit in strict tracking of your reading progress. A more useful approach in my opinion would be to creat a heading for each book and write thoughts or quotes.

Just my two cents.

-8

u/hjfbdsbfc Mar 17 '21

What exactly are you trying to do?

See post.

4

u/nv-elisp Mar 17 '21

See answers.

1

u/qrider70 Mar 17 '21

This is one option. It is a lot of lines so this might only be helpful if you wanted to track notes along with your progress.

Another option might be a table of some sort with calculations?

1

u/hjfbdsbfc Mar 17 '21

I'll look into that, thank you.

6

u/ftrx Mar 17 '21

Personally I read books, not process them, so my tracking is just notes about what I discover, a classic piece of paper between pages keep track of the rest. At the end I mark the book note "read". Nothing more, nothing less.

Using org-roam to manage my notes, a note per book, for ebooks a note with the attached file via org-attach. LaTeX bibliography (optional) in a dedicated babel block in the note.

-7

u/hjfbdsbfc Mar 17 '21

Personally I read books, not process them

Whoopee.

a classic piece of paper between pages keep track of the rest.

Pieces of paper can fall out, especially when carting books from one place to another. Electronic has many advantages, one of which being they don't get lost.

2

u/ftrx Mar 17 '21

That's true, and my post above it's a bit a bold statement but that's is: I do not read "professionally", at least I read some tech docs/books per years but most of my readings are for personal culture/pleasure, and for all, "professional" included, I prefer plain calm reading without "a process" or something more.

When I read paper books (most of my book, I dislike ebook for reading, I'd like them just as a complementary copy for full-text search when/if sometimes I have to look for something specifically) I have a small A7 agenda aside to scratch notes. After I put them in the book's dedicated org-mode note, nothing more.

Org-mode itself is a generic information tool and books notes act as reference or saved knowledge repo for the future to quickly find sources of something/recall something/avoid needing re-read a book...

So far works well enough for me... Even some report I have to read and are not worth printing, nor worth buying another e-paper A4 ebook reader (I'm looking at Remarkable but not so convinced) since my old one goes out of service... I just skim on screen trying to "process" all-at-once without tracking much.

6

u/jsled Mar 17 '21

The usual way to represent this is "X/Y", where "X" is the number of completed items and "Y" is the total number of items.

You update X when it makes sense to do so.

I'm not sure what you're asking, exactly?

4

u/rguy84 Mar 17 '21

A table with division ?

2

u/[deleted] Mar 17 '21

So my set up is not special, is just the same as everyone else, I basically read the book and register on my phone the page where I was. When I get on my computer I mark that on Emacs under the respective “currently reading” TODO If I have any notes I write them down on org-roam

In the end when I finish it I just set the state of the TODO as FINISHED

1

u/oantolin Mar 20 '21

Write the following line in some text file:

Chapters read: 4. Chapters remaining: 21.

Update that line whenever you finish a chapter.