Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set support #3

Open
tsuyoshicho opened this issue Mar 2, 2019 · 3 comments
Open

feat: set support #3

tsuyoshicho opened this issue Mar 2, 2019 · 3 comments
Assignees

Comments

@tsuyoshicho
Copy link
Owner

API add set

@tsuyoshicho tsuyoshicho self-assigned this Mar 2, 2019
@tsuyoshicho
Copy link
Owner Author

tsuyoshicho commented Jul 15, 2020

@tsuyoshicho
Copy link
Owner Author

tsuyoshicho commented Jul 24, 2020

API and command development note

draft and old / new mix

Command

  • PassGet
  • PassGetOtp
  • PassGetRegister
  • PassGetOtpRegister

new

  • PassEdit
    (If nothing entry, edit new)

Function

get

  • pass#get
    • pass#get#entry_value
  • pass#get_otp
    • pass#get#entry_value
    • pass#otp#value
  • pass#get_register
    • pass#get#entry_value
  • pass#get_otp_register
    • pass#get#entry_value
    • pass#otp#value

startup

  • pass#get_startup_funcall
    • pass#startup#entry_setup_funcall
  • pass#get_startup_scope
    • pass#startup#entry_setup_letval
  • pass#get_startup
    • pass#startup#entry_setup_letval

edit

  • pass#edit
    • pass#edit#new
      • (same below)
    • pass#edit#open
      • pass#get#raw
      • pass#set#save

set

  • pass#set
    • pass#set#save

Struct

entry struct define needed

@tsuyoshicho
Copy link
Owner Author

edit development note

draft

keymap

key mean
p input password
o input otp secret
i input entry(completion support for defined map)
<CR> edit password/otp/other entry
e edit entry at cursor
d delete entry at cursor
w save entry(ok/cancel prompt)
q leave entry(same above) and check not saved
c delete entry?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant