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

Super Calculator

by Pephers ALL

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
  • 6 years ago
  • 3 hours ago
  • 8 years ago

Installs

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