-
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: Calca-style result annotations #4
Comments
Thanks for sharing Calca, I hadn't seen that before and it looks interesting! I definitely like the idea of highlighting certain results. I have some notes with very lengthy calculations, where there is lots of variable setup up top. It gets visually noisy and the grand result at the bottom gets lost. I'm hesitant to add too many options that would require changing the content of the code block, but I do want to give people options. Here's what I'm thinking for now:
This way it works without using |
Initial support for Calca style annotations/emitters If `=>` is present in the block, lines without it will be faint
- Added a setting for whether to hide non-emitted rows (when they are used at all). - Default is to hide non-emitted rows (if they are use in the code block) - added a setting for hiding emitter annotation in input. - Default is to hide annotation in the input. - Only applies to Plain text. It's automatically hidden from the other render types
@jwhitley The latest release has the initial implementation of this. I initially referred to the annotation in settings as an "emitter", but I'm going to switch the name to "result annotation". Anyway, it generally works exactly as I described above as each of the 3 proposed features has been implemented. Would love any feedback. By the way, Numerals has been accepted into the Community plugin list so you can just get it from there. |
AWESOME! I love it. Sorry for the radio silence; I've been a bit swamped lately. Have Numerals installed and am digging in now. Also, |
Well, you've probably saved me from writing a plugin 😂 so here's a feature request I had on my list. My main inspiration for an Obsidian math plugin comes from Calca, a Markdown-based text editor with calculation support. As opposed to a Soulver-esque line-by-line result tally, Calca adds a
=>
line suffix that causes the result at that line to be emitted. Otherwise results aren't printed.Have a look at the Calca link above; the homepage illustrates the output format nicely. In addition, a quick example:
The result
800mm^2
would be emitted by the plugin (in Live Preview / Reading mode, obvs), triggered by the=>
result annotation.In practice, this may want a different tag than
math
to distinguish the syntax, such asmathc
or somesuch.My plan had been to support both line-by-line and Calca-style output systems. Both can be really helpful in different scenarios. Calca's support is great to highlight key results without a lot of intermediate noise.
The text was updated successfully, but these errors were encountered: