Skip to content

Commit

Permalink
Added Secure Notes items to menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 11, 2014
1 parent 2d60841 commit 95690b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 1pass.lua
Expand Up @@ -14,6 +14,7 @@ local passwordTypeNameMap = {
["wallet.membership.Membership"] = "Memberships",
["wallet.government.DriversLicense"] = "Drivers licenses",
["system.Tombstone"] = "Dead items",
["securenotes.SecureNote"] = "Secure notes",
-- !!! FIXME: more!
}

Expand All @@ -24,6 +25,7 @@ local passwordTypeOrdering = {
"wallet.financial.BankAccountUS",
"wallet.membership.Membership",
"wallet.government.DriversLicense",
"securenotes.SecureNote",
-- never show "system.Tombstone",
-- !!! FIXME: more!
}
Expand Down Expand Up @@ -219,6 +221,10 @@ local function build_secret_menuitem_creditcard(menu, info, secure)
end
secret_menuitem_builders["wallet.financial.CreditCard"] = build_secret_menuitem_creditcard

local function build_secret_menuitem_securenote(menu, info, secure)
build_secret_menuitem(menu, "Notes", secure.notesPlain, true)
end
secret_menuitem_builders["securenotes.SecureNote"] = build_secret_menuitem_securenote

local function build_secret_menuitems(info, menu)
local metadata = load_json(basedir .. "/" .. info.uuid .. ".1password")
Expand Down

0 comments on commit 95690b9

Please sign in to comment.