-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b370bec
commit 39974e0
Showing
2 changed files
with
87 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
return { | ||
{ | ||
'OpInsert', | ||
function() | ||
require('op').op_insert() | ||
end, | ||
{ desc = 'Insert a 1Password item reference at the current cursor position' }, | ||
}, | ||
{ | ||
'OpCreate', | ||
function() | ||
require('op').op_create() | ||
end, | ||
{ desc = 'Create a new 1Password item from strings in the current buffer' }, | ||
}, | ||
{ | ||
'OpView', | ||
function() | ||
require('op').op_view_item() | ||
end, | ||
{ desc = 'Open an item in the 1Password 8 desktop app' }, | ||
}, | ||
{ | ||
'OpEdit', | ||
function() | ||
require('op').op_edit_item() | ||
end, | ||
{ desc = 'Open an item to the edit view in the 1Password 8 desktop app' }, | ||
}, | ||
{ | ||
'OpOpen', | ||
function() | ||
require('op').op_open_and_fill() | ||
end, | ||
{ desc = 'Open and fill an item in your default browser' }, | ||
}, | ||
{ | ||
'OpSignin', | ||
function(input) | ||
local account_identifier = input and input.fargs and input.fargs[1] or nil | ||
require('op').op_signin(account_identifier) | ||
end, | ||
{ desc = 'Choose a 1Password account to # with', nargs = '?' }, | ||
}, | ||
{ | ||
'OpSignout', | ||
function() | ||
require('op').op_signout() | ||
end, | ||
{ desc = 'Sign out of 1Password CLI' }, | ||
}, | ||
{ | ||
'OpWhoami', | ||
function() | ||
require('op').op_whoami() | ||
end, | ||
{ desc = 'Check what 1Password account you are currently signed in with' }, | ||
}, | ||
{ | ||
'OpNote', | ||
function(args) | ||
require('op').op_note(args and args.fargs and (args.fargs[1] == 'new' or args.fargs[1] == 'create')) | ||
end, | ||
{ desc = 'Find and open a 1Password Secure Note', nargs = '?' }, | ||
}, | ||
{ | ||
'OpSidebar', | ||
function(input) | ||
local should_refresh = false | ||
if input and input.fargs and input.fargs[1] == 'refresh' then | ||
should_refresh = true | ||
end | ||
require('op').op_sidebar(should_refresh) | ||
end, | ||
{ desc = 'Toggle the 1Password sidebar', nargs = '?' }, | ||
}, | ||
{ | ||
'OpAnalyzeBuffer', | ||
function() | ||
require('op').op_analyze_buffer() | ||
end, | ||
{ desc = 'Run 1Password secret detection diagnostics on current buffer' }, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters