nextcloud / nextcloud/contacts

Support locate-and-replace for field data.

Open
#5,129 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
JavaScript
Stars
642
Forks
220
Avg merge
14h 39m
Merged PRs (30d)
51

Description

My Rationale

I want to replace \+[^@]+(?=@(gmail\.com|mail\.google\.com|outlook\.com|icloud\.com)$) with a single sub-address. Currently, this requires that I export all contacts as VCF files, then modify them with software that is aware of how (non-JSON) vCard truncates lines.

My Desired Solution

Provide a way to conduct locate-and-replace actions upon field data (and field names, if feasible).

Considered Alternatives

Export all contacts as VCF files, then modify them with software that is aware of how (non-JSON) vCard truncates lines, if this exists. Otherwise, manually modify each line in a text editor.

Additional Context

Such software likely does not exist, so I'll likely be forced to utilise a text editor otherwise. If issues/4300 were implemented, this would be significantly less of a problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing issue 4300 and locating the contacts field-editing flow; define how locate-and-replace applies to field data and, if feasible, field names. Done means the requested email-pattern replacement works without exporting VCF files and does not disrupt ordinary contact edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.