gopass/docs/commands/edit.md
Dominik Schulz 75f5611c5b
Do not search when editing a new secret (#1683)
When -c is given to edit skip searching for existing ones.

Fixes #1682

RELEASE_NOTES=[BUGFIX] Do not search for new secrets

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
2021-01-05 23:03:13 +01:00

1014 B

edit command

The edit command loads a new or existing secret into your $EDITOR (default: vim) and saves the resulting content in the password store. It will attempt to create secure temporary directory (depending on the OS) and will warn if insecure editor configuration (currently only vim) is detected.

Native gopass MIME secrets are syntax checked and invalid encodings are rejected. Any other type of secret is accepted as is.

gopass will honor templates when creating a new entry.

Synopsis

$ gopass edit entry
$ gopass edit -e /bin/nano entry
$ EDITOR=/bin/nano gopass edit entry

Modes of operation

  • Create a new secret
  • Edit an existing secret

Flags

Flag  Aliases  Description
--editor -e Specify the path to an editor. Must accept the filename as it's first argument.
--create -c Create a new secret. You can create a new secret with edit with or without -c, but -c will skip searching for existing matches.