30 Commits

Author SHA1 Message Date
Le Tan
1046d177f2 editor: fix leading space on macOS 2019-06-20 20:31:08 +08:00
Le Tan
14617a4172 support left alignment for RTL text in edit mode
Vim mode does not support it for now.
2019-04-26 19:43:56 +08:00
Le Tan
ae6849adec MainWindow: fix layout restore 2018-12-06 19:28:18 +08:00
Le Tan
31ceeec252 VTextDocumentLayout: add debug info for the crash 2018-11-19 19:48:31 +08:00
Le Tan
c640118dfa TextDocumentLayout: bug fix for block count change
Example text that will make VNote crash:

```
ab123  aaa
```

Then select the space before `aaa` and press `Enter`.
2018-11-07 20:31:21 +08:00
Le Tan
aeb2263be3 Editor: support auto scrolling cursor line into center 2018-10-30 20:47:41 +08:00
Le Tan
a12f01e617 TextDocumentLayout: add debug info to investigate the crash 2018-10-17 20:51:27 +08:00
Le Tan
bc711e755c VTextDocumentLayout: bug fix in relayout() 2018-09-26 19:24:18 +08:00
Le Tan
f9820cf709 VTextEdit: bug fix 2018-09-18 19:27:33 +08:00
Le Tan
968e74e1ca PreviewManager: refactor layout logics
- Bug fix: use cached image name in preview helpers;
- Only relayout necessary blocks;
2018-08-13 20:14:18 +08:00
Le Tan
83f63d0328 fix compilation error 2018-08-10 22:49:13 +08:00
Le Tan
2e2bf31239 fix compilation error 2018-08-10 22:31:23 +08:00
Le Tan
77954a7d64 VTextDocumentLayout: hold layout info in block data 2018-08-07 20:59:46 +08:00
Le Tan
21e5aac024 VTextEdit: force to update() to show cursor while dragging text
This is a work-around.
2018-07-19 20:53:09 +08:00
Le Tan
4d953542f2 VTextDocumentLayout: draw block background for HRULE 2018-07-17 20:43:43 +08:00
Le Tan
fbfc6c1dd6 highlighter: support Fenced Code Block 2018-07-12 20:19:07 +08:00
Le Tan
93b26f41e4 preview: support force background for previewed images
- Add [editor]/preview-image-background config in MDHL;
- Will fill background first before drawing an image if specified;
2018-06-06 21:53:02 +08:00
Le Tan
99cf497ddc preview: bug fix with no-update issue 2018-04-24 07:52:43 +08:00
Le Tan
49811cabc0 VTextDocumentLayout: support cursor line block background 2017-12-08 19:31:19 +08:00
Le Tan
d14f4697b4 replace palette in clss VNote with VPalette 2017-12-05 19:45:04 +08:00
Le Tan
7f230312df vim-mode: bug fix in block cursor mode 2017-12-03 16:21:00 +08:00
Le Tan
f429ffe3e5 vim-mode: support Visual mode with block cursor 2017-12-02 14:35:51 +08:00
Le Tan
00f3665c1c VTextDocumentLayout: fix hitTest() in cursor block mode 2017-12-01 23:24:40 +08:00
Le Tan
0d6ed84228 bug-fix: vim mode cursor width 2017-12-01 23:24:21 +08:00
Le Tan
b2a435297d VTextEdit: support block cursor 2017-11-30 21:25:43 +08:00
Le Tan
4ec340a403 refactor preview logics
Use block user data to store preview info.
2017-11-29 21:45:20 +08:00
Le Tan
d2ee3e66d6 VTextEdit: support previewing inline images 2017-11-29 21:44:01 +08:00
Le Tan
490a87bb53 bug-fix: fix horizontal scrollbar in wrong case 2017-11-03 20:28:05 +08:00
Le Tan
c59974744e draw a thin line to link preview image and its block
Add config preview-image-line-foreground in MDHL for the line color.
2017-11-03 19:49:58 +08:00
Le Tan
9de40e4d78 replace VPlainTextEdit with VTextEdit 2017-11-03 19:49:42 +08:00