[GH-ISSUE #4524] [FR] integration of a word count tool within the app #2033

Closed
opened 2026-03-23 21:19:04 +00:00 by mirror · 10 comments
Owner

Originally created by @mawnir on GitHub (Jan 28, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4524

Originally assigned to: @Xazin on GitHub.

Description

Word count by document and by selection.

Impact

A word count feature can significantly improve writing efficiency by providing users with real-time feedback on the length of their text. and helps in organizing and structuring content effectively.

Additional Context

No response

Originally created by @mawnir on GitHub (Jan 28, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4524 Originally assigned to: @Xazin on GitHub. ### Description Word count by document and by selection. ### Impact A word count feature can significantly improve writing efficiency by providing users with real-time feedback on the length of their text. and helps in organizing and structuring content effectively. ### Additional Context _No response_
mirror 2026-03-23 21:19:04 +00:00
Author
Owner

@emmggi commented on GitHub (Jan 28, 2024):

Please make this togglable in the settings. Most don't need this for note taking.

<!-- gh-comment-id:1913534488 --> @emmggi commented on GitHub (Jan 28, 2024): Please make this togglable in the settings. Most don't need this for note taking.
Author
Owner

@LucasXu0 commented on GitHub (Jan 28, 2024):

@mawnir Is this a desktop or a mobile feature request?

<!-- gh-comment-id:1913628635 --> @LucasXu0 commented on GitHub (Jan 28, 2024): @mawnir Is this a desktop or a mobile feature request?
Author
Owner

@mawnir commented on GitHub (Jan 28, 2024):

@LucasXu0 Desktop.

<!-- gh-comment-id:1913645374 --> @mawnir commented on GitHub (Jan 28, 2024): @LucasXu0 Desktop.
Author
Owner

@Xazin commented on GitHub (Jan 28, 2024):

I believe this would be really cool, some features that can be considered together with this one:

  • Being able to see both Word Count, Character count, Character count without spaces
  • Being able to select text, use a command and then see the above statistics but for only the selected text.
<!-- gh-comment-id:1913652809 --> @Xazin commented on GitHub (Jan 28, 2024): I believe this would be really cool, some features that can be considered together with this one: - Being able to see both Word Count, Character count, Character count without spaces - Being able to select text, use a command and then see the above statistics but for only the selected text.
Author
Owner

@Xazin commented on GitHub (Feb 8, 2024):

Hey @mawnir, I've finished the initial implementation of a word/character counting service in the Editor package.

I was wondering what would fit your use-case the most, and maybe you have some insights to share.

Some ideas on the actual implementation of this in AppFlowy that came to my mind, which I thought you might be able to share your preference on was:

Would a keybind that shows the word/char count of the document (and if anything is selected, also the word and char count of the current selection) in a popup modal (See how Google Docs does this) fit your usecase?

Would you rather be able to have a small floating toast in eg. the left bottom corner of the editing area, that shows the word and character count permanently, which can be toggled on/off with a keybind or in the settings?

Or would it be enough to see just the word and character count, when pressing on the two dots in the documents top bar, similar to Notion?


Please let me know, I will take your thoughts into consideration when implementing it in AppFlowy.

<!-- gh-comment-id:1934820515 --> @Xazin commented on GitHub (Feb 8, 2024): Hey @mawnir, I've finished the initial implementation of a word/character counting service in the Editor package. I was wondering what would fit your use-case the most, and maybe you have some insights to share. Some ideas on the actual implementation of this in AppFlowy that came to my mind, which I thought you might be able to share your preference on was: Would a keybind that shows the word/char count of the document (and if anything is selected, also the word and char count of the current selection) in a popup modal (See how Google Docs does this) fit your usecase? Would you rather be able to have a small floating toast in eg. the left bottom corner of the editing area, that shows the word and character count permanently, which can be toggled on/off with a keybind or in the settings? Or would it be enough to see just the word and character count, when pressing on the two dots in the documents top bar, similar to Notion? --- Please let me know, I will take your thoughts into consideration when implementing it in AppFlowy.
Author
Owner

@mawnir commented on GitHub (Feb 8, 2024):

Thank you so much @Xazin

1- For me pressing on the two dots in the documents top bar, similar to Notion to get the word count is enough.

2- And for the small floating toast in eg. the left bottom corner of the editing area, Yes i like the left bottom corner and would be great if visible only when selecting text.. to keep the editing area clean.

<!-- gh-comment-id:1935000512 --> @mawnir commented on GitHub (Feb 8, 2024): Thank you so much @Xazin 1- For me `pressing on the two dots in the documents top bar, similar to Notion` to get the word count is enough. 2- And for the `small floating toast in eg. the left bottom corner of the editing area`, Yes i like the left bottom corner and would be great if visible only when selecting text.. to keep the editing area clean.
Author
Owner

@Xazin commented on GitHub (Feb 8, 2024):

Thank you so much @Xazin

1- For me pressing on the two dots in the documents top bar, similar to Notion to get the word count is enough.

2- And for the small floating toast in eg. the left bottom corner of the editing area, Yes i like the left bottom corner and would be great if visible only when selecting text.. to keep the editing area clean.

Thanks for the information, I'll implement number 1 first, and then I'll see if I can implement number 2 with a decent user experience 👍

<!-- gh-comment-id:1935002072 --> @Xazin commented on GitHub (Feb 8, 2024): > Thank you so much @Xazin > > 1- For me `pressing on the two dots in the documents top bar, similar to Notion` to get the word count is enough. > > 2- And for the `small floating toast in eg. the left bottom corner of the editing area`, Yes i like the left bottom corner and would be great if visible only when selecting text.. to keep the editing area clean. Thanks for the information, I'll implement number 1 first, and then I'll see if I can implement number 2 with a decent user experience :+1:
Author
Owner

@mawnir commented on GitHub (Apr 15, 2024):

@Xazin the feature is not working with Arabic text:
Screen Shot 2024-04-15 at 14 53 51

<!-- gh-comment-id:2056923090 --> @mawnir commented on GitHub (Apr 15, 2024): @Xazin the feature is not working with Arabic text: <img width="800" alt="Screen Shot 2024-04-15 at 14 53 51" src="https://github.com/AppFlowy-IO/AppFlowy/assets/62011430/5cf567a0-02a9-45f1-9a63-63bab6f57b49">
Author
Owner

@Xazin commented on GitHub (Apr 15, 2024):

@Xazin the feature is not working with Arabic text

That's odd, the character count seems to work, I'll take a look 👍

<!-- gh-comment-id:2056978185 --> @Xazin commented on GitHub (Apr 15, 2024): > @Xazin the feature is not working with Arabic text That's odd, the character count seems to work, I'll take a look :+1:
Author
Owner

@Xazin commented on GitHub (Apr 16, 2024):

Closing this again, the fix for the accents and arabic characters will be included in the next release, thanks @mawnir for reporting.

<!-- gh-comment-id:2059580842 --> @Xazin commented on GitHub (Apr 16, 2024): Closing this again, the fix for the accents and arabic characters will be included in the next release, thanks @mawnir for reporting.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2033
No description provided.