feat: Add file search to chat (#317)

This commit is contained in:
Petr Mironychev
2026-02-22 13:53:44 +01:00
committed by GitHub
parent ec45067336
commit 3de1619bf0
13 changed files with 810 additions and 190 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2024-2025 Petr Mironychev
* Copyright (C) 2024-2026 Petr Mironychev
*
* This file is part of QodeAssist.
*
@ -51,6 +51,7 @@ Rectangle {
property int messageIndex: -1
signal resetChatToMessage(int index)
signal openFileRequested(string filePath)
height: msgColumn.implicitHeight + 10
radius: 8
@ -204,6 +205,15 @@ Rectangle {
}
}
onLinkActivated: function(link) {
if (link.startsWith("file://")) {
var filePath = link.replace(/^file:\/\//, "")
root.openFileRequested(filePath)
} else {
Qt.openUrlExternally(link)
}
}
ChatUtils {
id: utils
}