Search, browse, and open Chrome bookmarks directly from the local Bookmarks JSON file.
~/Library/Application Support/Google/Chrome/)open command to launch URLs) — for Linux, replace open with xdg-openpython3 @scripts/chrome_bookmarks.py search "<keyword>" --limit 10
--limit N: max results (default 20)--folder : restrict search to a specific folderExample: Search for TAPD-related bookmarks
python3 @scripts/chrome_bookmarks.py search "TAPD" --limit 10
python3 @scripts/chrome_bookmarks.py list --folder "<folder_name>" --depth 2
--folder to list all top-level items--depth N: how deep to traverse the tree (default 2)Example: List items in the "Code" folder
python3 @scripts/chrome_bookmarks.py list --folder "Code" --depth 2
python3 @scripts/chrome_bookmarks.py tree --depth 1
Shows top-level folders with bookmark counts. Increase --depth for more detail.
python3 @scripts/chrome_bookmarks.py open "<keyword>"
Opens the first matching bookmark URL in the default browser using the open command.
Example:
python3 @scripts/chrome_bookmarks.py open "iWiki"
This will find the first bookmark whose name or URL contains "iWiki" and open it.
search with the keywordopen with a more specific keyword or confirm the exact nameDefault first, then Profile 1, etc.open command only works on macOS. On Linux, the script would need to use xdg-open instead.open command opens the first match. Use search first to verify the right bookmark if unsure.After running search, confirm the output is a JSON array of bookmark objects with name, url, folder, and path fields. After running open, confirm the output contains "opened": true.
@scripts/chrome_bookmarks.py — Main CLI script (Python 3, zero external dependencies)共 1 个版本