nextcloud / nextcloud/text

Trigger mentions with non-whitespace before `@`

Open
#8,468 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

Is your feature request related to a problem? Please describe.
To trigger mentions the character before the @ has to be a white space. Is there a reason for that? User repetedly reported this as very confusing, because it "sometimes works and sometime not", or "can't mention users in between brackets", because (@user) does not work, it has to be @user <- mark white space after opening bracket.

Describe the solution you'd like
I see the problem when typing email addresses or similar user handles. Mayby allow triggering mentions with @'s right after a special character? E.g. after (, : and so on?

Common use cases would be something like

- Bring food (@user)
- Bring drinks:@user

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

The issue names no files, tests, or entry points. Start by locating the JavaScript editor logic that detects mention triggers, then compare the current whitespace rule with the examples (@user) and drinks:@user; done means supported punctuation cases trigger mentions without incorrectly matching email addresses.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.