-
Notifications
You must be signed in to change notification settings - Fork 478
Improvements to newfile dialog, open links, other fixes #2277
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
Merged
gsantner
merged 12 commits into
gsantner:master
from
harshad1:improvements_to_newfile_dialog
May 19, 2024
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
1f19f0d
Added logic to open any 'src' in a tag
harshad1 4f40150
Preserver dialog callback on rotation
harshad1 5ced6cc
before simplifying
harshad1 1d62db7
simplified
harshad1 c0ea432
Now with a seaparate format edit
harshad1 9366791
Cleanup imports
harshad1 3bce89b
merged and tweaked
harshad1 51e39c9
Merge branch 'master' into improvements_to_newfile_dialog
gsantner e0e8f79
Merge branch 'master' into improvements_to_newfile_dialog
harshad1 d8f93fd
Moving from separate callbacks to a single refresh call
harshad1 3fdd6b2
Update favourites properly
harshad1 73a868f
Fix to stop views flashing incorrectly when navigating fast
harshad1 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 hidden or 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 @@ | ||
| # Title | ||
| ## Description | ||
|
|
||
|  | ||
|
|
||
| ### Ingredients | ||
|
|
||
| | Ingredient | Amount | | ||
| |:--------------|:-------| | ||
| | 1 | 1 | | ||
| | 2 | 2 | | ||
| | 3 | 3 | | ||
| | 4 | 4 | | ||
|
|
||
|
|
||
| ### Preparation | ||
|
|
||
| 1. Text | ||
| 2. Text | ||
|
|
||
This file contains hidden or 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,6 @@ | ||
| --- | ||
| tags: [] | ||
| created: '{{date}}' | ||
| title: '{{title}}' | ||
|
gsantner marked this conversation as resolved.
|
||
| --- | ||
|
|
||
This file contains hidden or 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,30 @@ | ||
| = My Title | ||
| :page-subtitle: This is a subtitle | ||
| :page-last-updated: 2029-01-01 | ||
| :page-tags: ['AsciiDoc', 'Markor', 'open source'] | ||
| :toc: auto | ||
| :toclevels: 2 | ||
| // :page-description: the optional description | ||
| // This should match the structure on the jekyll server: | ||
| :imagesdir: ../assets/img/blog | ||
|
|
||
| ifndef::env-site[] | ||
|
|
||
| // on the jekyll server, the :page-subtitle: is displayed below the title. | ||
| // but it is not shown, when rendered in html5, and the site is rendered in html5, when working locally | ||
| // so we show it additionally only, when we work locally | ||
| // https://docs.asciidoctor.org/asciidoc/latest/document/subtitle/ | ||
|
|
||
| [discrete] | ||
| === {page-subtitle} | ||
|
|
||
| endif::env-site[] | ||
|
|
||
| // local testing: | ||
| :imagesdir: ../app/src/main/assets/img | ||
|
|
||
| image::flowerfield.jpg[] | ||
|
|
||
| image::schindelpattern.jpg[Schindelpattern,200] | ||
|
|
||
| before inline picture image:schindelpattern.jpg[Schindelpattern,50] and after inline picture |
This file contains hidden or 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,13 @@ | ||
| --- | ||
| layout: post | ||
| tags: [] | ||
| categories: [] | ||
| #date: 2019-06-25 13:14:15 | ||
| #excerpt: '' | ||
| #image: 'BASEURL/assets/blog/img/.png' | ||
| #description: | ||
| #permalink: | ||
| title: 'title' | ||
| --- | ||
|
|
||
|
|
237 changes: 237 additions & 0 deletions
237
app/src/main/assets/templates/markor-markdown-reference.md
This file contains hidden or 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,237 @@ | ||
| # Markdown Reference | ||
| Automatically generate _table of contents_ by checking the option here: `Settings > Format > Markdown`. | ||
|
|
||
| ## H2 Header | ||
| ### H3 header | ||
| #### H4 Header | ||
| ##### H5 Header | ||
| ###### H6 Header | ||
|
|
||
| <!-- --------------- --> | ||
|
|
||
| ## Format Text | ||
|
|
||
| *Italic emphasis* , _Alternative italic emphasis_ | ||
|
|
||
| **Bold emphasis** , __Alternative bold emphasis__ | ||
|
|
||
| ~~Strikethrough~~ | ||
|
|
||
| Break line (two spaces at end of line) | ||
|
|
||
| > Block quote | ||
|
|
||
| `Inline code` | ||
|
|
||
| ``` | ||
| Code blocks | ||
| are | ||
| awesome | ||
| ``` | ||
|
|
||
| <!-- --------------- --> | ||
|
|
||
| ## Lists | ||
| ### Ordered & unordered | ||
|
|
||
| * Unordered list | ||
| * ...with asterisk/star | ||
| * Test | ||
|
|
||
| - Another unordered list | ||
| - ...with hyphen/minus | ||
| - Test | ||
|
|
||
| 1. Ordered list | ||
| 2. Test | ||
| 3. Test | ||
| 4. Test | ||
|
|
||
| - Nested lists | ||
| * Unordered nested list | ||
| * Test | ||
| * Test | ||
| * Test | ||
| - Ordered nested list | ||
| 1. Test | ||
| 2. Test | ||
| 3. Test | ||
| 4. Test | ||
| - Double-nested unordered list | ||
| - Test | ||
| - Unordered | ||
| - Test a | ||
| - Test b | ||
| - Ordered | ||
| 1. Test 1 | ||
| 2. Test 2 | ||
|
|
||
| ### Checklist | ||
| * [ ] Salad | ||
| * [x] Potatoes | ||
|
|
||
| 1. [x] Clean | ||
| 2. [ ] Cook | ||
|
|
||
| <!-- --------------- --> | ||
|
|
||
| ## Links | ||
| [Link](https://duckduckgo.com/) | ||
|
|
||
| [File in same folder as the document.](markor-markdown-reference.md) Use %20 for spaces! | ||
|
|
||
| <!-- --------------- --> | ||
|
|
||
| ## Tables | ||
|
|
||
| | Left aligned | Middle aligned | Right aligned | | ||
| | :--------------- | :------------------: | -----------------: | | ||
| | Test | Test | Test | | ||
| | Test | Test | Test | | ||
|
|
||
| ÷÷÷÷ | ||
|
|
||
| Shorter | Table | Syntax | ||
| :---: | ---: | :--- | ||
| Test | Test | Test | ||
| Test | Test | Test | ||
|
|
||
| <!-- Comment: Not visibile in view. Can also span across multiple lines. End with:--> | ||
|
|
||
| <!-- ------------- --> | ||
|
|
||
| ## Math (KaTeX) | ||
| See [reference](https://katex.org/docs/supported.html) & [examples](https://github.com/waylonflinn/markdown-it-katex/blob/master/README.md). Enable by checking Math at `Settings > Markdown`. | ||
|
|
||
| ### Math inline | ||
|
|
||
| $ I = \frac V R $ | ||
|
|
||
| ### Math block | ||
|
|
||
| $$\begin{array}{c} | ||
| abla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} | ||
| abla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ | ||
| abla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ | ||
| abla \cdot \vec{\mathbf{B}} & = 0 \end{array}$$ | ||
|
|
||
|
|
||
| $$\frac{k_t}{k_e} = \sqrt{2}$$ | ||
|
|
||
| <!-- ------------- --> | ||
|
|
||
| ## Format Text (continued) | ||
|
|
||
| ### Text color | ||
|
|
||
| <span style='background-color:#ffcb2e;'>Text with background color / highlight</span> | ||
|
|
||
| <span style='color:#3333ff;'>Text foreground color</span> | ||
|
|
||
| <span style='text-shadow: 0px 0px 2px #FF0000;'>Text with colored outline</span> / <span style='text-shadow: 0px 0px 2px #0000FF; color: white'>Text with colored outline</span> | ||
|
|
||
|
|
||
| ### Text sub & superscript | ||
|
|
||
| <u>Underline</u> | ||
|
|
||
| The <sub>Subway</sub> sandwich was <sup>super</sup> | ||
|
|
||
| Super special characters: ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ ™ ® ℠ | ||
|
|
||
| ### Text positioning | ||
| <div markdown='1' align='right'> | ||
|
|
||
| text on the **right** | ||
|
|
||
| </div> | ||
|
|
||
| <div markdown='1' align='center'> | ||
|
|
||
| text in the **center** | ||
| (one empy line above and below | ||
| required for Markdown support OR markdown='1') | ||
|
|
||
| </div> | ||
|
|
||
| ### Block Text | ||
|
|
||
| <div markdown='1' style='text-align: justify; text-justify: inter-word;'> | ||
| lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. | ||
| </div> | ||
|
|
||
| ### Dropdown | ||
|
|
||
| <details markdown='1'><summary>Click to Expand/Collapse</summary> | ||
|
|
||
| Expanded content. Shows up and keeps visible when clicking expand. Hide again by clicking the dropdown button again. | ||
|
|
||
| </details> | ||
|
|
||
|
|
||
| ### Break page | ||
| To break the page (/start a new page), put the div below into a own line. | ||
| Relevant for creating printable pages from the document (Print / PDF). | ||
|
|
||
| <div style='page-break-after: always'></div> | ||
|
|
||
|
|
||
| <!-- ------------- --> | ||
|
|
||
| ## Multimedia | ||
|
|
||
| ### Images | ||
|  | ||
|
|
||
| ### Videos | ||
| **Youtube** [Welcome to Upper Austria](https://www.youtube.com/watch?v=RJREFH7Lmm8) | ||
| <iframe width='360' height='200' src='https://www.youtube.com/embed/RJREFH7Lmm8'> </iframe> | ||
|
|
||
| **Peertube** [Road in the wood](https://open.tube/videos/watch/8116312a-dbbd-43a3-9260-9ea6367c72fc) | ||
| <div><video controls><source src='https://peertube.mastodon.host/download/videos/8116312a-dbbd-43a3-9260-9ea6367c72fc-480.mp4' </source></video></div> | ||
|
|
||
| <!-- **Local video** <div><video controls><source src='voice-parrot.mp4' </source></video></div> --> | ||
|
|
||
| ### Audio & Music | ||
| **Web audio** [Guifrog - Xia Yu](https://www.freemusicarchive.org/music/Guifrog/Xia_Yu) | ||
| <audio controls src='https://files.freemusicarchive.org/storage-freemusicarchive-org/music/ccCommunity/Guifrog/Xia_Yu/Guifrog_-_Xia_Yu.mp3'></audio> | ||
|
|
||
| **Local audio** Yellowcard - Lights up in the sky | ||
| <audio controls src='../Music/mp3/Yellowcard/[2007]%20Paper%20Walls/Yellowcard%20-%2005%20-%20Light%20Up%20the%20Sky.mp3'></audio> | ||
|
|
||
| ## Charts / Graphs / Diagrams (mermaidjs) | ||
| Pie, flow, sequence, class, state, ER | ||
| See also: mermaidjs [live editor](https://mermaid-js.github.io/mermaid-live-editor/). | ||
|
|
||
| ```mermaid | ||
| graph LR | ||
| A[Square Rect] -- Link text --> B((Circle)) | ||
| A --> C(Round Rect) | ||
| B --> D{Rhombus} | ||
| C --> D | ||
| ``` | ||
|
|
||
|
|
||
|
|
||
| ## Admonition Extension | ||
| Create block-styled side content. | ||
| Use one of these qualifiers to select the icon and the block color: abstract, summary, tldr, bug, danger, error, example, snippet, failure, fail, missing, question, help, faq, info, todo, note, seealso, quote, cite, success, check, done, tip, hint, important, warning, caution, attention. | ||
|
|
||
| !!! warning 'Optional Title' | ||
| Block-Styled Side Content with **Markdown support** | ||
|
|
||
| !!! info '' | ||
| No-Heading Content | ||
|
|
||
| ??? bug 'Collapsed by default' | ||
| Collapsible Block-Styled Side Content | ||
|
|
||
| ???+ example 'Open by default' | ||
| Collapsible Block-Styled Side Content | ||
|
|
||
| ------------------ | ||
|
|
||
| This Markdown reference file was created for the [Markor](https://github.com/gsantner/markor) project by [Gregor Santner](https://github.com/gsanter) and is licensed [Creative Commons Zero 1.0](https://creativecommons.org/publicdomain/zero/1.0/legalcode) (public domain). File revision 3. | ||
|
|
||
| ------------------ | ||
|
|
This file contains hidden or 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,75 @@ | ||
| OrgMode Reference | ||
| * Headline | ||
| ** Nested headline | ||
| *** Deeper | ||
|
|
||
| * Basic markup | ||
| This is the general building block for org-mode navigation. | ||
| - _underscores let you underline things_ | ||
| - *stars add emphasis* | ||
| - /slashes are italics/ | ||
| - +pluses are strikethrough+ | ||
| - =equal signs are verbatim text= | ||
| - ~tildes can also be used~ | ||
|
|
||
| * List | ||
| ** Unordered List | ||
| - Item 1 | ||
| - Item 2 | ||
| - Subitem 2.1 | ||
| - Subitem 2.2 | ||
| ** Ordered List | ||
| 1. First Item | ||
| 2. Second Item | ||
| 1. Subitem 2.1 | ||
| 2. Subitem 2.2 | ||
| - [X] Completed Task | ||
| - [ ] Uncompleted Task | ||
| ** Nested List | ||
| - Item A | ||
| - Subitem A.1 | ||
| - Subitem A.2 | ||
| - Item B | ||
|
|
||
| * Tables | ||
|
|
||
| | First Name | Last Name | Years using Emacs | | ||
| |----------------------------+---------------------+-------------------| | ||
| | Lee | Hinman | 5 | | ||
| | Mike | Hunsinger | 2 | | ||
| | Daniel | Glauser | 4 | | ||
| | Really-long-first-name-guy | long-last-name-pers | 1 | | ||
|
|
||
| * Org-mode links | ||
|
|
||
| #+BEGIN_SRC fundamental | ||
| [[http://google.com/][Google]] | ||
| #+END_SRC | ||
|
|
||
| [[./images/pic1.png]] | ||
|
|
||
|
|
||
| * TODO List | ||
| ** TODO This is a task that needs doing | ||
| ** TODO Another todo task | ||
| - [ ] sub task one | ||
| - [X] sub task two | ||
| - [ ] sub task three | ||
| ** DONE I've already finished this one | ||
| *** CANCELLED learn todos | ||
| CLOSED: [2023-10-16 Mon 08:39] | ||
|
|
||
| * Code | ||
| #+BEGIN_LaTeX | ||
| $a + b$ | ||
| #+END_LaTeX | ||
|
|
||
| #+BEGIN_SRC emacs-lisp | ||
| (defun my/function () | ||
| "docstring" | ||
| (interactive) | ||
| (progn | ||
| (+ 1 1) | ||
| (message "Hi"))) | ||
| #+END_SRC | ||
|
|
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.
Uh oh!
There was an error while loading. Please reload this page.