Jump to content

themadsens

Member
  • Posts

    8
  • Joined

  • Last visited

Everything posted by themadsens

  1. 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
  2. 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() and e 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
  3. 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
  4. Separator is now always a thin space. Rationals now also displayed as nearest fraction. Released on github
  5. 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.
  6. 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.
×
×
  • Create New...