generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add toggle command for Bible Icon Prefix setting, and add collapsible option for callout options #251
Open
AlphaHasher
wants to merge
4
commits into
tim-hub:master
Choose a base branch
from
AlphaHasher:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add toggle command for Bible Icon Prefix setting, and add collapsible option for callout options #251
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4ba105f
Remove the last <br/> tag that appears in LSB verses.
AlphaHasher 85287ff
Add toggle command for Bible Icon Prefix setting
AlphaHasher 1b0a227
accidently left in added comment
AlphaHasher d1151c6
Add collapsible verses feature with options for default behavior (iss…
AlphaHasher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export enum CollapsibleVerses { | ||
Plus = '+', | ||
Minus = '-', | ||
None = 'None' | ||
} | ||
|
||
export const CollapsibleVersesCollection = [ | ||
{ | ||
name: CollapsibleVerses.Plus, | ||
description: 'Plus', | ||
}, | ||
{ | ||
name: CollapsibleVerses.Minus, | ||
description: 'Minus', | ||
}, | ||
{ | ||
name: CollapsibleVerses.None, | ||
description: 'None', | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure which is better.
Add
None
here or keep existing behaviour.Does existing setting do the same things? Of Reference Position.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I say keep it None. Also, the setting you point out does not affect the new option I added.
To make it clearer, I started testing (on my dev branch) disabling settings depending on other settings (e.g., if you don't want to use callouts, then the collapsible option can be disabled) but I ran into odd performance issues which I documented there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you take a screenshot when the setting is CollapsibleVerses.None, at the same time, reference position is Header?
I am not sure what are the differences.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CollapsibleVerses.None, reference position is Header:
![image](https://private-user-images.githubusercontent.com/33443001/404647219-5cdb8468-c0f9-4eef-933d-7ba83094a2ba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzYyNTIsIm5iZiI6MTczOTQ3NTk1MiwicGF0aCI6Ii8zMzQ0MzAwMS80MDQ2NDcyMTktNWNkYjg0NjgtYzBmOS00ZWVmLTkzM2QtN2JhODMwOTRhMmJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE5NDU1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVhN2YyMGEyOWUwNGI2MjNlZjM4NGM0NWU3Nzg5ZDE5NTdlZjgwMGU3MDBmMmU0N2FmYzk3NmFiYTA2N2Q4NzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EUPc8pBkqa7ImOc0K13Z4rLQuRZpJwucEgrBu7v4AkE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All that "CollapsibleVerses" does is add the +, -, or neither into the callout style settings.
None
makes it appear without options to collapse (as seen above)Plus
gives you the option to collapse the calloutMinus
makes the callout collapsed by defaultThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tim-hub Please look this over.