Repository navigation
Conversation
"Add another" in the footer turns the form into a list of links. The cards edit the selected row and the list shows every row on one line, with a remove button. A single link looks and works as before. - A new row starts in the last row's link location, and its target picker opens next to the previous target - Picking several targets (multi-select) or dropping several items on the target card adds a row for each - Every row is validated first, including duplicate link paths, and bad rows are marked in the list - All replace/move questions come before anything on disk changes, then one UAC prompt at most, then each link; failures don't stop the rest and one summary lists what happened - The window grows for up to 5 rows, then the list scrolls Closes #6 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in #46 (localized link result messages). Batch and single links now report results through LinkResultMessage: created links get the new titles and text, failures in the batch summary use Reason(), and a failed link during a move rolls back with that reason. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #6. Symlinker can now create several links in one step.
folder\name -> folder\target(the folder parts get trimmed, the names never do), with a remove button. Click a row to edit it in the cards; Delete removes the selected row. Each row keeps its own link name auto-fill, so a typed name in one row never affects another.Shortcuts for the issue's case (many folders from
C:\FolderAlinked intoC:\FolderB)One type for the batch, validation
InputValidatorper row plus duplicate link paths (case-insensitive). Bad rows get an error icon with a tooltip, the first one is selected so its fields are marked in the cards, and the footer shows its message (or "Fix the links marked in the list." when the selected row is fine).Creating the links
New
LinkCreator.CreateBatchAsync().LinkCreatornow plans each link first (LinkPlan: checks and questions, nothing on disk changes) and then carries it out, returning aLinkOutcome. The single link path uses the same plan/execute code, with the same dialogs as before.ILinkRunner.PrepareAsync()is called once, so at most one UAC prompt for the batch. Declining it stops quietly with nothing changed.Window size
560x280 for a single link. In batch mode it grows 30 px per row up to 5 rows (438 px), then the list scrolls. Back to 280 when one row is left.
Strings
11 new strings, grouped at the end of
Resources.resxand all 8 translations under a<!-- Batch links (#6) -->comment, with typed properties appended toResources.Designer.cs. Checked German, Italian and French for overflow in the footer and buttons (the "rows need fixing" message was shortened after it truncated in German and Italian).Testing
dotnet test --project Symlinker.Tests: 219 passed, coverage gate at 100% line, branch and method. NewLinkBatchTests(rows, auto-fill, shortcuts, validation, duplicates) andLinkCreatorBatchTests(questions before changes, one prepare, continue past failures, skipped rows, declined UAC, planning errors, summary format, leftover copy note).C:\Windows).FolderB\Musicalready existed as a real folder: the move question came first, the folder was moved to the target and linked. Result: 4 created,C:\Windows\Games: Access is denied.Junctions\Photosexisted: declined the replace question, so it was skipped and left untouched.C:\Windows\Photosfailed. 4 created.FileLinks\todo.txtexisted: accepted the replace question, it became a hard link. One row on another drive failed with "The system cannot move the file to a different disk drive." 3 created.