Skip to content

Commit 347db87

Browse files
committed
file completer should work with file command
1 parent 9cf357d commit 347db87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

AgentCrew/modules/chat/completers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ def get_completions(self, document, complete_event):
127127
yield from self.jump_completer.get_completions(document, complete_event)
128128
elif text.startswith("/mcp"):
129129
yield from self.mcp_completer.get_completions(document, complete_event)
130+
elif text.startswith("/file "):
131+
yield from self.file_completer.get_completions(document, complete_event)
130132
elif text.startswith("/"):
131133
yield from self.get_command_completions(document)
132134

AgentCrew/modules/gui/components/input_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def check_for_path_completion(self):
121121
text_to_cursor = text[:cursor_position]
122122

123123
# First check for command completion
124-
if text_to_cursor.startswith("/"):
124+
if text_to_cursor.startswith("/") and not text_to_cursor.startswith("/file "):
125125
self.check_for_command_completion()
126126
return
127127

0 commit comments

Comments
 (0)