Jump to content

themadsens

Member
  • Posts

    8
  • Joined

  • Last visited

Posts 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

    screenshot

    Rational numbers are shown as nearest fraction too

    rationals

    Initial placeholder hint

    placeholder

  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

×
×
  • Create New...