1122 Commits

Author SHA1 Message Date
Le Tan
29c0701e6b Captain: exit captain mode before closeEvent() to avoid crash 2018-08-07 20:59:58 +08:00
Le Tan
77954a7d64 VTextDocumentLayout: hold layout info in block data 2018-08-07 20:59:46 +08:00
Le Tan
efd3740198 add hint for re-opening tabs 2018-08-07 20:59:33 +08:00
Le Tan
2298338094 VNotebook: refine logics of building notebook from existing file structures 2018-08-05 22:41:42 +08:00
Xinjun Ma
09c610e3a9 recursive import external folders (#332)
* recursive import external folders

* rollback translation

* fix when path does not exist

* add blank line
2018-08-05 18:15:26 +08:00
Le Tan
19bd159aba MainWindow: bug fix for GUI mess up of toolbars
After toggling between read and edit mode multiple times, the toolbar's
buttons may be grey but clickable in edit mode. Add a timer to update
them soon after the change.
2018-08-05 11:02:08 +08:00
Le Tan
e5ff101085 fix compilation error 2018-08-04 19:19:43 +08:00
Le Tan
10a1e9c1a8 Editor: support completion 2018-08-03 19:13:33 +08:00
Le Tan
284cba698f PegMarkdownHighlight: refine fast parse 2018-07-31 20:41:49 +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
9b49de3ab5 MdEditOperations: Ctrl+U to delete till the space of block 2018-07-27 21:05:07 +08:00
Le Tan
2e7b2e1e5d TagPanel: add two configs to control the behavior
- max_tag_label_length
- max_num_of_tag_labels
2018-07-27 21:04:50 +08:00
Le Tan
47503fddfe TagExplorer: use RegularExpression instead of WholeWordOnly when searching for a tag
"\bc#\b" won't match a word. We use "^c#$" instead.
2018-07-25 21:54:36 +08:00
Le Tan
0ae6b1a810 theme: refine styles for MARK 2018-07-25 21:19:20 +08:00
Le Tan
5c7bc6d537 peg-markdown-highlight: update for pmh_MARK 2018-07-25 20:53:44 +08:00
Le Tan
6ab85e1c1c Outline: focus to edit area after item clicked or activated in Navigation mode 2018-07-25 07:25:56 +08:00
Le Tan
72fb0f18c6 flowchart.js: update to 1.11.3 2018-07-25 06:47:16 +08:00
Le Tan
ba0660de28 MdEditor: fix zoomPage() bug after setting style sheet 2018-07-25 06:39:31 +08:00
Le Tan
2b01a4ccd0 theme: refine styles 2018-07-24 21:04:32 +08:00
Le Tan
87169832be peg-markdown-highlight: update to fix pmh_NOTE 2018-07-24 21:04:17 +08:00
Le Tan
b4554e1be8 MainWindow: remember expanded state 2018-07-24 21:03:31 +08:00
Le Tan
dace19119f release v1.20 v1.20 2018-07-23 19:58:01 +08:00
Le Tan
794d77433f theme: refine styles 2018-07-23 19:55:15 +08:00
Le Tan
2c3672d2b8 refine Changes.md 2018-07-22 15:22:17 +08:00
Le Tan
918513bb7d refine Chinese translations 2018-07-20 21:05:11 +08:00
Le Tan
2356316d9b translations: fix typo of Qt translations 2018-07-20 20:26:23 +08:00
Le Tan
76554b63f4 PegHighlighter: bug fix for single format blocks 2018-07-20 20:07:07 +08:00
Le Tan
25ec41c3f0 WebView: fix context menu in preview mode 2018-07-20 20:06:55 +08:00
Le Tan
41bf2d9cec MdTab: fix reload() logic to re-load images 2018-07-20 20:06:46 +08:00
Le Tan
17b1a606d5 PegHighlighter: fix index-out-of-scope issue when parsing results
When user inserts many empty lines at once, the increated block number
may exceed the range of the parser result.
2018-07-20 20:06:36 +08:00
Le Tan
46738c7f6e theme: refine styles 2018-07-20 20:06:25 +08:00
Le Tan
83f1909e84 fix compiler warnings 2018-07-20 07:15:11 +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
42fbdace55 VNoteFile: update config file after save() to update the modified time 2018-07-19 20:52:45 +08:00
Le Tan
6f1a0c6980 docs: add superscript and subscript description 2018-07-19 20:52:26 +08:00
Le Tan
dec308cbde editor: fix the style sheet issue 2018-07-19 20:52:07 +08:00
Le Tan
976f7ff403 theme: refine styles 2018-07-18 20:05:59 +08:00
Le Tan
1c7e91d26d Explorer: add Up button to go up to parent directory 2018-07-18 20:05:45 +08:00
Le Tan
2ae742cc07 UniversalEntry: U to search the content of notes in Explorer root directory 2018-07-18 20:05:27 +08:00
Le Tan
5f65dc95c5 VSearch: support searching Explorer directory 2018-07-18 20:04:57 +08:00
Le Tan
98f2238dd1 style: do not override background-color in VMdEditor 2018-07-17 20:43:56 +08:00
Le Tan
4d953542f2 VTextDocumentLayout: draw block background for HRULE 2018-07-17 20:43:43 +08:00
Le Tan
48db50fd5e PegHighlighter: refine fast parse
- Fast parse block range: look upward till the indentation is 0;
- Rehighlight all the fast-parsed blocks explicitly;
- Do not reset block user state by default;
- Pre highlight single format blocks to avoid jitter of line height;
2018-07-17 20:43:28 +08:00
Le Tan
59efed94f3 config: add [global]/image_name_prefix for inserted images 2018-07-15 20:06:05 +08:00
Le Tan
40424b7931 docs: update markdown_guide 2018-07-14 13:16:20 +08:00
Le Tan
abee597812 PegHighlighter: support fast parse 2018-07-14 12:45:15 +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
3e29a647ab MdTab: fix the synchronization between read and edit mode
Mute web view in edit mode.
2018-07-13 21:54:26 +08:00