Hide a portion of a file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coder
    Visitor
    • Aug 2009
    • 7

    Hide a portion of a file

    Considering two files are being compared size by size, is it possible to hide some portion(s) of one or another file? This feature could be very useful to compare two revisions of the same source file after major updates. The default behavior works great but sometimes gets confused in such cases and incorrectly identifies the differences. A user could help generate better results by selecting and taking certain portion of the text away so it will not be used in the comparison process. You can achieve similar behavior by selecting and deleting some text but you can accidentally save a file and corrupt the original file.
  • Michael Bulgrien
    Carpal Tunnel
    • Oct 2007
    • 1772

    #2
    Sure...
    1. Create a selection (click and drag in the left margin / line number field)
    2. Right-click on the selected text (not the left margin) and choose Isolate from the context menu if you don't wan't the selected lines aligned with text on the other side of the compare.
    3. Right-click on the selected text (not the left margin) and choose Ignored from the context menu to omit the text from the compare
    4. If you filter on lines with differences, all same and ignored lines will be hidden.
    Last edited by Michael Bulgrien; 04-Jan-2010, 02:11 PM.
    BC v4.0.7 build 19761
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

    Comment

    • Michael Bulgrien
      Carpal Tunnel
      • Oct 2007
      • 1772

      #3
      Suggestions to Scooter:

      It would be nice to be able to collapse/hide Ignored lines (separately from the diff toggles)... Another idea might be to provide a toggle that grays out ignored text or the background color of ignored text.

      If one recompares the files, the Ignored lines are re-entered into the compare. It would be nice if Ignored files stayed ignored when the user clicks on "Recompare files".
      Last edited by Michael Bulgrien; 04-Jan-2010, 02:39 PM.
      BC v4.0.7 build 19761
      ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

      Comment

      • Chris
        Team Scooter
        • Oct 2007
        • 5538

        #4
        Michael,

        Thanks for the suggestion. I'll add it to our wish list item for enhancements to ignored text.
        Chris K Scooter Software

        Comment

        Working...