Skip to content

global leader key w/ hammerspoon #1

@zenspider

Description

@zenspider

Thank you for writing your article! You saved me a good amount of time!

I wanted to send you a little cleanup for your patch on your "Sorted helper text" section. hs.fnutils has a nice function called sortByKey that does what you want. Your version could drop the extra helper and simplify to:

   -- original: for keyName, funcName in pairs(keyFuncNameTable) do
   for keyName, funcName in hs.fnutils.sortByKeys(keyFuncNameTable) do

I'm thinking of upstreaming this if I can find the right way to do it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions