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

feat: add categorizatio for some common apps #495

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions src/util/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ const COLOR_UNCAT = '#CCC';
export const defaultCategories: Category[] = [
{
name: ['Work'],
rule: { type: 'regex', regex: 'Google Docs|libreoffice|ReText' },
rule: {
type: 'regex',
regex: 'Google Docs|Google Sheets|libreoffice|TextEdit|Pages|ReText|Obsidian',
},
data: { color: '#0F0', score: 10 },
},
{
name: ['Work', 'Programming'],
rule: {
type: 'regex',
regex: 'GitHub|Stack Overflow|BitBucket|Gitlab|vim|Spyder|kate|Ghidra|Scite',
regex:
'GitHub|Stack Overflow|BitBucket|Gitlab|vim|iTerm|Visual Studio Code|Spyder|kate|Ghidra|Scite',
},
},
{
Expand All @@ -62,7 +66,7 @@ export const defaultCategories: Category[] = [
name: ['Media', 'Social Media'],
rule: {
type: 'regex',
regex: 'reddit|Facebook|Twitter|Instagram|devRant',
regex: 'reddit|Facebook|Twitter|Instagram|devRant|LinkedIn|Hacker News',
ignore_case: true,
},
data: { color: '#FCC400' },
Expand All @@ -71,7 +75,7 @@ export const defaultCategories: Category[] = [
name: ['Media', 'Music'],
rule: {
type: 'regex',
regex: 'Spotify|Deezer',
regex: 'Spotify|Deezer|Amazon Music',
ignore_case: true,
},
data: { color: '#A8FC00' },
Expand All @@ -86,10 +90,16 @@ export const defaultCategories: Category[] = [
rule: {
type: 'regex',
regex:
'Messenger|Telegram|Signal|WhatsApp|Rambox|Slack|Riot|Element|Discord|Nheko|NeoChat|Mattermost',
'Messenger|Texts|Telegram|Signal|WhatsApp|Rambox|Slack|Riot|Element|Discord|Nheko|NeoChat|Mattermost',
},
},
{
name: ['Comms', 'Email'],
rule: {
type: 'regex',
regex: 'Gmail|Superhuman|Thunderbird|mutt|alpine',
},
},
{ name: ['Comms', 'Email'], rule: { type: 'regex', regex: 'Gmail|Thunderbird|mutt|alpine' } },
{ name: ['Uncategorized'], rule: { type: null }, data: { color: COLOR_UNCAT } },
];

Expand Down
Loading