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

[Feature request] Hide inputs on render #31

Open
joeabreu opened this issue Feb 26, 2023 · 5 comments · Fixed by #78
Open

[Feature request] Hide inputs on render #31

joeabreu opened this issue Feb 26, 2023 · 5 comments · Fixed by #78
Labels
enhancement New feature or request release Completed. Will be in next release

Comments

@joeabreu
Copy link

Add a some prefix like '%' (or suffix like '~') which denotes a line that should not be rendered in the output but still creates variables that can be used in other lines i.e.

```math
AttackStrength = 10; Defence = 5;
AtkModifier  = 1.5 ~
DamageTaken = AttackStrength * AtkModifier - Defence =>
```
AttackStrength = 10
Defence = 5
DamageTaken = AttackStrength * AtkModifier - Defence                               -> 10.0
@gtg922r
Copy link
Owner

gtg922r commented Feb 27, 2023

Thanks for the feature request!

Currently there is Numerals setting to "Hide Result on Lines without Result Annotation". Would an option to hide lines without result annotation cover most of your use use-case? Or is the primary value in having a line-specific indication not to include it in the rendered output?

@gtg922r gtg922r added the enhancement New feature or request label Feb 27, 2023
@hubortje
Copy link

hubortje commented Mar 23, 2023

I'd appreciate such a feature.

The current feature does not provide the asked feature, because I there is still an entry printed, just the result is omitted. A feature where the whole line is omitted, but the variable is still resuable, would create an oppurnity to create something like this:

```math
rent = 800 $;
electricity = 200 $;
mobile = 20 $;
~monthly = rent + electricity + mobile
monthly_cost 
rent = 800 $
electricity = 200 $
mobile = 20 $
monthly_cost → 1020 $

It'd be neat to hide larger calculations like that.

@RaviKavaiya
Copy link

@gtg922r sir, any updates on this? I highly require and recommend this feature.
In my case, there are a lot of calculations involved. But, I just want to show the output only.
The setting "Hide Result on Lines without Result Annotation" works, but it consumes blank space...

gtg922r added a commit that referenced this issue Jun 16, 2024
@gtg922r
Copy link
Owner

gtg922r commented Jun 16, 2024

@RaviKavaiya initial implementation complete. Need to do some more tests, but should be in a new beta in a few days

@gtg922r gtg922r reopened this Jun 16, 2024
@gtg922r gtg922r added the release Completed. Will be in next release label Jun 16, 2024
@gtg922r
Copy link
Owner

gtg922r commented Jun 17, 2024

The newest beta is published and implements this feature by adding a command @hideRows. See the release notes: Release 1.5.1 · obsidian-numerals.

Please try it out by following the directions on the README to get access to the beta using BRAT. Would love any feedback or issues you run in to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release Completed. Will be in next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants