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 10K
  • Win 4K
  • Mac 5K
  • Linux 1K
Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1
Windows 2 6 7 2 4 0 7 4 7 6 6 5 10 3 8 3 10 1 4 8 6 8 5 8 5 3 9 5 10 1 4 3 8 3 6 1 5 2 2 4 5 4 0 5 2 3
Mac 1 10 10 8 8 4 5 13 6 4 2 3 8 5 12 6 4 3 2 11 6 11 5 9 5 8 6 3 9 7 4 5 3 7 6 7 7 3 3 6 10 7 8 7 7 7
Linux 0 2 2 2 1 1 2 3 7 2 1 0 2 2 2 1 4 2 2 3 2 4 1 5 1 6 2 0 0 1 2 0 0 0 4 4 3 1 6 2 3 4 0 1 4 1

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.