Filtering

only

only restricts the block to only the application specified in the arguement, in this case Chrome. Arguments can be strings or regular expressions.

    only /Chrome/ do
      map "<Ctrl-h>", "<Cmd-{>"
      map "<Ctrl-l>", "<Cmd-}>"
    end

except

except restricts the block to all applications except applications specified in the arguement, in this case iTerm and MacVim. Arguments can be strings or regular expressions.

    except /iTerm/, "MacVim" do
      map "<Ctrl-j>", "<Down>"
      map "<Ctrl-k>", "<Up>"
    end