mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-17 09:41:58 +00:00
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:
parent
fbaad3031a
commit
ca6542f602
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue