bacon icon indicating copy to clipboard operation
bacon copied to clipboard

raw output export

Open Canop opened this issue 1 year ago • 6 comments

With the export framework, it would be trivial to implement an export writing the raw command output in a file, to be done either on end of task or on a key press.

I'll wait for a demand to implement it, though.

Canop avatar Oct 13 '24 08:10 Canop

I'd love it as it'd enable me to use bacon inside Cursor/VSCode

Bolognafingers avatar Dec 06 '24 14:12 Bolognafingers

Why ? Some people already use bacon inside vscode, in the integrated terminal.

Canop avatar Dec 06 '24 14:12 Canop

Hey @Canop. I've got a question. How can I copy the whole output? So I've got a target to run tests with nextest analyser, and I can toggle raw output to see the results (because otherwise the analyser will show that a test failed, but won't show why it happened), and now I want to copy the output to show it to an AI assistant and I can't do it. Because ctrl+c only copies the current visible part of the frame, and not the contents of the whole frame.

screwyprof avatar Dec 21 '24 19:12 screwyprof

@screwyprof You'd like to be able to copy the content of the raw output to the clipboard, probably with a key shortcut ?

Canop avatar Dec 21 '24 19:12 Canop

@Canop yes, exactly. Let me elaborate on it. In the past I used to use cargo watch. It's definitely has less features, but it was very easy to copy the output.

The reason I need it is to show it to the AI agents so that they could change the code based on the messages. If it helps at the moment I'm working on a pet project and recently added bacon to it.

So now I have bacon open inside VSCode. It builds the projects, runs linters and tests. So when something fails I want to be able to copy the output to show it to Cursor AI so that it could fix it.

I guess soon enough the AI will be smart enough to be able to run a command and fix the errors based on the output on its own, in the meantime I have to do it manually :smile:

screwyprof avatar Dec 21 '24 22:12 screwyprof

@screwyprof Made a dedicated issue for your need: https://github.com/Canop/bacon/issues/282

Canop avatar Dec 22 '24 06:12 Canop