mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 10:51:11 +01:00
file.newProfiles and Manage Profiles checked a profile's file with is_file, which follows a link. A profile file that was a link to a document was listed as customized with Edit on, while file.new refuses to read a link and gives the new document the defaults. A link that led nowhere, or a folder, was listed as not customized, so Reset was off and could not remove it, and Edit on a link that led nowhere wrote the shipped profile where the link pointed. The profile's file is now looked at without following a link: - file.newProfiles lists a link or a folder as customized, with unusable: "not a plain file". - Manage Profiles dims that profile's name, says why in its tooltip, and turns Edit off. Reset stays on for a link and removes the link, not the file it leads to. Reset is off for a folder, and file.newProfiles.reset gives an error instead of deleting a folder. - file.newProfiles.edit gives an error for a link or a folder, and creates a missing profile file without following a link put there. Docs: docs/mcp.md (New Document profiles) and the command help.