quick_label.lua
1-- quick_label.lua
2-- Demonstrates custom keyboard shortcuts with matcha.bind_key().
3-- Press ctrl+i in the inbox to show the selected email's subject.
4
5local matcha = require("matcha")
6
7matcha.bind_key("ctrl+i", "inbox", "info", function(email)
8 if email then
9 matcha.notify(email.from .. ": " .. email.subject, 3)
10 end
11end)