Created
June 19, 2023 14:49
-
-
Save vanadium23/ed65f9190a3c1037edc0dc4c6d12660e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = async function (file, folder, tp) { | |
if (file.path(true) == "Untitled.md") { | |
let filename = await tp.system.prompt("Как назвать файл?", null, true); | |
filename = tp.user.sanitaze_filename(filename); | |
await tp.file.move(`${folder}/${filename}`); | |
return filename; | |
} | |
return file.title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment