Skip to content

feat(bitwarden): add a "choose each time" copy field - #162

Open
akotro wants to merge 1 commit into
noctalia-dev:mainfrom
akotro:feat/bitwarden-pick-field
Open

akotro wants to merge 1 commit into
noctalia-dev:mainfrom
akotro:feat/bitwarden-pick-field

Conversation

@akotro

@akotro akotro commented Nov 19, 2026

Copy link
Copy Markdown

Summary

Adds pick ("Choose Each Time") to the existing copy_field select. With it selected, Enter on any /bw vault 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 copy copy_field.

  • launcher.luau: skip the cached single-copy shortcut and open the picker when copy_field is pick and the item has at least one copyable field
  • service.luau: treat pick like the default password on the fallback copy paths (failed item fetch, item with no copyable fields)
  • plugin.toml: new option, version 1.4.0 -> 1.5.0
  • translations/en.json, README.md: option label and docs

Default behavior is unchanged.

Motivation

Getting the username, TOTP or a URI for an ordinary login currently means changing copy_field in 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

  • New feature

Related Issue

A possible solution for #53.

Testing

  • noctalia plugins lint bitwarden: 0 errors, 0 warnings
  • python3 -m unittest discover -s .github/actions/validate-plugins -p 'test_validate_plugins.py': 178 tests OK
  • python3 .github/actions/validate-plugins/validate-plugins.py --profile official --root "$PWD": 14 manifests valid
  • Manual , loaded through a path source on Hyprland:
    • copy_field = "pick": Enter on a login without custom fields opens the picker; digit keys copy username/password/TOTP/URI
    • copy_field = "pick": login with custom fields still opens the picker as before
    • copy_field = "password": Enter copies the password directly, as before
    • Settings shows "Choose Each Time" under Copy Field

Manual Coverage

  • Tested on Hyprland

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • I self-reviewed the changes.
  • I added or updated translations/en.json, or this PR adds no new user-facing strings.
  • I did not edit non-English translation files unless this PR is explicitly for translation tooling, an import/export sync, or a maintainer-requested locale change.

Additional Notes

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

Successfully merging this pull request may close these issues.

[FEATURE] Per-item field choice (password/username/TOTP) when activating a /bw launcher result

1 participant