ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Word Count

by shadax1 ALL

Sublime Text plugin written in Python that counts specific words given by the user.

Details

Installs

  • Total 4K
  • Win 2K
  • Mac 2K
  • Linux 659
Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16
Windows 0 12 4 6 2 7 5 5 4 6 6 1 1 4 5 5 8 7 2 3 7 6 5 7 8 1 1 7 3 4 2 2 4 4 6 5 12 8 9 11 7 6 1 4 5 7
Mac 0 6 5 6 3 2 7 12 8 6 4 3 3 8 4 7 9 6 3 2 4 8 2 2 9 8 4 4 4 7 6 14 5 4 6 11 6 11 9 5 3 5 6 9 6 7
Linux 0 1 1 2 1 2 0 2 1 3 0 2 3 0 1 3 3 0 2 2 2 1 1 0 1 3 0 2 5 4 5 2 2 0 1 1 1 2 1 2 0 4 4 3 2 4

Readme

Source
raw.​githubusercontent.​com

Word Count

Sublime Text plugin written in Python that counts specific words given by the user.

How to use?

From the Command Palette:

  • Count Specific Words opens a panel on the right where the user can then enter words to count,
  • Copy Word Counters from that same panel, copies all words and their counters into the clipboard,
  • Sort Words By Counters sorts all words in an ascending or descending order based on the counters.

cp

Here is a brief demo:

demo

It's also possible to switch the Whole word and Case sensitive flags between 0 or 1 to disable or enable them respectively.

Contributions/Suggestions

Contributions and suggestions are more than welcome as this is my first time writing a plugin for Sublime Text.

Ideas/Improvements/Issues

Things I want to improve/fix:

  • counting in a large file is quite demanding in terms of cpu
  • make it so it doesn't recount after a sort

Credits

I watched a few of OdatNurd's youtube videos to get started as well as google search (a lot) and use Sublime Text's forum. I also followed FichteFoll's suggestions in order to improve the plugin's behavior.