Repository navigation
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
pick("Choose Each Time") to the existingcopy_fieldselect. With it selected, Enter on any/bwvault item opens the field picker from #117 (username, password, TOTP, URIs, notes, custom fields, plus Autotype) instead of copying one fixed field. Items without custom fields used to skip the picker and always copycopy_field.launcher.luau: skip the cached single-copy shortcut and open the picker whencopy_fieldispickand the item has at least one copyable fieldservice.luau: treatpicklike the defaultpasswordon the fallback copy paths (failed item fetch, item with no copyable fields)plugin.toml: new option, version 1.4.0 -> 1.5.0translations/en.json,README.md: option label and docsDefault behavior is unchanged.
Motivation
Getting the username, TOTP or a URI for an ordinary login currently means changing
copy_fieldin plugin settings and changing it back afterwards. The picker added in #117 already lists every field, but it only opens for items that have custom fields. Making it reachable for every item resolves #53 without new launcher rows or a launcher API change, and without cluttering results for people who only copy passwords.Type of Change
Related Issue
A possible solution for #53.
Testing
noctalia plugins lint bitwarden: 0 errors, 0 warningspython3 -m unittest discover -s .github/actions/validate-plugins -p 'test_validate_plugins.py': 178 tests OKpython3 .github/actions/validate-plugins/validate-plugins.py --profile official --root "$PWD": 14 manifests validpathsource on Hyprland:copy_field = "pick": Enter on a login without custom fields opens the picker; digit keys copy username/password/TOTP/URIcopy_field = "pick": login with custom fields still opens the picker as beforecopy_field = "password": Enter copies the password directly, as beforeManual Coverage
Checklist
translations/en.json, or this PR adds no new user-facing strings.Additional Notes
onActivate(id)receives no modifier state. A setting value keeps this within the existing plugin API.