# Word count for selected text

**URL:** <https://forum.obsidian.md/t/word-count-for-selected-text/4071>\
**Category:** Plugins ideas (Archival in progress)\
**Created:** [August 5, 2020, 6:30pm UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071 "2020-08-05T18:30:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![icebear](https://forum.obsidian.md/user_avatar/forum.obsidian.md/icebear/32/2823_2.png) [@icebear](https://forum.obsidian.md/u/icebear)\
**Post date:** [August 5, 2020, 6:30pm UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071/1 "2020-08-05T18:30:09Z")

</div>

As in the title - add a toggle so that with no text selected, the word count is for the open note. With text selected, the word count is just for the selection.

---

<div class="post-metadata">

**Author:** ![3mbry0](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/3/ecb155/32.png) [@3mbry0](https://forum.obsidian.md/u/3mbry0)\
**Post date:** [October 11, 2020, 2:19am UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071/2 "2020-10-11T02:19:24Z")

</div>

+1! Some of my essays for school require a min/max word count. As someone that writes these essays in daily notes, of which likely have other text written in them, being able to see word count for selected text would be much helpful.

> [@icebear](#):
>
> With text selected, the word count is just for the selection.

Maybe it’d be better if the word count for the entire note would still be there along with the count for selected text.

---

<div class="post-metadata">

**Author:** ![3mbry0](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/3/ecb155/32.png) [@3mbry0](https://forum.obsidian.md/u/3mbry0)\
**Post date:** [November 10, 2020, 10:25am UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071/3 "2020-11-10T10:25:25Z")

</div>

Just found that there’s a third-party plugin out now that pretty much does what you’re asking for @icebear + it does the same for number of characters.

> **[lukeleppan/better-word-count](https://github.com/lukeleppan/better-word-count)**
>
> Counts the words of selected text in the editor. Contribute to lukeleppan/better-word-count development by creating an account on GitHub.

I’m not sure if it has a thread in this forum, but it’d be great to make a bug report as it does this for mine:

![ezgif.com-gif-maker](https://forum.obsidian.md/uploads/default/original/2X/4/4f04f24a8d7d53a06ab34e8b2210053657b8f1b3.gif)

Have posted this issue on GitHub: [https://github.com/lukeleppan/better-word-count/issues/1](https://github.com/lukeleppan/better-word-count/issues/1)

EDIT: Fortunately, it got fixed :3

---

<div class="post-metadata">

**Author:** ![LeAvie](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/8baadc/32.png) [@LeAvie](https://forum.obsidian.md/u/LeAvie)\
**Post date:** [May 22, 2022, 11:00pm UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071/4 "2022-05-22T23:00:37Z")

</div>

what is a toggle? Would you mind giving a brief step-by-step suggestion as to how I would be able to do this?

---

<div class="post-metadata">

**Author:** ![klor](https://forum.obsidian.md/user_avatar/forum.obsidian.md/klor/32/40425_2.png) [@klor](https://forum.obsidian.md/u/klor)\
**Post date:** [December 29, 2022, 12:15pm UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071/5 "2022-12-29T12:15:38Z")

</div>

Related: [A word counter that shows how many words there are in a selection of text, not just the whole note please!](https://forum.obsidian.md/t/a-word-counter-that-shows-how-many-words-there-are-in-a-selection-of-text-not-just-the-whole-note-please/37208)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 9, 2024, 2:43pm UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071/6 "2024-05-09T14:43:07Z")

</div>

will be implemented in v1.6.0. No ETAs

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [May 16, 2024, 2:44pm UTC](https://forum.obsidian.md/t/word-count-for-selected-text/4071/7 "2024-05-16T14:44:06Z")

</div>

Closed on May 16, 2024, 2:44pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
