Caleb John
30e0d69a74
Desktop: Load Codemirror css in index.html ( #3673 )
2020-09-05 00:02:20 +01:00
Caleb John
652816fd26
Desktop: Change codemirror default home and end to be visual line based ( #3672 )
2020-09-05 00:01:06 +01:00
Caleb John
0ae8d454ad
Focus the editor whenever the user toggles the visible panes ( #3646 )
2020-08-18 22:26:57 +01:00
Caleb John
0eedae1f62
Desktop: Fixed vim mode issue where status bar was not visible ( #3606 )
2020-08-08 10:15:01 +01:00
Caleb John
e1144c098e
Desktop: Fixed scrolling issue when editing while searching in CodeMirror ( #3593 )
...
Only scroll to search matchs when the user changes the search or
explicitly changes the search index
https://discourse.joplinapp.org/t/codemirror-feedback/10397
2020-08-08 10:11:55 +01:00
Caleb John
5c5cb0f781
Desktop: Implement scroll-past-end on CodeMirror editor ( #3589 )
2020-08-08 09:55:10 +01:00
Laurent Cozic
89864de1ff
Tools: Added eslint radix rule
2020-08-04 22:36:50 +01:00
Caleb John
223caca0f5
Desktop: Enable CodeMirror keybindings ( #3545 )
2020-08-02 16:26:26 +01:00
Caleb John
7f73931530
Desktop: Fixes #3560 : Modify the CodeMirror linter plugin to fix katex ( #3582 )
...
Rewrite the joplin mode to manually handle parsing.
This gives us more control over katex parsing and the ability to upgrade
in the future
2020-08-02 11:33:59 +01:00
Caleb John
bbfed9bca8
Desktop: Codemirror: clean up list indent code ( #3581 )
2020-08-01 19:09:52 +01:00
Caleb John
bab29cd582
Desktop: Toggle Editor rather than setting split mode on search ( #3561 )
2020-08-01 19:07:52 +01:00
Caleb John
9dfb0642da
Desktop: Split Codemirror setOptions into different effects ( #3522 )
2020-07-22 23:18:52 +01:00
Caleb John
0fa8dfa063
Desktop: Enforce that whitespace check for unindent checks the begining of a ( #3515 )
2020-07-22 23:17:49 +01:00
Caleb John
a274a56e65
Desktop: CodeMirror: Change rootSize parameters to prevent collision with styles.editor ( #3505 )
2020-07-22 23:16:06 +01:00
Caleb John
44d3a4213f
Desktop: Enable searching in editor rather than the viewer for CodeMirror ( #3360 )
2020-07-22 23:13:23 +01:00
Caleb John
282f6de1a9
Desktop: Load more CodeMirror modes for syntax highlighting ( #3401 )
2020-07-15 11:46:14 +01:00
Laurent Cozic
7f1c25793a
Desktop: Fixes #3449 : Fixed style caching
2020-07-14 19:17:25 +00:00
Caleb John
452b41de0f
Desktop: Fixes #3440 : Improve Markdown rendering in CodeMirror, in particular for math expressions ( #3448 )
2020-07-12 19:42:19 +01:00
Laurent Cozic
c63c6370b5
Desktop: Refactored command system
...
The goal is to make the command system more modular, so each command can
be defined as a single object that includes a declaration (name, label,
etc.) and a runtime (to execute the command, test if it should be
enabled, etc.)
Utility methods are provided to convert a command to a menu item or a
toolbar button, thus reducing duplicated and boiler plate code across the
codebase (often the menu item logic was duplicated in the toolbar
button logic and vice versa).
The goal is to make it easier to add new commands (and associated menu
item and toolbar buttons) and to call them from
anywhere. This is also useful for plugins, which can also easily define
new commands.
Could also allow creating a command palette.
2020-07-03 22:32:39 +01:00
Caleb John
262159cf73
Desktop: Codemirror: Remove cancelled keys in favour of explicit keymaps ( #3417 )
2020-07-02 23:00:56 +01:00
Caleb John
8eb94bc8ab
Desktop: Manually refresh codemirror whenever the window size changes ( #3388 )
...
* Manually refresh codemirror whenever the parent div size changes
* Set editor width through style rather than adding an extra property
* use Memo for editorStyle
2020-07-02 22:45:43 +01:00
Laurent Cozic
fd4e5d7d30
Android release v1.0.333
2020-06-28 19:57:33 +01:00
Laurent Cozic
e7f3aa3764
Updated British spelling
2020-06-20 12:18:41 +01:00
Caleb John
77005fc495
Tools: Try to add codemirror types again ( #3380 )
...
* Try add codemirror type again
* Add global typedef for codemirror
* Add comment
2020-06-18 18:58:11 +01:00
Laurent Cozic
1205908233
Revert "Desktop: Change codemirror to user import syntax ( #3375 )"
...
This reverts commit 3a7a068196
.
2020-06-17 23:45:36 +01:00
Caleb John
3a7a068196
Desktop: Change codemirror to user import syntax ( #3375 )
2020-06-17 18:47:11 +01:00
Caleb John
2f15178ff6
Desktop: Remove auto-indent for in note html/xml for Code Mirror ( #3374 )
...
html/xml inside of a codeblock will still benefit from auto-indent
2020-06-16 13:00:58 +01:00
Caleb John
a4b13be0d1
Desktop: Fix getLineSpan logic and list token regex logic ( #3365 )
...
- previously getLineSpan was included line text as a token (dumb
oversight)
- the regex was updated to include a space after a OL element (was
missing for some reason)
2020-06-16 13:00:17 +01:00
Caleb John
23ae4fb790
Desktop: Add swapLineUp and swapLineDown keys to Code Mirror editor ( #3363 )
2020-06-16 12:59:33 +01:00
Laurent Cozic
b7f5f848f2
All: Refactored themes to allow using the same ones in both desktop and mobile version
...
Will also allow using them when exporting HTML or PDF from CLI.
2020-06-10 22:08:59 +01:00
Caleb John
a8c8539e7a
Desktop: Add option to choose Code Mirror as code editor ( #3284 )
2020-06-06 16:00:20 +01:00