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

Super Calculator

by Pephers ST2/ST3

Sublime Text plugin for performing quick inline calculations with a simple keypress (Alt+C).

Details

  • 2014.05.07.11.39.03
  • github.​com
  • github.​com
  • 3 years ago
  • 4 minutes ago
  • 5 years ago

Installs

  • Total 10K
  • Win 5K
  • OS X 3K
  • Linux 2K
May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9
Windows 1 9 18 3 15 9 14 19 30 34 22 10 17 6 2 5 2 2 2 3 4 2 2 0 0 1 2 0 1 7 5 4 2 1 4 6 3 3 0 0 4 3 1 3 6 2
OS X 1 9 16 2 1 4 11 16 31 59 13 10 14 0 3 1 3 0 2 0 2 1 0 1 6 0 1 2 2 0 0 0 0 1 2 4 2 1 1 0 1 3 3 0 2 2
Linux 1 3 2 0 2 1 5 6 6 17 4 2 7 0 2 1 1 1 0 1 3 1 1 0 2 2 2 1 0 1 0 0 1 2 0 0 1 1 0 2 0 0 0 0 1 1

Readme

Source
raw.​githubusercontent.​com

Super Calculator

About

Super Calculator is a plugin for Sublime Text 2 and Sublime Text 3 which lets you do inline calculations with a few keypresses. This is useful for example to subtract paddings from your widths in your CSS code.

Usage

All you need to do is to press Alt+C and Super Calculator will select the mathematical expression closest to the cursor position so you can review what is going to be calculated. A second time Alt+C calculates the result and inserts it right away. Nice!

Configuration

By default, Super Calculator rounds the result down to two decimals. However, you can specify the number of decimals you would like in the user settings file for Super Calculator. The settings files can be found by navigating to Preferences -> Package Settings -> Super Calculator.

Installation

With Package Control: The easiest way to install Super Calculator is by using the Package Control plugin.

Without Git: Download the latest source from GitHub and copy the Super Calculator folder to your Sublime Text “Packages” directory.

With Git: Clone the repository in your Sublime Text “Packages” directory:

git clone https://github.com/Pephers/Super-Calculator.git

The “Packages” directory can be found in the following locations:

  • OS X:

    ~/Library/Application Support/Sublime Text 2/Packages/
    ~/Library/Application Support/Sublime Text 3/Packages/
    
  • Linux:

    ~/.config/sublime-text-2/Packages/
    ~/.config/sublime-text-3/Packages/
    
  • Windows:

    %APPDATA%/Sublime Text 2/Packages/
    %APPDATA%/Sublime Text 3/Packages/