From 874939a65b90801165a30a979f96522b79765b19 Mon Sep 17 00:00:00 2001 From: Nose Date: Thu, 22 Jan 2026 04:22:06 -0800 Subject: [PATCH] f --- cmdlet/get_url.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cmdlet/get_url.py b/cmdlet/get_url.py index 6ffe9cb..07ba439 100644 --- a/cmdlet/get_url.py +++ b/cmdlet/get_url.py @@ -15,6 +15,7 @@ from ._shared import ( get_field, normalize_hash, ) +from . import _shared as sh from SYS.logger import log from SYS.result_table import Table from Store import Store @@ -557,6 +558,19 @@ class Get_Url(Cmdlet): # Check if user provided a URL pattern to search for search_pattern = parsed.get("url") + # Support positional URL search or "url:" query prefix + if not search_pattern: + query = parsed.get("query") + if query: + if str(query).lower().startswith("url:"): + search_pattern = query[4:].strip() + elif self._looks_like_url_pattern(query) or ( + "." in str(query) and len(str(query)) < 64 + ): + # If it looks like a domain or URL, and isn't a long hash, + # treat a positional query as a search pattern. + search_pattern = query + if search_pattern: # URL search mode: find all files with matching URLs across stores items, stores_searched = self._search_urls_across_stores(search_pattern, config)