kurusugawa-computer / markdown-copilot-vscode

OpenAI ChatGPT API client for VSCode
https://marketplace.visualstudio.com/items?itemName=kurusugawa-computer.markdown-copilot
MIT License
9 stars 2 forks source link

Organize files #22

Open maekawatoshiki opened 1 month ago

maekawatoshiki commented 1 month ago

Summary

After manually specifying diff and selecting it, run the command.

- path/to/markdown.md
+ corrected/path/name.md
- other/markdown2.md
+ nicer/path/name.md

Remaining tasks

squld commented 1 month ago

@maekawatoshiki Thank you for the work!

Please meet the following requirements:

Command: Apply File Path Diff

Command: List File Path Diff

maekawatoshiki commented 3 weeks ago

From your review, I've made changes to the Apply File Path Diff part.

squld commented 3 weeks ago

@maekawatoshiki Thank you for the work!

I tested cyclic renaming paths, but an error occurred. Please support cyclic renaming paths.

Preparation commands:

mkdir -p testdata
touch testdata/a.md testdata/b.md testdata/c.md

Applied File Path Diff:

- testdata/a.md
+ testdata/b.md
- testdata/b.md
+ testdata/c.md
- testdata/c.md
+ testdata/a.md

Displayed error message:

ERROR: Destination file already exists: "testdata/b.md"
squld commented 3 weeks ago

@maekawatoshiki I have decided to withdraw the cyclic renaming paths feature. After rethinking the use cases, I realized that both cyclic renaming paths and swapping renaming paths are quite rare scenarios.

What do you think?

maekawatoshiki commented 3 weeks ago

@squld

Implementing cyclic renaming paths is no hard (though I had a wrong understanding 😕), but it's better for code simplicity not to support it.

squld commented 3 weeks ago

@maekawatoshiki

Implementing cyclic renaming paths is no hard (though I had a wrong understanding 😕), but it's better for code simplicity not to support it.

Thanks for the comment. Let's keep the code simple for now!

maekawatoshiki commented 2 weeks ago

@squld From your review, I've modified the code to force diff lines in order. Also List File Path Diff is added.