Originally posted by Andy Stevenson
Re-align Section
Collapse
X
-
Re-align Section
BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯Tags: None -
I have two similar files, but there's a big section in one that isn't in the other and they don't align by themselves.
How about aligning by searching the other side for the selected line?
I'd right click on the line I know is on the other side and choose "find and align on opposite side" where it searches for a line that contains the trimmed text from this side (ignoring indent).Comment
-
Rick,
Thanks for the suggestion. Have you tried changing your alignment settings?
With the files open in the Text Viewer, select Session|Session Settings. Go to the Alignment tab and slide the skew tolerance to "Slow and thorough". This will make BC look further in the file for matching lines to align.Chris K Scooter SoftwareComment
-
-
Comment
-
Already implemented...
Select a block of lines on one side
Pess F7 (or choose Align With... from the context menu)
Select a block of lines on the other side
When you complete the selection on the second side, BC will align both selections with each other.BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯Comment
-
I can see that the Align With command works nicely with blocks of text - but only when performing a comparison. I have tried to do the same in a 3-way merge and for some reason this does not work - it still only aligns one line. This is frustrating, more often than not I need this feature in a merge rather than in a comparison. Is this by design? Or is this something that is yet to be implemented?Comment
-
Hello,
The Text Merge session unfortunately does not support the same Align With features that the Text Compare session type has. Adding this functionality is on our wishlist, but is a larger project and would not be a quick change.Aaron P Scooter SoftwareComment
-
As indicated by egarcia74, aligning a block instead of a single line is most used when merging.
Yesterday I spend about three hours on a failed attempt to merge:
I have a case in which left and right have underwent removal of some code, but not in the same sections. This results in sections that need to be aligned manually to middle, and the only way to do that is line-by-line. Even when I select a block in left and request a manual align to middle, only the last active line in the selection is aligned to the line I clicked in middle!
Sure, I know nothing about the internals, but it can't be that hard to add a loop to handle all subsequent lines in the selection in the same way as the first (applied to the following line in the target pane of course) ?
Regards, Patrick.Comment
-
Hello,
I've added your notes to our Customer Wishlist entry.
We always appreciate specific example cases. Would you be able to email us the set of merge files you had trouble with? Please include your Support package (Help menu -> Support; Export) as well, and let us know which line section you wanted to Align (you can enable Show Line numbers and/or take a screenshot).
Our email is [email protected]Aaron P Scooter SoftwareComment
-
Don't just click a line in the middle. To manually align two blocks of text, select the first block of lines, manually align, then click and drag to select the second block of lines. When you let go of the click/drag to finalize the selection of the second block of lines, the two blocks will be aligned to each other.BC v4.0.7 build 19761
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯Comment
-
Either missing smething stupid, or having problems getting align to work
I'll attach 2 files - these are (for all intents and purposes identical).
Do a text compare on the 2. On the left-hand file, select the line "convert_cobol_via_stem:" and
press F7. For the right-hand file, look for the line containing "convert_cobol_via_array:" and selct "Align with marked".
Based on the results, one would think the files after the aligned lines were completely different (which I don't think they are).
Am I missing something here. (Tried it in BC2, but that gave the same results)Comment
-
Align With generally won't break existing matching line alignments. When you tell it to align two lines it looks for matching lines that are already aligned below that point and won't try to realign anything past them. I think it looks for a minimum of 10 or so lines before it decides not to go any further, but in this case it hits that right away. If you want to specifically align functions you should select the entire blocks.Zoë P Scooter SoftwareComment
Comment