JannisX11 / batch-rename

VS Code extension to batch-rename files
https://marketplace.visualstudio.com/items?itemName=JannisX11.batch-rename-extension
MIT License
55 stars 16 forks source link

Provide way to disable auto save for .Batch Rename.txt #2

Closed ypresto closed 2 years ago

ypresto commented 2 years ago

It's just plain text so I could not add per-language settings like below:

  "[batch-renamer]": {
    "files.autoSave": "off"
  },
hologerry commented 2 years ago

Upvote for this feature.

iskandersierra commented 2 years ago

Maybe, instead of using onDidSaveTextDocument here, you could use onDidCloseTextDocument, so that only when the document is closed, the rename takes action.

Currently I have to do a quick edit, or edit the content in a new file, and then copy the changes back to the rename document. Otherwise it closes on its own and apply whatever changes I managed to cramp within a second.

I haven't tried this suggestion, let me know if I can help with it