pephers / super-calculator Goto Github PK
View Code? Open in Web Editor NEWSublime Text plugin for performing quick inline calculations with a simple keypress (Alt+C).
License: MIT License
Sublime Text plugin for performing quick inline calculations with a simple keypress (Alt+C).
License: MIT License
An option to omit unnecessary decimal places would be great. If for example one has set "round_decimals": 4
, the result of divisions will always have 4 number of digits after the decimal point, e.g. 10/2 = 5.0000
. I think that is not always desirable, because most people would expect 5
as result in this case, without the 4 zeroes after the decimal point.
I see that in your usage.gif you get 20.00
as result and then you manually delete the last three characters to get 20
. Wouldn’t it be nicer if that would be handled by the plugin itself? I’m quite sure that hardly anyone would leave 20.00px
in the CSS.
Support for answers returned with proper number of significant figures would be nice. While I'm aware of it during my calculations, it would be nice to just have it correct straight away.
Reference: https://en.wikipedia.org/wiki/Significant_figures
it would be useful if I type 30_9= and I press Alt + c
the output would be 30_9=720
Hi. I have been using sublimetext2 on windows 7 for a few months and Super Calculator was one of my favorite plugins.
Now I have moved on sublimetext3 on Ubuntu 13.04 and when I press Alt+C it doesn't select the expression. If I select the expression and press Alt+C it goes on as expected, replacing the expression with the result.
Is this a bug or am I missing something?
Since the package control thinks Super-Calculator is for Sublimetext 2 only it cannot be installed with ST3.
The default key binding, Alt + C, conflicts with the toggle_case_sensitive
command in the find panel.
Hi!
Is it possible to configure the plugin to remove the zeros? For example, to turn 0.30rem
into .3rem
.
I'd like the evaluation to not round results. I often need the full fractions when writing CSS. I modified my copy of the package and removed the round call. I'm only asking because this is the only working inline calculator package I know about for SublimeText that reproduces Textmate's evaluate expression shortcut, and I love the feature.
In new version of plugin in Sublime 2 selecting a math expression is not working correcly. For examle i'm typing something like that "lh48/2" and pressing Alt + C. Plugin will select only "/2" but not "48". If i have string "lh 48/2" with space between letters and numbers all ok. In previous version of plugin everything was fine.
And in Sublime 3 the same problem
Your regex should have % so it supports modulo :)
Suggestion: bind key ctrl+shift+alt+C plus arrow keys
as addition and ctrl+shift+C plus arrow keys
as subtraction.
because ctrl+shift+arrow keys
is switching line.
replace a row by adding / subtracting the current row.
cool plugin except 10/3 is not equal to 3 . Anyway to have it round off after a certain number of decimal points instead?
Attempting to calculate expressions with a factor in front of a parenthetical expression (such as 2(5*10)
) raises an error saying Error: 'int' object is not callable
. I assume this is because this is parsed as a function application.
Of course, I can always just type 2 * (5*10)
, so this is pretty low-priority. But it'd be cool.
A cool nice to have feature would be an alternate shortcut to calculate and store the result in the clip board. ctrl+alt+c would be perfect. It's the existing shortcut combined with ctrl+c which is copy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.