docs(cli): note URL exclusion in _extract_path_word docstring

The docstring described a token as path-like when it contains a "/"
separator, but the keystroke-latency fix now excludes "://" scheme tokens
(URLs) even though they contain "/". Document the exclusion so the contract
matches the behavior.
This commit is contained in:
kshitijk4poor 2026-06-17 12:36:01 +05:30
parent fbaad3031a
commit ca6542f602

View file

@ -1280,6 +1280,10 @@ class SlashCommandCompleter(Completer):
current word doesn't look like a path. A word is path-like when
it starts with ``./``, ``../``, ``~/``, ``/``, or contains a
``/`` separator (e.g. ``src/main.py``).
Tokens containing a ``://`` scheme separator (e.g. URLs like
``https://example.com/x``) are excluded even though they contain a
``/`` they are never useful local-path completions.
"""
if not text:
return None