1274 Commits

Author SHA1 Message Date
Le Tan
a9b34955ee support MathJax
Work well with Hoedown and Markdown-it.
2017-03-23 20:57:31 +08:00
Le Tan
b9f8144f29 bugfix for "locate to directory" 2017-03-23 14:14:44 +08:00
Le Tan
7c7db3fbb8 release v1.1 2017-03-22 21:58:08 +08:00
Le Tan
bed6a0d234 support mermaid diagram 2017-03-22 14:18:00 +08:00
Le Tan
bacd112782 support task lists in markdown-it 2017-03-21 20:20:38 +08:00
Le Tan
7a51ee5b3d add Markdown renderer markdown-it 2017-03-21 15:43:54 +08:00
Le Tan
d47dd92f59 refine markdown render logics
Add common templates markdown_template.html and
markdown_template.js.

Hoedow provides hoedown.js.
Marked provides marked.js.
2017-03-20 20:45:17 +08:00
Le Tan
ee6fc69bb1 pop up a menu when inserting image or URL 2017-03-20 20:40:52 +08:00
Le Tan
1b52cd3362 support not deleting files from disk when deleting notebook 2017-03-19 11:42:43 +08:00
Le Tan
29b27b1ecd add .md suffix when creating new note 2017-03-18 20:25:40 +08:00
Le Tan
6c95b2df8b create notebook instead of pop up a list
When there is no notebook and user clicks the VNotebookSelector
combobox, just create a notebook instead of pop up a list.
2017-03-18 19:48:09 +08:00
Le Tan
fdb8c3bb3a toggle m_importNoteAct according to current directory state 2017-03-18 18:12:36 +08:00
Le Tan
85a5ea6054 open two panels view after locating file 2017-03-18 17:51:00 +08:00
Le Tan
a43383acec refine vnote.ini
Enable tools_dock_checked by default.
2017-03-18 17:31:47 +08:00
Le Tan
b0f7add1bb add editor_font_size in vnote.ini
Change default editor font size to 12.
2017-03-17 21:54:16 -07:00
Le Tan
aee1b9d571 bugfix: use QTabBar.mapToGlobal() in tabbarContextMenuRequested 2017-03-17 21:14:54 -07:00
Le Tan
94ad4adc1c fix tabbar of the edit area in macOS
1. revert a3b83b7f81192bdbeabb1ba8a7eed57beb4 to avoid flashing;
2. Explicitly specify usesScrollButtons in VEditWindow;
2017-03-17 21:07:29 -07:00
Le Tan
045d6f0241 set the padding of QListWidgetItem to 10px in VNotebookSelector 2017-03-17 20:50:28 -07:00
Le Tan
844b644972 eliminate the compiler warning on Linux 2017-03-17 21:04:51 +08:00
Le Tan
b27e6817b0 support MacOS build 2017-03-16 20:08:10 +08:00
Le Tan
22407e34a3 support installation on Linux
1. Add vnote.desktop and related icons for Linux;
2. Update app icon.
2017-03-05 13:04:27 +08:00
Le Tan
e2b29766d1 update app icons 2017-03-04 15:43:42 +08:00
Le Tan
f5e5cc0f2e fix the Chinese translations of "split" 2017-03-04 14:43:54 +08:00
Le Tan
e7381bdd04 warn users when copying files failed 2017-03-04 14:39:52 +08:00
Le Tan
f46b023d1b refine more messages to use tr() 2017-03-04 14:28:09 +08:00
Le Tan
38b18af4ab refine Chinese translations 2017-03-04 13:49:22 +08:00
Le Tan
238983ed0d refine all messages 2017-02-27 22:30:35 +08:00
Le Tan
b879b2c208 change file format from dos to unix 2017-02-26 20:01:29 +08:00
Le Tan
517d1ed139 refine dialogs
Use QDialogButtonBox in all dialogs.
2017-02-26 19:59:42 +08:00
Le Tan
c83fcf6ce9 add settings dialog and language setting
Add VSettingsDialog to show a settings dialog.
For now, VNote supports setting of language.
Add imcomplete Chinese support.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-02-26 17:13:52 +08:00
Le Tan
65b149e182 add tooltip for items in directory tree and file list panels 2017-02-12 20:55:22 +08:00
Le Tan
8db54c45a4 bugfix: do not use reference to hold return value from capturedTexts()
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-25 22:54:13 +08:00
Le Tan
010f4245f6 bugfix: clear image preview blocks having unmatched image path
The syntax highlighter could not recognize image links with spaces in
the URL. When clearing orphan image preview block, we need to clear
thoes blocks which having unmatched image path.

Fix issue: after inserting spaces in the URL of an image link, the
preview block still exists.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-22 19:40:43 +08:00
Le Tan
180ab46367 bugfix: highlight links and images with spaces in URL
It is said that URL should not contain spaces. Anyway, we use regular
expression syntax highlighting to complement PEG Markdown Highlight.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-22 19:39:43 +08:00
Le Tan
bc9ed31db6 locate to the new directory after creation
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-21 09:43:48 +08:00
Le Tan
fb1a172acf propagate key press event from QWebEngineView to VDocument
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-21 09:42:48 +08:00
Le Tan
46988f5bef refine editing shortcuts
1. Ctrl+[ behaves exactly like ESC;
2. Ctrl+W should delete the selected text if there has one.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-19 23:48:00 +08:00
Le Tan
336d9ad109 add shortcut Ctrl+O to insert backquotes
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-19 23:47:01 +08:00
Le Tan
f533dd6f95 bugfix: QUrl adds extra %0A to the copied url
Let the base class handle inserting urls.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-19 23:46:01 +08:00
Le Tan
2026d5f3a3 change app icon
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-14 11:57:37 +08:00
Le Tan
66d2cc157a change the icon of saving note
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-14 09:59:32 +08:00
Le Tan
59611872d4 use "image" as the default image title
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-14 09:26:48 +08:00
Le Tan
a3926631e2 smaller font size in notebook selector
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-14 09:03:03 +08:00
Le Tan
3feec565f6 restore the expansion state of the directory tree after creating or pasting
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-13 23:16:35 +08:00
Le Tan
5a097421e1 bugfix: check hasFocus() when handling clipboard change
When copying the preview image, other tabs should check if they have the focus.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-13 22:31:54 +08:00
Le Tan
77d8daa5ec do not focus VEdit when navigating through the outline
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-13 22:24:10 +08:00
Le Tan
11bb7b4df9 remove the width constraints in markdown rendering
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-12 21:01:03 +08:00
Le Tan
901c477705 utilize ExtraSelection for special highlighting
1. Highlight current line;
2. Highlight selected word;
3. Highlight searched word;

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-12 21:00:06 +08:00
Le Tan
62f2d39fbc bugfix: update outline info after renaming
Update the filePath property in VToc after renaming the note.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-11 21:26:46 +08:00
Le Tan
3769ac5311 support search wrap
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-10 23:52:54 +08:00