Menu

#2982 Auto-fill new entry fields from structured text pasted into Notes

KeePass
open
nobody
None
5
2 days ago
2 days ago
Nick
No

Environment:

  • KeePass 2.61.1 x64
  • Windows 11

Feature request:
When creating a new entry, KeePass could provide a lightweight way to extract structured data pasted into the Notes field and use it to pre-fill the standard entry fields.

Use case:
When creating credentials from setup instructions, emails, admin panels, server provisioning output, or documentation, the data is often provided as structured multiline text.

Example:

Title: n8n SMTP sender
Account: t8t-no-reply@somedomainofmyown.de
SMTP host: mail.somedomainofmyown.de
SMTP port: 587 STARTTLS
Username: t8t-no-reply@somedomainofmyown.de
Password: some-long-string

Currently, the user has to manually copy each value into the corresponding KeePass fields.

Expected behavior:
In the “Add Entry” dialog, when text is pasted into the Notes field, KeePass could detect common key/value patterns and optionally pre-fill matching fields.

For example:

  • Title: -> Title
  • Username: / User: / Login: / Account: -> User name
  • Password: / Pass: -> Password
  • URL: / Website: / Host: -> URL

The original pasted text should remain in Notes unless the user explicitly removes it.

Important constraints:
This should apply only in the “Add Entry” dialog for a new entry, not when editing an existing entry.

It should also be conservative:

  • never overwrite fields that already contain user-entered values
  • only fill empty fields
  • preferably show this as a user-controlled action, such as “Extract fields from notes”
  • or ask for confirmation after detecting structured data

Suggested implementation:
A simple rule-based parser using regular expressions would already be useful.

The parser could scan pasted multiline text for lines in the form:

Field name: value

and map known field names to KeePass entry fields.

Benefit:
This would significantly speed up creating new entries from common real-world credential snippets and reduce repetitive copy/paste work.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB