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

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.