Page 6 of 7 FirstFirst ... 4567 LastLast
Results 51 to 60 of 69
  1. #51
    Join Date
    Jul 2014
    Posts
    4

    Default

    The wish list request still seems to be open after that many years!
    Correct me if i'm wrong, but all it would take is something like this:
    1. create left hand string from left hand file name using regex, filling $1 (and maybe $2, $3 ...)
    2. create right hand string from right hand file name using (full) regex semantics (with ref. to $1, $2, ... allowed)
    3. match the two created strings and use to align
    Because this sort of solution still does not exist in Version 4, I can see no reason to upgrade until it does work.
    PS. of course there could be more elegant or powerful solutions but first follow the KISS philosophy.
    Rolf

  2. #52
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,371

    Default

    Hello,

    Thanks for the feedback. Enhancing our Alignment Override feature is something on our wishlist. Given the complexity of Regular Expression support, even the KISS solution is non-trivial to implement. If you would like to post example cases of folder structure and file names you are trying to align, and how you would like to define an Override to perform that task, I can add these notes to our entry on the subject. This would help expand our test cases that our developers use while investigating features like this.
    Aaron P Scooter Software

  3. #53
    Join Date
    Apr 2016
    Posts
    4

    Default

    I think a good suggestion might be to add more replacement tags that allow different matching behavior that exactly equal. My recurring example is I'd like to compare files from folders that look like this:
    fileA_1234.txt --> fileA_5678.txt.
    fileB_2345.txt --> fileB_6789.txt

    So I'd like to make the right side be (file\w)_\d+.txt and the left side something like $1_<as many digits as matched on the other side>.txt
    This replacement field I'd like to ignore in the comparison. They are actually timestamps or other auto-generated content, and for the purposes of the compare, I don't care what their values are.

    So, the suggestion is a set of new replacement tokens, ala:
    $^1 -- the first pattern on right does NOT match here
    $?1 -- the right pattern doesn't matter--it can be in left or not
    $n1 -- the right pattern contents don't matter, but the length does. Left must have the same # of chars in this position and still
    match the rest of the left side.

    You could go crazy with this, but this and maybe 1 or 2 more I think would capture the lion's share of what's been asked for. For me, $n1 is what I need:

    right: file(\w)_(\d+).txt Left: file$1_$n2.txt

    Incidentally, I'd also recommend you allow "($1)" in the left for cases where the next left pattern char is ambiguous. For instance, I could have used the above patterns:
    right: file(\w_)1234.txt Left: file$15678.txt

    In this case, $15 is ambiguous, unless there's a hard limit of 9 replacement tokens. But if left could be file($1)5678.txt, we're all good.

    Thanks very much for the tool, it's a great one!

  4. #54
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,371

    Default

    Thanks for the feedback. Our Alignment Overrides don't currently support defining a mask to 'hide' the different text, but it's on our wishlist to enhance this behavior. I'll add your notes to our wishlist entry on the subject.

    With the current feature set, any different text in the Replace With section would need to be explicitly defined and does not support a mask.
    Aaron P Scooter Software

  5. #55
    Join Date
    Jun 2016
    Posts
    1

    Default

    Im looking for a solution to compare files like this.

    on the left side:

    foo.c
    foo.h
    foo_.h
    foo_banana.c
    foo_apple.c

    on the right side:

    bar.c
    bar.h
    bar_.h
    bar_banana.c
    bar_apple.c

  6. #56
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    2,503

    Default

    Hi Dill,

    You can do that by defining an override that uses "foo*" as the "Align left file" and "bar*" as the "with right file", leaving the "Regular Expression" checkbox unchecked.
    ZoŽ P Scooter Software

  7. #57
    Join Date
    Feb 2006
    Posts
    6

    Question In BC Pro Version 4.2.2, is it possible to match versioned filenames?

    In BC Pro Version 4.2.2, is it possible to ignore version information when matching filenames? For example :

    myapp-1.0.0.ear=myapp-1.0.1.ear.

    After reviewing the posts in this thread, it seems that it is not possible and has been relegated to a "wish-list".
    https://www.scootersoftware.com/vbul...1666#post51666

    My company is considering an upgrade, and this is one of the features we are interested in.
    Is there a timeline for implementation of this feature?
    Last edited by joblini; 31-Aug-2017 at 08:43 AM. Reason: Clarification.

  8. #58
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,371

    Default

    Hello,

    The Alignment Override supports specific different text, so if the version number is known, you can define it as:
    *1.0.0.* = *1.0.1.*

    This would cause any files matching the pattern of your example to align. The thread you found is specific for defining the equal mask and also masking the different text (to help with arbitrary version numbers), which we don't currently support.
    Aaron P Scooter Software

  9. #59
    Join Date
    Feb 2006
    Posts
    6

    Default

    Yes, I am specifically asking about arbitrary version numbers.

    It is not practical to redefine the patterns when the versions change, since we have many different artifacts with version numbers that constantly evolve. In many cases the version numbers also include timestamp information, for example, 1.0.1-SNAPSHOT.20170101235959.
    We use Maven to generate versioned artifcats, so I imagine that we are not alone in needing to compare versioned filenames.

    In your post you mentioned adding support for arbitrary version numbers to a "wishlist".
    Can you provide a timeline for implementation of this feature?
    Last edited by joblini; 31-Aug-2017 at 09:33 AM.

  10. #60
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,371

    Default

    We have a wishlist of customer requests. They do not have a specific timeline, but is a list that developers visit for ideas for future features and enhancements. Arbitrary character handling in the Alignment Override is a nice feature to tackle, but is also a pretty big enhancement and not likely one we'll be able to tackle soon.
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •