-
Notifications
You must be signed in to change notification settings - Fork 372
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
Jump to correct heading via id, other tweaks, bugfixes #2307
Conversation
@@ -440,4 +446,58 @@ private String replaceTokens(final String markup, final Map<String, List<String> | |||
|
|||
return markupReplaced; | |||
} | |||
|
|||
private static class LineNumberIdProvider implements AttributeProvider { |
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.
So much boilerplate for a small extension
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.
What this does is sets the id of every heading node to line-. This lets us jump to any heading super easily if we just know its line number.
@guanglinn this PR improves how we jump to headings. We attach the heading line number as the html node id and then jump directly to it. I think we can even use this method to sync edit and view positions in the future . It's wip because I want to reorganize the code a little. |
app/src/main/java/net/gsantner/markor/activity/DocumentShareIntoFragment.java
Show resolved
Hide resolved
app/src/main/java/net/gsantner/markor/activity/DocumentShareIntoFragment.java
Show resolved
Hide resolved
app/src/main/java/net/gsantner/markor/format/markdown/MarkdownActionButtons.java
Show resolved
Hide resolved
app/src/main/java/net/gsantner/markor/format/markdown/MarkdownSyntaxHighlighter.java
Outdated
Show resolved
Hide resolved
app/src/main/java/net/gsantner/markor/format/markdown/MarkdownSyntaxHighlighter.java
Show resolved
Hide resolved
All known issues fixed now |
app/src/main/java/net/gsantner/opoc/frontend/GsSearchOrCustomTextDialog.java
Show resolved
Hide resolved
Tried the blinking as read the question - yes much better then the last few tries. That looks OK to me. |
Of the rounded dialogs, personally humbly said I like it better non rounded. But I'm not strong opposed. |
new Format(FormatRegistry.FORMAT_EMBEDBINARY, R.string.embed_binary, ".jpg", CONVERTER_EMBEDBINARY), | ||
new Format(FormatRegistry.FORMAT_PLAIN, R.string.plaintext, ".txt", CONVERTER_PLAINTEXT), | ||
new Format(FormatRegistry.FORMAT_EMBEDBINARY, R.string.embed_binary, ".jpg", CONVERTER_EMBEDBINARY), |
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.
Is there a specific reason to move this one down again? I placed it abvoe plaintext so i.e. .m3u
gets taken to that converter for music/video playlist support, all in view mode.
Thank you other then those two I didn't find anything else. Thanks much for your contribution! |
That's good. I can work on adding things to make it even more clear if needed.
No. This was an error which I missed. Thanks for catching this and fixing it. |
1 similar comment
That's good. I can work on adding things to make it even more clear if needed.
No. This was an error which I missed. Thanks for catching this and fixing it. |
Google's design guides all want rounded now. If you feel that it isn't nice after some more testing we can reduce the radius to a smaller number. Feedback on this is always appreciated. |
by @harshad1, fixes gsantner#2312 gsantner#2313) * Jump to correct heading via id * No need to track lines * As link checkbox to top bar * Simplify heading, checkbox to title, task filter literal * Unified and cleaned up link formatting * new file dialog fixes, no folder in select qn / todo * launch in new activity * Improvement to launching activities * Fixed + improved isFileOutOfThisFormat * Switching from blink to ripple * Logic to save and restore file browser position * Can scroll action bar on repeat items * Handle unknown formats better * Handle virtual folders better * Rounded dialogs, fixes for launching files * Improved show and flash * Improved keyboard showing * Improved how we test for compatible files * Cleaner way to do dialog radius * Better showing of folders * Rounded corners for all dialogs, cleaner structure * Better text file detection * Cleaner style system * Matching colour * Match system bars with UI colors * Rounded widget corners, hide text actions bar --------- Co-authored-by: Gregor Santner <[email protected]> (cherry picked from commit 92744b3)
In this PR: