66 Commits

Author SHA1 Message Date
Le Tan
43fcdd502a Editor: support Ctrl+Shift+V to paste as plain text 2018-10-12 20:19:32 +08:00
Le Tan
b27da44c7a MdEditor: fix suffix of url with query parameters 2018-10-12 20:19:31 +08:00
Le Tan
33350e6bdf MdEditor: support Attach And Insert Link action 2018-10-12 20:19:30 +08:00
Le Tan
3779dd1b81 MdEditor: add action to insert link to attachment 2018-10-12 20:19:30 +08:00
Le Tan
0484656c1f AttachmentList: support copying file path of attachment 2018-10-08 20:41:22 +08:00
Le Tan
dc9c9f6bbd MdEditor: close the temporary file explicitly after writing 2018-10-08 20:40:45 +08:00
Le Tan
5cc8d6c8f1 MdEditor: support downloading images to local when Parse&Paste 2018-09-30 23:00:58 +08:00
Le Tan
14ab49165e Vim: double-click to enter Visual mode 2018-09-18 19:27:23 +08:00
Le Tan
30a3a6e74a MdEditor: support inserting file as relative link 2018-09-14 19:48:17 +08:00
Le Tan
4d223d0397 MdEditor: insert link or content when dropping file in editor 2018-09-12 20:35:15 +08:00
Le Tan
f3e4f370dd MdEditor: do not set link when copying image
Outlook will treat it as attachment if the clipboard contains both URL
and image data.
2018-09-10 20:26:29 +08:00
Le Tan
32991051a9 MdEditor: bug fix in zoom 2018-09-05 20:23:42 +08:00
Le Tan
060c02297b LivePreview: support bidirectional smart live preview 2018-09-05 20:16:05 +08:00
Le Tan
b49d5a968f MdEditor: add shortcut hint to Toggle Live Preview 2018-08-31 20:25:06 +08:00
Le Tan
7c7b9e8a3d MdEditor: insert image from network via tempoary file 2018-08-26 15:01:22 +08:00
Le Tan
cbe83afb91 MdEditor: refine context menu 2018-08-24 20:13:09 +08:00
Le Tan
6fb6ce3f50 refine Chinese translations 2018-08-23 20:25:58 +08:00
Le Tan
e1091e0d80 PegMarkdownHighlighter: dynamic fast parse timer interval 2018-08-22 20:01:50 +08:00
Le Tan
d4daf32f20 MdEditor: support copying diagram in puml and graphviz 2018-08-22 20:01:31 +08:00
Le Tan
c2bb490378 MdEditor: copy backgorund when copying in-place preview 2018-08-20 19:10:48 +08:00
Le Tan
1ce8c05da9 MdEditor: support copy in-place preview 2018-08-19 12:06:50 +08:00
Le Tan
f98c2f5382 MdEditor: aware of links and images in edit mode 2018-08-18 18:47:29 +08:00
Le Tan
dc1f1c4535 MdEditor: support pasting HTML as converted Markdown text via Turndown 2018-08-17 22:42:21 +08:00
Le Tan
10a1e9c1a8 Editor: support completion 2018-08-03 19:13:33 +08:00
Le Tan
bfac189cb7 PegMarkdownHighlighter: cache result for performance 2018-07-30 21:55:07 +08:00
Le Tan
24a20e60e9 Editor: improve trailing space highlight performance 2018-07-29 16:18:50 +08:00
Le Tan
8679ffa051 PegMarkdownHighlighter: improve performance 2018-07-29 10:17:59 +08:00
Le Tan
ba0660de28 MdEditor: fix zoomPage() bug after setting style sheet 2018-07-25 06:39:31 +08:00
Le Tan
41bf2d9cec MdTab: fix reload() logic to re-load images 2018-07-20 20:06:46 +08:00
Le Tan
dec308cbde editor: fix the style sheet issue 2018-07-19 20:52:07 +08:00
Le Tan
98f2238dd1 style: do not override background-color in VMdEditor 2018-07-17 20:43:56 +08:00
Le Tan
0e724635b3 MdEditor: fix the font style issue
Font family may be constrained by QWidget style in qss file.
2018-07-14 07:00:45 +08:00
Le Tan
bb308a06d1 PegMarkdownHighlighter: multi-threads highlighter support 2018-07-12 20:19:23 +08:00
Le Tan
d3a5642d06 fix paste image issue
- Will detect whether there is only <img> in html;
- Detect local file when handling text;
2018-05-27 12:12:24 +08:00
Le Tan
e048734414 editor: refine heading sequence 2018-05-19 10:20:00 +08:00
Xianzhong Wang
5eb8c4d224 [function] Support to remove header sequence when disable it (#243)
* [function] Support to remove header sequence when disable it

spec:
In edit mode:
- when click icon to enable auto sequence, add sequence immediately
- when click icon to disable auto sequence, remove already added sequence

In preview/read mode:
- auto sequence icon should be unchecked and disabled

For readonly file, always disable the auto sequence icon.

* [bugfix] Do not let auto sequence ruin the undo history

All the header sequence auto-update should be treated as one edit action.
So that user can undo auto-update by pressing undo twice.
(One undo for the auto-update change, and one for the original header change)

* Refactor and reformat according to PR feedback
2018-05-19 09:56:14 +08:00
Le Tan
4e744f30f9 highlighter: no need to check if a header is valid
It is fixed in the upstream pmh_parser.
2018-05-11 14:39:51 +08:00
Le Tan
d683afa271 refine markdown editor 2018-04-28 21:37:44 +08:00
Le Tan
6fe82d3db0 highlighter fix 2018-04-20 19:55:28 +08:00
Le Tan
aa5960f974 preview non-codeblock MathJax 2018-04-18 20:55:14 +08:00
Le Tan
9566e6f5d2 highlight: highlight MathJax formula in editor 2018-04-13 19:51:01 +08:00
Le Tan
cfcc7e5494 support in place preview and live preview of code blocks 2018-04-10 20:58:07 +08:00
Le Tan
c6b7561864 VMdTab: live preview 2018-04-10 20:58:07 +08:00
Le Tan
e38ec22263 editor: add PasteAsBlockQuote menu action 2018-03-16 22:37:30 +08:00
Le Tan
a2ee5413a1 support search
- Ctrl+E C to toggle the search dock;
2018-03-13 20:45:44 +08:00
Le Tan
9710659a00 support word count 2018-03-06 19:33:40 +08:00
Le Tan
69c14394ac refine image insert selection logics 2018-03-06 19:33:13 +08:00
Le Tan
da5218452f handle HTML <img> in clipboard 2018-02-26 19:30:33 +08:00
Le Tan
eb25aec5b5 ESC to exit edit mode with Vim disabled 2018-01-18 19:50:40 +08:00
Le Tan
14df9e6e90 refine copy HTML logics 2018-01-10 10:39:45 +08:00