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

Word​Count

by titoBouzout ST3

Real-time Word, Char, Line and Page counter, in the status-bar for the document, line or selection. Sublime Text. A fork of titoBouzout's original repo so that it can be submitted to Package Control.

Details

  • 1.0.0
  • github.​com
  • 5 years ago
  • 29 minutes ago
  • 9 years ago

Installs

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

Readme

Source
raw.​githubusercontent.​com

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

Download or clone the contents of this repository to a folder named exactly as the package name into the Packages/ folder of ST.

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