Le Tan
5c17f74641
add indicator in status bar for edit tab
2017-06-21 20:01:33 +08:00
Le Tan
3b011cd8de
minor fix
2017-05-31 19:42:37 +08:00
Le Tan
306b3cca92
refactor VEditTab
...
1. Make VEditTab an abstract class.
2. Use VMdTab inheriting from VEditTab for Markdown file.
3. Use VHtmlTab inheriting from VEditTab for Html file.
2017-05-30 21:05:24 +08:00
Le Tan
6a10c7ab3c
refactor DocType
2017-05-29 18:56:43 +08:00
Le Tan
f7f9ed7157
add open file location button in VExporter
2017-05-23 19:44:35 +08:00
Le Tan
0131569c02
support exporting note as PDF file
...
TODO: Currently the exported PDF does not have the outline which is
needed to fix via third-party utils.
2017-05-22 22:34:53 +08:00
Le Tan
871c53743f
add print action item
...
Print support of QWebEngineView is incomplete in Qt5.7. Need to figure
out another way to print documents.
Just hide the action Item.
2017-05-20 13:49:24 +08:00
Le Tan
f43f9c4afc
add Showdown renderer
2017-05-18 21:40:02 +08:00
Le Tan
5bb692bcc5
support centering the images and insert the alt text as caption
...
Add config enable_image_caption.
2017-05-17 21:03:42 +08:00
Le Tan
d0e43db5ad
more user friendly messages
2017-05-03 21:39:18 +08:00
Le Tan
c642d60757
add SaveAndRead and DiscardAndRead to the context menu in edit mode
2017-04-22 11:43:26 +08:00
Le Tan
022d3ae2f7
add Edit to context menu in read mode to edit current note
2017-04-20 22:46:49 +08:00
Le Tan
05f7bcfcf0
bugfix: determine the base url by the file type
2017-04-19 20:05:28 +08:00
Le Tan
44257913f7
support code block syntax highlihgt in edit mode
...
In edit mode, highlight code blocks via parsing the result of HighlightJS.
We only highlight fenced code blocks by token-matching.
Support custom style in MDHL file.
2017-04-19 15:08:26 +08:00
Le Tan
32a7adb8d4
support viewing external orphan file
...
1. Add VOrphanFile for external local file;
2. Add doc file for shortcuts;
3. Ctrl+E ? to open the shortcuts doc;
2017-04-08 21:28:25 +08:00
Le Tan
584472f902
fix tab order and TOC level in edit mode
...
1. Fix tab order of left and right corner widgets;
2. Insert [EMPTY] header when header level is not continuous in edit mode.
2017-04-04 13:21:51 +08:00
Le Tan
ce1cefa793
allow user to zoom in/out Web page
...
1. Mouse wheel with Ctrl pressing will zoom in/out the Markdown Web
page;
2. Ctrl+-, Ctrl++ will zoom in/out the Markdown Web page;
3. Ctrl+0 recover the Web page zoom factor to 1.
2017-03-31 09:51:34 +08:00
Le Tan
97dd8c43cc
add config web_zoom_factor in vnote.ini
...
When it is set to -1, VNote will calculate the zoom factor according to
DPI.
This fix is for the hidpi issue on Windows. It is not widely tested on macOS.
2017-03-28 23:15:58 +08:00
Le Tan
3406eab29c
Captain mode
2017-03-27 19:44:23 +08:00
Le Tan
a9b34955ee
support MathJax
...
Work well with Hoedown and Markdown-it.
2017-03-23 20:57:31 +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
f46b023d1b
refine more messages to use tr()
2017-03-04 14:28:09 +08:00
Le Tan
238983ed0d
refine all messages
2017-02-27 22:30:35 +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
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
Le Tan
3005d9bf5c
implement Find/Replace logics
...
Supports Find/Replace in both edit and preview modes.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-08 21:09:00 +08:00
Le Tan
c44928e1d8
remove Ctrl+Alt Vim mode
...
1. Remove Ctrl+ALT Vim mode. Now Ctrl+D will enter the Vim mode
tempararily and only expires after NOT hitting commands for a while;
2. Add d and dd to delete text. 'd2j' is not supported;
3. x will cut the selected text.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-27 09:59:26 +08:00
Le Tan
87c668bc67
fix Hoedown's toc
...
Hoedown will treat '_' in title as '<em>'.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-17 12:57:06 +08:00
Le Tan
a22bf1059d
preview image links
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-17 12:38:01 +08:00
Le Tan
5ff46d6237
implement insert image menu action
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-12 23:14:53 +08:00
Le Tan
66c1d543c2
synchronize current header in read and edit mode
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-12 21:58:53 +08:00
Le Tan
a884991150
refactor: add VMdEdit to inherit VEdit for markdown edit
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-11 14:42:01 +08:00
Le Tan
9a197b5087
refactor: add VNotebookSelector for notebook management
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-04 22:26:48 +08:00
Le Tan
fe4fb25105
VOutline: change current anchor when current item changed
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-03 20:26:05 +08:00
Le Tan
e7c42ba5be
refactor: add VFile and VDirectory
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-30 22:58:00 +08:00
Le Tan
3722e6cb71
close all files before closing app
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-21 22:07:01 +08:00
Le Tan
ac2552603b
clear unused images when finishing editing markdown
...
1. Clear existing images deleted by this edit;
2. Clear newly inserted images which were deleted before saving the
file;
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 21:48:07 +08:00
Le Tan
810d2f02f4
judge if equal in VOutline when updating curHeader
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 23:01:06 +08:00
Le Tan
62c75427e7
complete rename logics
...
1. Handle directory rename correctly;
2. Handle file rename correctly;
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-14 22:40:38 +08:00
Le Tan
5e97ca8060
display current file in window title
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-13 16:15:13 +08:00
Le Tan
dcc7e6a0f7
add vnote.qss for style sheet
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-13 08:05:43 +08:00
Le Tan
1a77056f4a
support outline in edit mode
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-10 21:59:37 +08:00
Le Tan
8a214831e3
fix outline navigation bug using Hoedown
...
Use a fixed base html and update the body using VDocument.html like
Marked does.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-09 21:43:11 +08:00
Le Tan
454072c9ba
update current header in outline correctly
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-09 21:41:57 +08:00
Le Tan
849fdf05bd
support synchronization between preview page and outline
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-08 23:21:22 +08:00