[patch] address/label search tweak #641

issue ovidiusoft opened this issue on November 18, 2011
  1. ovidiusoft commented at 9:14 AM on November 18, 2011: none

    The following patch allows for filtering addresses and labels by searching for the typed string anywhere, not just at the beginning. Trivial to test, and it helps a little with usability:

    --- src/qt/transactionfilterproxy.cpp.old 2011-11-18 10:56:12.764263766 +0200 +++ src/qt/transactionfilterproxy.cpp 2011-11-18 10:59:07.064263768 +0200 @@ -35,7 +35,8 @@ return false; if(datetime < dateFrom || datetime > dateTo) return false;

    • if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))
    • //if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))
    • if (!address.contains(addrPrefix, Qt::CaseInsensitive) && !label.contains(addrPrefix, Qt::CaseInsensitive)) return false; if(amount < minAmount) return false;
  2. laanwj commented at 10:22 AM on November 18, 2011: member

    Sounds useful!

    Can you please delete the commented line? Op 18 nov. 2011 10:14 schreef "Ovidiu Constantin" < reply@reply.github.com> het volgende:

    The following patch allows for filtering addresses and labels by searching for the typed string anywhere, not just at the beginning. Trivial to test, and it helps a little with usability:

    --- src/qt/transactionfilterproxy.cpp.old 2011-11-18 10:56: 12.764263766 +0200 +++ src/qt/transactionfilterproxy.cpp 2011-11-18 10:59:07.064263768 +0200 @@ -35,7 +35,8 @@ return false; if(datetime < dateFrom || datetime > dateTo) return false;

    • if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))
    • //if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))
    • if (!address.contains(addrPrefix, Qt::CaseInsensitive) && !label.contains(addrPrefix, Qt::CaseInsensitive)) return false; if(amount < minAmount) return false;

    Reply to this email directly or view it on GitHub: #641

  3. ovidiusoft commented at 10:26 AM on November 18, 2011: none

    Sure, here's the new diff:

    --- src/qt/transactionfilterproxy.cpp.old 2011-11-18 10:56:12.764263766 +0200 +++ src/qt/transactionfilterproxy.cpp 2011-11-18 12:25:46.674263828 +0200 @@ -35,7 +35,7 @@ return false; if(datetime < dateFrom || datetime > dateTo) return false;

    • if(!address.startsWith(addrPrefix) && !label.startsWith(addrPrefix))
    • if (!address.contains(addrPrefix, Qt::CaseInsensitive) && !label.contains(addrPrefix, Qt::CaseInsensitive)) return false; if(amount < minAmount) return false;
  4. laanwj referenced this in commit d8b8640863 on Nov 24, 2011
  5. laanwj commented at 7:22 PM on November 24, 2011: member

    I thought you'd submitted a pull request, hence my question to fix the comment line. Heh blame my phone.

    It's been applied, thanks.

  6. ovidiusoft commented at 7:27 PM on November 24, 2011: none

    No problem, I was too lazy to do it properly on github :)

    O.

    On Thu, Nov 24, 2011 at 9:22 PM, Wladimir J. van der Laan reply@reply.github.com wrote:

    I thought you'd submitted a pull request, hence my question to fix the comment line. Heh blame my phone.

    It's been applied, thanks.


    Reply to this email directly or view it on GitHub: #641 (comment)

    Ovidiu Constantin ovidiu@mybox.ro http://blog.mybox.ro/  *  http://twitter.com/ovidiusoft

  7. laanwj closed this on Nov 24, 2011

  8. luke-jr commented at 12:22 AM on November 25, 2011: member

    Is this a (usability) bugfix, or new feature?

  9. ovidiusoft commented at 7:08 AM on November 25, 2011: none

    Usability fix. Previously, when you typed in the Address field, it matched just the beginning of the address/label. The fix matches any part and is case insensitive. So if you have a label "Pool: Eligius", you can type "eli".

  10. luke-jr commented at 2:05 PM on November 25, 2011: member

    ... ok, that's spooky: how do you know what my Eligius earnings label is named? O.O

  11. ovidiusoft commented at 2:58 PM on November 25, 2011: none

    Super powers! :)

    On Fri, Nov 25, 2011 at 4:05 PM, Luke-Jr reply@reply.github.com wrote:

    ... ok, that's spooky: how do you know what my Eligius earnings label is named? O.O


    Reply to this email directly or view it on GitHub: #641 (comment)

  12. TheBlueMatt referenced this in commit 094c35cffc on Feb 10, 2012
  13. coblee referenced this in commit 0ad6637680 on Jul 17, 2012
  14. ptschip referenced this in commit a2d7cd2478 on Jun 7, 2017
  15. rajarshimaitra referenced this in commit d5c529d4be on Aug 5, 2021
  16. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:56 UTC