mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-21 03:26:50 +00:00
Rename: never replace a file that appears under the new name (hard link then unlink, rename where links are unavailable); refuse COM0/LPT0, superscript device names and over-long full paths; a read-only file renames like in the file manager
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0f3986bfd0
commit
53d04754df
3 files changed
+167
-24
No files matched your search
@@ -34,7 +34,7 @@ milestone = "M2"
|
||||
status = "shipped"
|
||||
tools = ["doc_rename"]
|
||||
evidence = ["crates/engine/src/rename.rs::names_windows_or_other_systems_refuse_are_refused", "crates/engine/src/rename.rs::renaming_moves_the_file_and_refuses_what_it_must", "crates/automation/src/tests.rs::doc_rename_moves_the_file_and_refuses_with_reasons", "crates/ui-egui/src/dialogs/rename_ui.rs::rename_from_the_tab_menu_moves_the_file_and_keeps_the_tab", "crates/ui-egui/src/dialogs/rename_ui.rs::unsaved_changes_are_saved_before_the_rename"]
|
||||
notes = "Tab context menu Rename… (or a double-click on the tab) renames the open document's file in its own folder; the tab, undo history and view stay, and Recent files, Reopen Closed Tab and the file watcher follow the new name (#2102, #2867). The name is checked as it is typed, with the same rules on every system so a synced folder stays usable: no separators or < > : \" | ? *, no control characters, no Windows device names, no trailing dot, at most 255 characters; the extension is kept. Refused with the reason when the name is taken, the file is read-only or in use, or the document was never saved; unsaved changes are saved first (Save and Rename)."
|
||||
notes = "Tab context menu Rename… (or a double-click on the tab) renames the open document's file in its own folder; the tab, undo history and view stay, and Recent files, Reopen Closed Tab and the file watcher follow the new name (#2102, #2867). The name is checked as it is typed, with the same rules on every system so a synced folder stays usable: no separators or < > : \" | ? *, no control characters, no Windows device names, no trailing dot, at most 255 characters and a full path within the system limit; the extension is kept. Refused with the reason when the name is taken (a file that appears under it meanwhile is never replaced), the file is in use, or the document was never saved; unsaved changes are saved first (Save and Rename)."
|
||||
|
||||
[[feature]]
|
||||
id = "core.open-pdf"
|
||||
|
||||
Reference in new issue
Block a user