Skip to content

Commit d7c82d7

Browse files
committed
✨ Add new queries to the hub
1 parent a83400a commit d7c82d7

File tree

99 files changed

+1953
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1953
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
title = "Close tabs of a domain different than the specified one"
3+
description = "Close all tabs that do not belong to the specified domain"
4+
5+
plugins = ["brave"]
6+
7+
author = "julien040"
8+
9+
tags = ["brave", "tabs", "management"]
10+
11+
arguments = [
12+
{title="domain", display_title = "Domain", type="string", description="The domain to keep tabs open for", regex="^[a-zA-Z0-9.-]+$"}
13+
]
14+
*/
15+
16+
DELETE FROM brave_tabs
17+
WHERE
18+
LOWER(url) NOT LIKE CONCAT('%', LOWER(@domain), '%');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
title = "Close tabs of a specific domain"
3+
description = "Close all tabs that belong to a specific domain"
4+
5+
plugins = ["brave"]
6+
7+
author = "julien040"
8+
9+
tags = ["brave", "tabs", "close"]
10+
11+
arguments = [
12+
{title = "domain", display_title = "Domain", type = "string", description = "The domain of the tabs to close", regex = "^[a-zA-Z0-9.-]+$"}
13+
]
14+
*/
15+
16+
DELETE FROM brave_tabs
17+
WHERE LOWER(url) LIKE CONCAT('%', LOWER(@domain), '%');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
title = "Close tabs that contain a specific keyword in the title"
3+
description = "Close all tabs in the Brave browser that have a specific keyword in their title"
4+
5+
plugins = ["brave"]
6+
7+
author = "julien040"
8+
9+
tags = ["brave", "tabs", "close"]
10+
11+
arguments = [
12+
{title="keyword", display_title = "Keyword", type="string", description="Keyword to find in the tab titles", regex=".*"}
13+
]*/
14+
15+
DELETE FROM brave_tabs
16+
WHERE LOWER(title) LIKE LOWER(CONCAT('%', @keyword, '%'));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
title = "How many tabs are open in the browser?"
3+
description = "Count the total number of open tabs in the browser"
4+
5+
plugins = ["brave"]
6+
7+
author = "julien040"
8+
9+
tags = ["brave", "tabs", "count", "open"]
10+
11+
arguments = []
12+
*/
13+
14+
SELECT
15+
COUNT(*) AS open_tabs
16+
FROM
17+
brave_tabs;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
title = "What is the title of the active tab?"
3+
description = "Retrieve the title of the currently active tab in the Brave browser"
4+
5+
plugins = ["brave"]
6+
7+
author = "julien040"
8+
9+
tags = ["brave", "tabs", "active"]
10+
11+
arguments = []
12+
*/
13+
14+
SELECT
15+
title
16+
FROM
17+
brave_tabs
18+
WHERE
19+
active = 1;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
title = "What is the URL of the active tab?"
3+
description = "Get the URL of the currently active tab in the Brave browser"
4+
5+
plugins = ["brave"]
6+
7+
author = "julien040"
8+
9+
tags = ["brave", "tabs", "url"]
10+
11+
arguments = []
12+
*/
13+
14+
SELECT
15+
url
16+
FROM
17+
brave_tabs
18+
WHERE
19+
active = 1;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
title = "Chrome Close tabs of a domain different than the specified one"
3+
description = "Close all tabs from a domain that is different from the specified one"
4+
5+
plugins = ["chrome"]
6+
7+
author = "julien040"
8+
9+
tags = ["chrome", "tabs", "close"]
10+
11+
arguments = [
12+
{title="domain", display_title = "Domain", type="string", description="The domain to keep tabs open for", regex="^[a-zA-Z0-9.-]+$"}
13+
]*/
14+
15+
DELETE FROM chrome_tabs
16+
WHERE LOWER(url) NOT LIKE CONCAT('%', LOWER(@domain), '%');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
title = "Chrome Close tabs of a specific domain"
3+
description = "Close all tabs that belong to a specific domain"
4+
5+
plugins = ["chrome"]
6+
7+
author = "julien040"
8+
9+
tags = ["chrome", "tabs", "management"]
10+
11+
arguments = [
12+
{title="domain", display_title = "Domain", type="string", description="The domain of the tabs to close", regex="^[a-zA-Z0-9.-]+$"}
13+
]
14+
*/
15+
16+
DELETE FROM chrome_tabs
17+
WHERE url LIKE CONCAT('%', @domain, '%');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
title = "Close tabs that contain a specific keyword in the title"
3+
description = "Close all tabs in a Chromium-based browser where the title contains a specified keyword"
4+
5+
plugins = ["chrome"]
6+
7+
author = "julien040"
8+
9+
tags = ["chrome", "tabs", "close"]
10+
11+
arguments = [
12+
{title="keyword", display_title = "Keyword", type="string", description="Keyword to search for in the tab titles", regex=".*"}
13+
]
14+
*/
15+
16+
DELETE FROM
17+
chrome_tabs
18+
WHERE
19+
LOWER(title) LIKE CONCAT('%', LOWER(@keyword), '%');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
title = "How many tabs are open in the browser?"
3+
description = "Get the total number of open tabs in the Chromium-based browser"
4+
5+
plugins = ["chrome"]
6+
7+
author = "julien040"
8+
9+
tags = ["chrome", "tabs", "browser"]
10+
*/
11+
12+
SELECT
13+
COUNT(*) AS open_tabs
14+
FROM
15+
chrome_tabs;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
title = "What is the title of the active tab?"
3+
description = "Get the title of the currently active tab in a Chromium-based browser"
4+
5+
plugins = ["chrome"]
6+
7+
author = "julien040"
8+
9+
tags = ["chrome", "tabs", "active"]
10+
11+
arguments = []
12+
*/
13+
14+
SELECT
15+
title
16+
FROM
17+
chrome_tabs
18+
WHERE
19+
active = 1;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
title = "What is the URL of the active tab?"
3+
description = "Get the URL of the currently active tab in the Chromium based browser"
4+
5+
plugins = ["chrome"]
6+
7+
author = "julien040"
8+
9+
tags = ["chrome", "tabs", "active tab"]
10+
*/
11+
12+
SELECT
13+
url
14+
FROM
15+
chrome_tabs
16+
WHERE
17+
active = 1;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
title = "Export a ClickUp document to text"
3+
description = "Retrieve and export the content of all pages within a specified ClickUp document as a single concatenated text."
4+
5+
plugins = ["clickup"]
6+
7+
author = "julien040"
8+
9+
tags = ["clickup", "document", "export"]
10+
11+
arguments = [
12+
{title="workspace_id", display_title = "Workspace ID", type="string", description="The ID of the workspace containing the document to export.", regex="^[0-9]+$"},
13+
{title="document_id", display_title = "Document ID", type="string", description="The ID of the document to export.", regex="^[A-Z0-9a-z\\-]+$"}
14+
]
15+
*/
16+
17+
SELECT
18+
GROUP_CONCAT(content, '\n') AS document_text
19+
FROM
20+
clickup_pages
21+
WHERE
22+
workspace_id = @workspace_id AND
23+
doc_id = @document_id;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
title = "How many tasks exist per status in a specific list?"
3+
description = "Count the number of tasks per status in a given list"
4+
5+
plugins = ["clickup"]
6+
7+
author = "julien040"
8+
9+
tags = ["clickup", "tasks", "status", "count"]
10+
11+
arguments = [
12+
{title="list_id", display_title = "List ID", type="string", description="The ID of the list to query for tasks", regex="^[a-zA-Z0-9_-]+$"}
13+
]
14+
*/
15+
16+
SELECT
17+
status,
18+
COUNT(*) AS task_count
19+
FROM
20+
clickup_tasks
21+
WHERE
22+
list_id = @list_id
23+
GROUP BY
24+
status;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
title = "List all documents in a specific folder"
3+
description = "Get all documents within a specific folder by providing the folder ID"
4+
5+
plugins = ["clickup"]
6+
7+
author = "julien040"
8+
9+
tags = ["clickup", "documents", "folder"]
10+
11+
arguments = [
12+
{title="folder_id", display_title = "Folder ID", type="string", description="The ID of the folder to fetch documents from", regex="^[0-9]+$"}
13+
]
14+
*/
15+
16+
SELECT
17+
d.doc_id,
18+
d.created_at,
19+
d.updated_at,
20+
d.name,
21+
d.parent_id,
22+
d.creator_id,
23+
d.deleted
24+
FROM
25+
clickup_docs d,
26+
clickup_folders f
27+
WHERE
28+
f.folder_id = @folder_id
29+
AND
30+
d.parent_id = f.folder_id;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
title = "List all lists in a specific space"
3+
description = "Retrieve all the lists within a given space in ClickUp."
4+
5+
plugins = ["clickup"]
6+
7+
author = "julien040"
8+
9+
tags = ["clickup", "lists", "space"]
10+
11+
arguments = [
12+
{title="space_id", display_title = "Space ID", type="string", description="The ID of the space to retrieve lists from", regex="^[0-9]+$"}
13+
]
14+
*/
15+
16+
WITH folder_lists AS (
17+
SELECT folder_id, name AS folder_name
18+
FROM clickup_folders
19+
WHERE space_id = @space_id
20+
)
21+
SELECT
22+
fl.folder_name,
23+
l.name AS list_name
24+
FROM
25+
folder_lists fl
26+
JOIN
27+
clickup_lists l
28+
ON
29+
fl.folder_id = l.folder_id;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
title = "List all subtasks of a specific task"
3+
description = "Retrieve all subtasks of a given task ID."
4+
5+
plugins = ["clickup"]
6+
7+
author = "julien040"
8+
9+
tags = ["clickup", "subtasks", "tasks"]
10+
11+
arguments = [
12+
{title="task_id", display_title = "Task ID", type="string", description="The ID of the parent task to retrieve subtasks for.", regex="^[a-zA-Z0-9_-]+$"},
13+
{title="list_id", display_title = "List ID", type="string", description="The ID of the list containing the task.", regex="^[a-zA-Z0-9_-]+$"}
14+
]
15+
*/
16+
17+
SELECT
18+
*
19+
FROM
20+
clickup_tasks
21+
WHERE
22+
parent = @task_id
23+
AND list_id = @list_id;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
title = "List all tasks assigned to a specific user"
3+
description = "Retrieve all tasks that are assigned to a specific user using their user ID."
4+
5+
plugins = ["clickup"]
6+
7+
author = "julien040"
8+
9+
tags = ["clickup", "tasks", "user"]
10+
11+
arguments = [
12+
{title="list_id", display_title = "List ID", type="string", description="The ID of the list to fetch tasks from", regex="^[0-9]+$"},
13+
{title="user_id", display_title = "User ID", type="string", description="The ID of the user to filter tasks by", regex="^[0-9]+$"}
14+
]
15+
*/
16+
17+
SELECT
18+
*
19+
FROM
20+
clickup_tasks
21+
WHERE
22+
list_id = @list_id
23+
AND assignees LIKE CONCAT('%', @user_id, '%');

0 commit comments

Comments
 (0)