Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search should allow simple arithmetic expressions #86

Open
lordpixel23 opened this issue Jul 9, 2022 · 0 comments
Open

Search should allow simple arithmetic expressions #86

lordpixel23 opened this issue Jul 9, 2022 · 0 comments

Comments

@lordpixel23
Copy link

e.g. I want to see all transactions > $100, I should be able to type something like '> 100' in the search field.

Implementation probably has some issues:

  • the simplest thing you could do is look at the first character of the input and if it is > or < or = enter a special mode where you interpret the search string differently
  • naturally that leads to issues with the way developers would expect to be able to type >= or == but probably should ignore those as people who don't code don't think in those terms
  • similarly, full blown expressions (as in SPEL or JUEL) like > 100 && < 150 will likely just confuse people
  • question arises of what to do with foreign transactions, how to search in GBP vs. USD

Probably the best thing is to keep it really simple and allow > 100, < 100 and = 100 and not much more than that.

If I were really going to push the boat out, then something like '≥ £100' could be allowed too, but, the reality is typing stuff like that on Windows is really hard (how ridiculous is that in 2022?) and only a subset of Mac users know how to do it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant