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

Word Count

by shadax1 ALL Trending

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

Details

Installs

  • Total 5K
  • Win 2K
  • Mac 2K
  • Linux 777
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 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11
Windows 0 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 2 7 4 4 4 5 1 0 2 5 4
Mac 2 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 3 10 5 7 8 3 3 4 5 9 5
Linux 1 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 0 1 5 2 0 1 1 2 0 1 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.