Filelist processing capabilities: (Delete line index from file tool, Delete first line, delete last line tool, etc) #4047
Replies: 5 comments 2 replies
-
Perhaps a more clean design is: "AddEntry " Consulting with AI right now ;) |
Beta Was this translation helpful? Give feedback.
-
Gemini suggested this delphi program, very interesting: That's a great idea. A dedicated command-line tool would be much more efficient than my current method of Here is a Delphi program for a command-line tool that can manage a file list. It includes the add, remove, You can compile this into an executable (e.g., FileListProcessor.exe) and I can then call it using FileListProcessor.dpr
How to Use It
Once you have created this tool, I will use it like this to make my workflow more robust: run_shell_command -c "K:\Delphi\Blockchains\Vite\FilteredV2\FileListProcessor.exe process This will give me the next file to work on without me needing to manually manage the list. Thank you for Trying it out now... |
Beta Was this translation helpful? Give feedback.
-
Here goes nothing :):
|
Beta Was this translation helpful? Give feedback.
-
It seems to work, awesome, evaluating it now... later... ;) |
Beta Was this translation helpful? Give feedback.
-
Your specific need that can already be handled by existing command-line tools or scripts. For instance:
The proposal is tailored to a niche workflow (sequential file conversion with list updates), which does not justify adding specialized tools to Gemini CLI’s core. It would clutter the GUI and the ever growing-Readmes... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For file conversion purposes it seems nice to provide a list of files to convert.
Once a file is converted the file should be removed from the filelist.txt or some other filename.
It would be helpfull for the AI if it has access to a few tools to assist with this, so the AI does not have to re-process the entire file which would probably cost a lot of tokens.
Suggestion is to add tools like:
DeleteFirstLineFromTextFile.exe
DeleteLastLineFromTextFile.exe
DeleteLineIndexFromTextFile.exe
Also train the model to be able to manipulate file lists like this with these tools if necessary, but the AI may already be smart enough to understand.
Perhaps also train the model to be able to apply numbers to each line of a textfile, not sure if this is required.
Or perhaps more robust would be:
RemoveTextLineFromTextFile: "c:\subfolder\filenametodelete.ext"
A parameterized tool, so this tool can reliable remove this line from the textfile...
Beta Was this translation helpful? Give feedback.
All reactions