keepassxreboot/keepassxc

Color/hint placeholders when editing an entry

Ouverte

#5 900 ouverte le 7 janv. 2021

 (15 commentaires) (1 réaction) (0 personne assignée)C++ (1 797 forks)batch import
feature: Reference/Placeholdershelp wanted

Métriques du dépôt

Stars
 (27 139 étoiles)
Métriques de merge PR
 (Merge moyen 19j 12h) (17 PRs mergées en 30 j)

Description

Summary

GUI improvements on the placeholders

  1. Add colours to recognized placeholders, allowing to ensure we have written a correct placeholder and help ) reading the full sequence.
  2. Hint the user when he starts typing { with something like a dropdown suggesting frequent placeholders that match what he has already typed.
  3. Hint when a valid reference placeholder links to nothing or to an empty field.
  4. For the REF placeholder, a helper to select another entry to avoid the necessity to copy the target's uuid manually, and show what valid REF placeholders link to using a tooltip or by making them clickable.
  5. Provide a small button at the end of any text area containing placeholders to previsualize the result.
  6. To the drop down that suggests frequently used usernames, add buttons to link to the selected username instead of simply copying it.

Examples

Some example in context with random colors keepassxc-placeholder-mockup keepassxc-placeholder-mockup-3

And the button to generate reference instead of copying usernames: keepassxc-placeholder-mockup-2

Context

I think placeholders are a really powerful feature, especially the {REF:...} that allow linking entries that depeend on the same thing. But I often found them hard to write and hard to read when the sequence becomes longer.

Note

I know Qt, so if you want I can work on a PR for that.

Guide contributeur