[PR #2426] [MERGED] feat: Add bookmark search command with query matchers and pagination #2100

Closed
opened 2026-03-02 12:00:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/2426
Author: @MohamedBassem
Created: 1/26/2026
Status: Merged
Merged: 1/26/2026
Merged by: @MohamedBassem

Base: mainHead: claude/add-cli-search-subcommand-6kIe0


📝 Commits (2)

  • 81792d0 feat(cli): Add search subcommand to bookmarks
  • 811d3a9 fixes + format

📊 Changes

2 files changed (+88 additions, -12 deletions)

View changed files

📝 apps/cli/src/commands/bookmarks.ts (+78 -11)
📝 apps/cli/src/commands/lists.ts (+10 -1)

📄 Description

Add a new search subcommand that uses the searchBookmarks API endpoint. The command supports:

  • Full-text search with advanced query matchers (tag:, is:, list:, etc.)
  • Pagination with --all flag to fetch all results
  • Sorting by relevance, ascending, or descending order
  • Optional full content inclusion with --include-content
  • Configurable result limit per page

Example usage:
bookmarks search "is:fav tag:important" bookmarks search "kotlin" --sort-order desc --limit 20 bookmarks search "title:api" --include-content --all


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/2426 **Author:** [@MohamedBassem](https://github.com/MohamedBassem) **Created:** 1/26/2026 **Status:** ✅ Merged **Merged:** 1/26/2026 **Merged by:** [@MohamedBassem](https://github.com/MohamedBassem) **Base:** `main` ← **Head:** `claude/add-cli-search-subcommand-6kIe0` --- ### 📝 Commits (2) - [`81792d0`](https://github.com/karakeep-app/karakeep/commit/81792d00a15f7d7f794b6312bad0d73b2c25633d) feat(cli): Add search subcommand to bookmarks - [`811d3a9`](https://github.com/karakeep-app/karakeep/commit/811d3a91e1b7a4fb7479e335d977f564ccbd6a2c) fixes + format ### 📊 Changes **2 files changed** (+88 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `apps/cli/src/commands/bookmarks.ts` (+78 -11) 📝 `apps/cli/src/commands/lists.ts` (+10 -1) </details> ### 📄 Description Add a new search subcommand that uses the searchBookmarks API endpoint. The command supports: - Full-text search with advanced query matchers (tag:, is:, list:, etc.) - Pagination with --all flag to fetch all results - Sorting by relevance, ascending, or descending order - Optional full content inclusion with --include-content - Configurable result limit per page Example usage: bookmarks search "is:fav tag:important" bookmarks search "kotlin" --sort-order desc --limit 20 bookmarks search "title:api" --include-content --all --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 12:00:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#2100
No description provided.