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

Documentation for auto tagging? #938

Open
jasdjensen opened this issue Jan 2, 2025 · 1 comment
Open

Documentation for auto tagging? #938

jasdjensen opened this issue Jan 2, 2025 · 1 comment

Comments

@jasdjensen
Copy link

Can you add documentation of how the auto tagging works?

Are there any features beyond an exact match? For example if I wanted to mark links from a subnet as "local" could I use:

192.168.1.* local

Are there any other things that I can use like:
reddit.com/r/hosted self-hosted
site.com/
.pdf pdf-file

If you could document the features and limitations that would help.

@sissbruecker
Copy link
Owner

There are no placeholders or wildcards. Otherwise it does:

  • Match domains with ends with, so that sub.domain.com matches domain.com
  • Matches paths with starts with, so that domain.com/foo/bar matches domain.com/foo
  • Matches query string so that all key/value pairs exist in the checked URL

The exact implementation can be found here: https://github.com/sissbruecker/linkding/blob/master/bookmarks/services/auto_tagging.py

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

No branches or pull requests

2 participants