Open maekawatoshiki opened 1 month ago
@maekawatoshiki Thank you for the work!
Please meet the following requirements:
Apply File Path Diff
^\+ *$
, delete the from file- path/a.md
+ path/b.md
- path/b.md
+ path/c.md
- path/c.md
+ path/a.md
LF
or CRLF
- path/a.md
+ conflict.md
- path/b.md
+ conflict.md
List File Path Diff
From your review, I've made changes to the Apply File Path Diff
part.
@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"
@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?
@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.
@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!
@squld
From your review, I've modified the code to force diff lines in order.
Also List File Path Diff
is added.
Summary
Markdown Copilot: Organize files
command to apply file renaming.After manually specifying diff and selecting it, run the command.
Remaining tasks