-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Feature Request] Write results in the note #22
Comments
I've been thinking about this a ton, I definitely agree this feature needs to exist. It bothers me the results aren't saved into the plain text. I need to think about the right syntax for when to do this. As you indicate I think using the result annotation syntax might be a good place to start. Adding autocomplete is almost done and I think I might take this on next. |
I also wanted to say thank your for this plugin. Using the result annotation would be similar to how Calca handles it, so the consistency there would be nice to have. Another plus is that now all the information is there when copy/pasting or sharing the raw markdown file. |
By the way, I'm a bit iffy about using Just wondering what you think about That's how I've been manually recording results from https://speqmath.com/ which puts their results annotation in a new line and I wanted to keep it more compact in my personal notes (before this plugin existed). e.g.
Also you may want to add some consistent attribute metadata when using results annotation so you know when the last time it was run (and any other enviromental variables that may be lost if that block is copied and pasted). This would be useful when opening the file in a non obsidian text editor. The adhoc standard is shown in https://talk.commonmark.org/t/consistent-attribute-syntax/272 I've double checked if adding
|
To check if I have understood you correctly, is this what you intend to do? I like the suggestion of putting the last modified timestamp in the file. It is also helpful (may be necessary) when trying to automatically modify the md file. |
Yes that's correct on both count (I do wonder if this plugin has comparison operators and if so what would it be... still bit iffy on the existence of |
Wanted to throw my 2 cents in here regarding this suggestion. Btw, superb plugin, @gtg922r 💯 |
By the way, I've been thinking about my proposal for ':='... I think you can actually get away with just '=' but you need a very very robust heuristic to solve all edge cases. I've been attempting to tackle this problem in this project https://github.com/mofosyne/QuickMathsJS-WebCalc . And if it works out, I would not mind if others take the insight from this into obsidian numerals. Currently adding more test and so far it's passing, but I suspect I'm missing other problems. Happy to receive contributions. It's all in browser javascript so should be easy for you to download and try improving it. To try it out, head to http://www.quickmathjs.com/ and copy a = 5
b = a + 1 = 9
c = b + 1
d = c + 1 =
d = 2 which would output a = 5
b = a + 1 = 6
c = b + 1
d = c + 1 = 8
d = 8 I think we can get away with this heuristic, because there is really only one statement and no control flows to worry about. |
Rejigged the syntax and looks like I'm now settling down to this syntax:
Based on context While = by itself is And I'm done with this miniproject now, so hopefully this syntax will give this plugin some ideas to borrow regarding how to figure where to place results. |
Thanks for the thoughts on syntax all. I settled in a syntax that will expand to other numerals features, and thats using I've added experimental support in Numerals Beta 1.4. Wrapping any variable name in Please see the release notes and I'd love your help testing out this feature! Please see the README for instructions how to beta test using BRAT |
First of all - I have been waiting for so long for such a plugin! - Thank you so much!
![image](https://user-images.githubusercontent.com/25647024/210585364-4831e1f4-aeec-4d84-b15a-aadbe6680d2f.png)
![image](https://user-images.githubusercontent.com/25647024/210585212-f5fe7e2b-9465-49e3-b0c2-c871189f851b.png)
Here is my feature request:
Can you write the results of the calculations including the unit in the note? The feature could look like this:
All the results the user wants to be displayed will be written to the note:
If an existing note with math-blocks is opened and the math-blocks are evaluated by obsidian-numerals and the results in the note and from obsidian-numerals differ - you could indicate this and ask the user for permission to update.
The text was updated successfully, but these errors were encountered: