Ability to tie links to a domain#151
Open
andrewgierens wants to merge 7 commits intojamesr981:masterfrom
Open
Conversation
- Add optional domainPattern field to Link type - Update validation to support domain pattern syntax (path@domain) - Implement dynamic context menu filtering based on current tab domain - Update background.ts to filter menu items by domain regex - Update PathEditor UI with examples of domain-specific syntax - Add tab change listeners to update context menu dynamically - Maintain backward compatibility with existing configs Co-authored-by: andrewgierens <4150500+andrewgierens@users.noreply.github.com>
- Update README with domain-specific context menu documentation - Add examples and usage instructions for domain filtering - Add changelog entry for version 5.2.0 - Bump version in package.json and manifest.ts Co-authored-by: andrewgierens <4150500+andrewgierens@users.noreply.github.com>
- Extract common menu creation logic into createDefaultContextMenu helper - Update onInstalled to create filtered menu when possible - Update onStorageChange to use shared helper function - Eliminates duplicate menu creation code Co-authored-by: andrewgierens <4150500+andrewgierens@users.noreply.github.com>
When filtering context menu items by domain, headings now only appear if they have at least one non-heading link under them that matches the domain. This prevents empty headings from cluttering the context menu. Co-authored-by: andrewgierens <4150500+andrewgierens@users.noreply.github.com>
- Restructure PathEditor UI with clearer format explanation - Add explicit separator descriptions (> for name/path, @ for domain) - Use monospace font for better readability - Expand README with comprehensive format guide - Add complete configuration example with headings and multiple domains - Include important notes about escaping dots and case-insensitivity - Make distinction between required and optional components clear Co-authored-by: andrewgierens <4150500+andrewgierens@users.noreply.github.com>
Add domain-specific context menu filtering with regex patterns
jamesr981
reviewed
Jan 19, 2026
| manifest_version: 3, | ||
| name: 'HappierPath', | ||
| version: '5.1.1', | ||
| version: '5.2.0', |
| "name": "happier-path", | ||
| "private": true, | ||
| "version": "5.1.1", | ||
| "version": "5.2.0", |
| { | ||
| "name": "happier-path", | ||
| "version": "5.1.1", | ||
| "version": "5.2.0", |
| * Clicking the same links will take you to the same routes without changing the FQDN | ||
| * This works because google.com and google.com.au share the same route structure. A traditional bookmark will also store the FQDN, which isn't useful when you have many websites that share the same route structure | ||
|
|
||
| ## Domain-Specific Context Menu (New in 5.2.0) |
Owner
There was a problem hiding this comment.
Revert chagnes in the readme. I'll write up some stuff in the release notes when I release
Comment on lines
+68
to
+85
| <Typography | ||
| variant="body2" | ||
| sx={{ | ||
| mb: 1, | ||
| whiteSpace: 'pre-line', | ||
| fontFamily: 'monospace', | ||
| fontSize: 11, | ||
| }} | ||
| > | ||
| {`Format: Name>Path[@Domain] | ||
| > separates name from path (required) | ||
| @ separates path from domain pattern (optional) | ||
|
|
||
| Examples: | ||
| My Heading>0 | ||
| Admin Panel>/admin | ||
| GitHub Issues>/issues@github\\.com | ||
| Multi-site API>/api@(dev|prod)\\.example\\.com`} |
Owner
There was a problem hiding this comment.
This made the font look strange.
Ensure it looks the same as it was before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.