feat: use system ls command

This commit is contained in:
2025-01-04 17:25:10 +01:00
parent 0dc93c1d78
commit 16d0e0645a
2 changed files with 33 additions and 24 deletions

View File

@@ -69,4 +69,17 @@ token_limit: 3000
- Check `ChatGPT_Debug_Log` if `improved_debug` is on, or the Neovim messages if `debug` is on, for detailed info.
- You can close the selection or prompt buffers at any time with commands like `:bd`, `:x`, or `:wq`. No need to rely on `:q`.
## Debug Commands
If `enable_debug_commands` is true, you can include commands like these in your YAML:
```yaml
commands:
- command: "list"
dir: "some/directory"
- command: "grep"
pattern: "searchString"
target: "path/to/file/or/directory"
```
The **list** command now uses the Linux `ls` command to list directory contents. The **grep** command searches for a given pattern in a file or all files in a directory.
Enjoy your improved, more flexible ChatGPT Neovim plugin with step-by-step support!