Thanks for the explanation. I suggested auto-inserting "ans" so that the user is aware of the calculation syntax. I was thinking of:iangm wrote: βThu Mar 26, 2020 8:00 pm Auto-inserting "ans" at the beginning of a line with "+", "-", "*", or "/" is pretty straightforward. But if you start a line with sqrt(4) and auto insert "ans" it would produce "ans sqrt(4)". So if your previous answer was 10, it would evaluate the next line as "(10) sqrt(4)". This should multiply them via implicit multiplication, so it would evaluate as "10 * sqrt(4)". It seems like it would be better to only auto-insert "ans" for the basic binary operators, instead of all functions? So instead of starting a line with "sqrt" you would start with "+ sqrt", "- sqrt", "/ sqrt", or "* sqrt".
- Press enter with an operator or function only:
Code: Select all
2+7 9
sqrt 3 if you stop after sqrt or if you press enter, it shows 3.
- If you auto-insert ans it would be (pipe represents cursor):
Code: Select all
s| ...
sq| ...
sqr| ...
sqrt|(ans) 3 ans is autoinserted and highlighted (or shown in lighter font) and result is shown like above.
If the user continues, it is replaced/ignored:
sqrt4| 2
This seems interesting, but I think you will have top be on top of things or you will have a lot of tabs and it will be confusing (I know I will confuse myself ).
There are two main reasons I can think of for having some sort of history:
1. Checking the result of some calculation.
2. Copying the calculation to modify it into a new one.
Neither of these necessarily requires multiple pages. Maybe you can have a history page, where (if the user toggles a setting) every time you clear the screen, the current page is appended to the history page. If you want to access some old calculation, you open this (read-only?) history page and see/copy the needed line(s) to the main window.
I currently save the session, but if there is something like this, I don't think I will save the session any more since I know that history is just a click away.
The pages idea you suggest seems like a neat idea though, if you have multiple threads of calculations that you don't want to confuse.
This is actually how my online version of this periodic table works. Honestly, I don't know why I made this one different. I'll get that changed.
iangm wrote: βThu Mar 26, 2020 8:11 pm I have been wanting this for so long! But unfortunately, I don't know enough about UI/WPF to implement it. And the code I am using from someone else for syntax coloring doesn't support this feature. Occasionally I spend some time looking into finding a better textbox, but there isn't much out there that can do what I need. But you may see it in the future.
Here is hoping!I'll look into it. I am not sure if it's possible to change it, but maybe. I did figure out a way to get tooltips to stay up longer, so people could actually read them, the code for it was really bizarre.
------------------
A couple more :
1. If you have many lines, the scrollbar takes too much space: it is full size and there is an empty space to the right. maybe it can be a slim line?
2. Going with the same theme of requiring less typing: there can be a "default conversion target so to speak. For example:
Code: Select all
3 ft 0.9143999 m shown until the user continues typing
4 miles 6.437375 km note it is in km since this is the most natural/common equivalent.
3. Things like "3 ft > 1 m" should give a true/false answer.
4. Ctrl+C copy shortcut doesn't work for me. It always clears the page.
5. A copy button next to every answer for quick copying the result.
Thanks!