themadsens
-
Posts
8 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by themadsens
-
-
OK, thanks. Done
-
Thanks for the feedback and suggestions.
The name is now "basecalc"
I was looking for a posting template in order to specify dependencies. I have now added the dependency to the description text
The shebang is now
#!/usr/bin/env lua5.4
this makes /usr/bin/env the script interpreter which I believe is standard on macOS
Note that it is important to explicitly use Lua >= 5.3 for the integer semantics and boolean operators
-
basecalc
A programmers calculator for Alfred
Evaluates a Lua (v5.4) numeric expression and displays the result in the four main bases. Everything from the Lua math library is available, and in addition
log10()
ande
In addition to decimal (42) and hexadecimal (0x2a), binary (0b101010) and octal (0o52) notation is available.
Uses '=' as the trigger keyword. Make sure to disable '=' for the built in calculator in Alfred Preferences/Features/Calculator.
Requires: Lua version 5.4
brew install lua
Rational numbers are shown as nearest fraction too
Initial placeholder hint
-
It always puzzled me that the one searchable thing in Alfred with really poor support is Alfred's own command history ..
I had hoped that this was on the list for Alfred 5 but it seems to be the same lame, unsearchable 20 entry history, which feels like a quick afternoon hack.
Don't get me wrong, I love Alfred. I think though that Alfred 5 ought to have:
- A longer (configurable on size or retention time?), persisted history.
- Searchable on entered prefix when using CTRL-UP and CTRL-DOWN
Cheers /Flemming
-
Separator is now always a thin space.
Rationals now also displayed as nearest fraction.
Released on github
-
Hi @deanishe Thanks for your interest.
There is a hint in the placeholder on how to install lua (brew install lua53)
Sure, good point. The thousands separator should be commas, when the decimal point is a full stop.
I'll change that. In the meantime, it can be changed in 'pcalc.lua' as shown below.
-
Shows the result of a numeric Lua expression (v3.5) in the four main number bases.
May contain math functions
Download from the github repo.
basecalc: A programmers calculator for Alfred
in Completed
Posted
Cool. PR merged, and there is a 1.1.3 release