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
  • 2 hours ago
  • 5 years ago

Installs

  • Total 11K
  • Win 6K
  • OS X 3K
  • Linux 2K
Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8
Windows 2 3 3 6 3 7 6 5 3 6 3 4 4 1 9 1 1 5 3 5 1 1 3 3 3 4 5 8 4 3 5 4 4 8 5 6 4 4 3 6 7 3 1 2 4 4
OS X 1 1 0 5 4 1 4 2 1 0 0 3 0 3 2 0 1 2 1 1 4 2 1 2 0 3 4 3 1 0 1 1 0 0 5 2 1 1 1 4 3 5 1 0 2 2
Linux 1 0 1 1 2 2 0 2 1 1 2 1 1 1 3 1 0 2 4 0 2 3 1 2 1 1 1 0 3 0 0 1 2 3 1 1 0 1 0 4 1 1 0 0 0 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/