Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Supress popup if current word is preceeded by mailto #27

Open
tsievert opened this issue Jan 15, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@tsievert
Copy link

tsievert commented Jan 15, 2024

Description

If you want to add e-mail addresses to your vault, you will always get the popup to either choose an existing person or to add a new note (if that option is activated).

Expected behavior

No popup if email is preceded by mailto:

[Jane Doe Email](mailto:[email protected])
@tsievert tsievert changed the title [Feature request} Supress popup if current word is preceeded by mailto [Feature request] Supress popup if current word is preceeded by mailto Jan 15, 2024
@Ebonsignori Ebonsignori added the enhancement New feature or request label Feb 13, 2024
@Ebonsignori
Copy link
Owner

Ebonsignori commented Feb 13, 2024

This is a good idea. It might not be possible in compatibility mode, but is doable in normal mode.

I'll try to get to it soon.

I'll try to make the suppression text(s) configurable:

  • if "mailto:" is in the same line, suppress @ linking

The trouble is that there are characters between mailto: and the @, so we need to check the entire line instead of just X amount of characters proceeding the @ symbol where X could be the length(s) of the suppression phrases you configure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants