• This repository has been archived on 07/Dec/2020
  • Stars
    star
    289
  • Rank 138,723 (Top 3 %)
  • Language
    Python
  • License
    Other
  • Created over 12 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Real-time Word, Char, Line and Page counter, in the status-bar for the document, line or selection. Sublime Text

Description

Provides a real-time Word Count and character count in the status-bar for Sublime Text. See: http://www.sublimetext.com/

Count words and/or characters on document or in selections. By default, whitespace is not included in the character count.

The minimal word length is 1 and does not count digits.

An estimated reading time is now appended to the end of the word count.

Installation

Zipped file:

  1. Locate the Packages directory for Sublime Text.
  2. Download the zipped contents of this repository into Packages.
  3. Unzip the zipped file. It will create a new directory in Packages.
  4. Re-start Sublime Text.

Cloned files:

  1. Locate the Packages directory for Sublime Text.
  2. In the Packages directory, create a sub-directory called WordCount.
  3. Clone the contents of this repository to your new WordCount folder.
  4. Re-start Sublime Text.

Preferences

Located under Sublime Text>Preferences>Package Settings>Settings β€” User (You probably need to copy the default settings from the uneditable Sublime Text>Preferences>Package Settings>Settings β€” Default)

  • enable_live_count : true

     Allows to control if the live word counter is enabled. Otherwise will be enabled for selections only.
    
  • enable_readtime : false

     Allows you to control if the estimated reading time is enabled.
     Reading time is only displayed when there is a time > 1s.
    
  • readtime_wpm : 200

     Sets the WPM to calculate the Estimated Reading Time for the file.
    
  • whitelist_syntaxes : []

     An array of syntax names that WordCount should run on.
     Example: ["Plain text", "Markdown"]
     If the array is empty, like it is by default, WordCount will run on any syntax.
    
  • blacklist_syntaxes : []

     An array of syntax names that WordCount should not run on.
     Example: ["Plain text", "Markdown"]
     If the array is empty, like it is by default, WordCount will run on any syntax.
    
  • char_ignore_whitespace : true

     Whether to skip whitespace for the character count.
    
  • enable_line_word_count : false

     Display the count of words found on current line.
    
  • enable_line_char_count : false

     Display the count of characters found on current line.
    
  • enable_count_lines : false

     Display the number of lines in file
    
  • enable_count_chars : false

     Display the number of characters in file
    
  • enable_count_pages : true

     Display the number of pages in file
    
  • page_count_mode_count_words : true

     Sets the page count mode to words per page
    
  • words_per_page : 300

     Sets the number of words per page used to calculate number of pages
    
  • word_regexp : ""

     Word Regular expression. Defaults empty, an internal regular expression is used. If the portion of text matches this RegExp then the word is counted.
    
  • word_split : ""

     Split portions of text to test later as words with a Regular expression. Defaults to String.split() with no arguments, means that content will trim() and empty values (all whitespaces) are not used. In case of containing some value different than empty, the return of "re.findall" will be used.
    
  • split: {}

     Remove regex patterns by syntax. Use lowercase for the syntax names.
    
     Example to ignore all tags, including comments, from HTML:
    
     ```
     "strip": {
     	"html": [
     		"<[^>]*>"
     	]
     }
     ```
    

Inspiration

Contributors

  • Liam Cain
  • Lee Grey
  • Hawken Rives
  • Yaw Anokwa
  • James Brooks
  • Antony Male
  • Alex Galonsky
  • RikkiMongoose
  • ChrisJefferson
  • Harry Ng. (From Word Count Tool)
  • MangleKuo
  • Nick Cody
  • Amanda Neumann

More Repositories

1

SideBarEnhancements

Enhancements to Sublime Text sidebar. Files and folders.
Python
2,167
star
2

Dictionaries

Hunspell UTF8 dictionaries. These work with Sublime Text. [Spell check]
Python
1,435
star
3

Tag

Collection of packages about HTML/XML tags.
Python
430
star
4

BufferScroll

Remember, restore and sync scroll, bookmarks, marks, folds and cursors. keys: multiple columns one buffer, follow mode, split, screen, pages, synchronize vertical and typewriter scrolling
Python
311
star
5

SideBarGit

Add git commands to sidebar. Textual port of my komodin (komodo edit) extension for sublime text.
Python
244
star
6

EncodingHelper

Guess encoding of files, show in status bar, convert to UTF-8 from a variete of encodings..
Python
178
star
7

Open-Include

Will open file paths found under the cursor with ALT+D
Python
132
star
8

SideBarFolders

For when a project system is too much.
Python
82
star
9

ServiceWorkerFullVideoBuffer

A service worker that buffers a full video, so when the video tag ask for ranges, these can be satisfied. Play + pause = buffer the whole video.
JavaScript
52
star
10

FindResultsApplyChanges

Edit just there in the "Find Results" buffer, merge changes back to the files.
Python
50
star
11

solid-windowed

Given a list of items, only render what's visible on the screen while allowing scrolling the whole list.
JavaScript
43
star
12

komodo-komodin-git

A komodo Git extension
JavaScript
16
star
13

Toolbar

The missing ST toolbar ( with emojis ツ )
JavaScript
14
star
14

Camaleon

Cycle chrome theme and colour schemes with F8
Python
10
star
15

PreventFakeClones

Prevents opening the same file twice, if does not share a buffer (ie is not a clone/duplicate or cloned view/tab/file).
Python
7
star
16

pota

pota is a small and pluggable Reactive Web Renderer for Reactive Libraries.
JavaScript
3
star
17

dom-syntax-sugar

A pluggable babel plugin for adding syntax sugar to JSX.
JavaScript
2
star
18

solid-media-linkify

Given a string it returns links, images, videos, audio as tags and also emojis like `πŸ¦†` as πŸ¦†.
JavaScript
2
star
19

locationbar2-utf8

LocationbarΒ² with full support for UTF8 URLs
CSS
2
star
20

angelia.io

WebSockets Server and Client for node.js and the browser
JavaScript
2
star
21

Android

myAPI
Java
1
star
22

on-exit

Calls functions before node exits. A node exit handler.
JavaScript
1
star
23

write-effect

It tracks changes, and deep changes on an object. Runs a callback whenever something changes, an effect.
JavaScript
1
star
24

solid-tooltip

Directive for displaying tooltips on SolidJS components given a `title` attribute.
JavaScript
1
star
25

Format

Sublime Text Plug-in for formatting code or text on selections or files via any cli formatter you wish
Python
1
star
26

komodo-tab-undo-close

A menuitem on tab context menu to reopen the last closed tab (undo close tab).
Shell
1
star
27

dom-flair

Solve any or most html layout issues in intuitive ways via attributes without having to think much about CSS. For example <div col grow></div>. That's it.
CSS
1
star
28

komodo-nav

Experimental folder browsing and bookmarks: for Komodo.
JavaScript
1
star
29

komodo-garden

many remotes, on many trees, all asynch
JavaScript
1
star