66 Commits

Author SHA1 Message Date
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
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
045d6f0241 set the padding of QListWidgetItem to 10px in VNotebookSelector 2017-03-17 20:50:28 -07: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
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
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
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
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
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
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
eaab820d8b add find and replace dialog
Logic is not implemented yet.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-01 14:43:28 +08:00
Le Tan
72fdf399bc change app icon
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-29 21:26:39 +08:00
Le Tan
becd4a320f support Vim key bindings in preview mode
1. h, j, k, l to navigate;
2. gg, G to go to the start and end of the document;
3. Ctrl+D, Ctrl+U to go down and up half page;

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-29 20:52:18 +08:00
Le Tan
3b442f55a9 highlight curren cursor line
Add configuration "highlight_cursor_line" in vnote.ini.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-25 20:31:59 +08:00
Le Tan
58c8506855 use different color of the corner icon in current window
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-24 15:52:05 +08:00
Le Tan
16858d7474 support moving tabs between windows
Add two menu item on the tab's context menu to move one split
left/right.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-24 15:02:14 +08:00
Le Tan
1aa264adc8 support locating current note
Support locating the notebook and directory of current note.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-24 13:09:19 +08:00
Le Tan
b14d15e266 add icon to indicate the read/edit mode of tab
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-24 09:32:56 +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
a0a558d62d change the size of the down-arrow in VNotebookSelector
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 17:49:14 +08:00
Le Tan
f36ed97694 change stylesheet
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 16:41:13 +08:00
Le Tan
5d028e29fb change icon
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 13:03:57 +08:00
Le Tan
edca922f5e support avatar
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 11:21:08 +08:00
Le Tan
8f866f34ff stylesheet
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-09 21:08:38 +08:00
Le Tan
f0428f7b90 change markdown.css
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 23:11:14 +08:00
Le Tan
9413ef875b modify stylesheet
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 22:42:34 +08:00
Le Tan
6c72267788 add padding to QTreeWidgetItem and QListWidgetItem
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-07 22:01:58 +08:00
Le Tan
e32ee1fa90 refactor: VNotebookSelector
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-07 13:08:06 +08:00
Le Tan
0298b8bfe1 change the look of the notebook combobox
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 16:15:27 +08:00
Le Tan
e77c10df36 add icon for notebook and directory items
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 13:22:35 +08:00
Le Tan
85d9456f02 support copy and paste notes
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-18 22:25:14 +08:00
Le Tan
af38e491ba change corner widget icons
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 22:09:01 +08:00
Le Tan
a6e7a7e42d change default markdown.css
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-15 22:32:00 +08:00
Le Tan
c7259c307e add delete note button in tool bar
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-15 22:17:15 +08:00
Le Tan
a6c2416cc8 add note info button in tool bar
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-15 14:48:16 +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
5f8073eeec modify code style in default markdown.css
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-11 22:46:24 +08:00
Le Tan
201d14116f set app icon for windows
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-11 22:07:15 +08:00
Le Tan
550a3707a5 remove buttons in directory tree
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-10 23:02:09 +08:00
Le Tan
3d6778e1fe fix highlightjs bug with code block
We should distinguish <code> and <pre><code>.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-10 22:39:57 +08:00
Le Tan
99353c37bd fix highlihgtjs highlight using Hoedown
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-10 22:01:51 +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
849fdf05bd support synchronization between preview page and outline
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-08 23:21:22 +08:00