Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ui/desktop/src/components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ export default function Input({
const handleFileSelect = async () => {
const path = await window.electron.selectFileOrDirectory();
if (path) {
setValue(path);
// Append the path to existing text, with a space if there's existing text
setValue((prev) => {
const currentText = prev.trim();
return currentText ? `${currentText} ${path}` : path;
});
textAreaRef.current?.focus();
}
};
Expand Down
Loading