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

Assist organize file paths #12

Open squld opened 3 months ago

squld commented 3 months ago

Proposal

We need a feature to reorganize Markdown files within a workspace to appropriate paths. This feature can be implemented in three steps:

  1. List the unmodified diff of the Markdown file paths in the workspace into an editor buffer:
    - path/to/markdown.md
    + path/to/markdown.md
    - other/markdown2.md
    + other/markdown2.md
  2. Edit the diff either manually or with Copilot:
    - path/to/markdown.md
    + corrected/path/name.md
    - other/markdown2.md
    + nicer/path/name.md
  3. Apply the diff to the file paths.

Other information

The following considerations are necessary:

squld commented 1 month ago

I rethought the editing steps for the paths. It has three steps: List -> Edit -> Apply. Since it is very difficult to automate the Edit step, we will only support manual editing for now.

In the future, when automating the Edit step, we can create a command that recommends a path based on the contents of any selected path line.

What do you think?

maekawatoshiki commented 1 month ago

Since it is very difficult to automate the Edit step, we will only support manual editing for now. In the future, when automating the Edit step, we can create a command that recommends a path based on the contents of any selected path line.

I agree with the plan putting off Edit part. That's hard to create new consistent paths given contents.