{"id":13601401,"url":"https://github.com/Elilif/org-count-words","last_synced_at":"2025-04-11T04:30:51.178Z","repository":{"id":227876260,"uuid":"772594310","full_name":"Elilif/org-count-words","owner":"Elilif","description":"Count words in org-mode.","archived":false,"fork":false,"pushed_at":"2024-06-20T23:21:08.000Z","size":46,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-02T18:40:28.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Elilif.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T13:59:41.000Z","updated_at":"2024-06-20T23:21:10.000Z","dependencies_parsed_at":"2024-03-23T15:34:21.421Z","dependency_job_id":"d8695060-480d-402b-a107-0f2c33e306fd","html_url":"https://github.com/Elilif/org-count-words","commit_stats":null,"previous_names":["elilif/org-count-words"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elilif%2Forg-count-words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elilif%2Forg-count-words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elilif%2Forg-count-words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elilif%2Forg-count-words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elilif","download_url":"https://codeload.github.com/Elilif/org-count-words/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223458299,"owners_count":17148446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T18:01:02.279Z","updated_at":"2024-11-07T04:30:47.700Z","avatar_url":"https://github.com/Elilif.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"#+TITLE: org-count-words\nMore precise words-counting in org-mode.\n\nIn Org-mode, there are many elements that we do not want to include in word\ncount, such as code blocks, options, and drawers. The usual practice is to use\nregular expressions to exclude them, but there are too many syntaxes in\norg-mode, making it difficult to fully include them with regular expressions.\nThis package takes advange of the org-element API to filter the elements we\nwant, count their words, and display the result on the modeline.\n\n* Commands\n- =org-count-words-buffer=\n  \n  Count words in current org buffer. Like =count-words= but ingore words in some\n  elements like src-block.\n\n- =org-count-words-region=\n\n  Count the number of words in the region.\n\n  If called interactively, print a message reporting the number of\n  words in the region (whether or not the region is active); with\n  prefix ARG, report for the entire buffer rather than the region.\n\n  If called from Lisp, return the number of words between positions\n  START and END.\n\n- =org-count-words-subtree=\n\n  Count words in current subtree.\n\n  If called from Lisp, return the number of words.\n\n- =org-count-words-mode=\n\n  Minor mode for displaying word count in the modeline.\n* Configuration\n- =org-count-words-elemnts=\n  \n  List of element types that should be included.\n\n  See =org-element-map for details.\n- =org-count-words-functions=\n  \n  Defualt function to count words.\n\n  This function should take two argments(beg and end) and return a number.\n- =org-count-words-no-recursive-elemnts=\n  \n  List of element types that should be exlucded in recursive map.\n\n  See =org-element-map= for details.\n  \n- =org-count-words-element-functions=\n\n  Alist of org elelemnt type and word-counting funtion.\n\n  Each function will be called with one arguemnt: the selected element.\n\n- =org-count-words-buffer-idle-delay=\n\n  Seconds to wait before updating the word counts in the current buffer.\n\n- =org-count-words-region-idle-delay=\n\n  Seconds to wait before updating the word counts in the selected region.\n\n- =org-count-words-mode-line=\n\n  Mode line construct for displaying current word count.\n\n- =org-count-words-mode-line-format=\n\n  The mode-line format for displaying current word count.\n\n  This value should be a =cons= whose =car= is a format string to display the\n  word count of the current buffer, and whose =cdr= is a format string to\n  display the word count of the selected region and the current buffer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElilif%2Forg-count-words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElilif%2Forg-count-words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElilif%2Forg-count-words/lists"}