727 Commits

Author SHA1 Message Date
Le Tan
3ecae78262 add tooltip in VOutline
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 23:20:19 +08:00
Le Tan
8b26e4424d use bold to identify current tab in corner widget
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 23:17:45 +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
a3b83b7f81 dynamically show or hide left corner tab list widget
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-07 22:53:02 +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
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
46c8025215 enable multiple selection in file list
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-03 17:42:09 +08:00
Le Tan
02d5300821 support copy and paste directory
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-03 11:42:11 +08:00
Le Tan
787d54c808 update tab list menu dynamically when menu show up
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-30 23:38:29 +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
8e8d69c85f refactor: VNote and VNotebook
regression: notebook renaming logics does not work for now

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-26 12:45:29 +08:00
Le Tan
013b6cecc2 install a message handler
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-24 22:49:31 +08:00
Le Tan
7c69f80f17 split setupUI() in VMainWindow
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-24 22:23:50 +08:00
Le Tan
f37d1f57a8 fix regular expression in image-insert dialog
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-23 21:39:20 +08:00
Le Tan
50db1a63ba support single instance app
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-22 21:40:51 +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
1ed324fd20 regexp to validate image title and image name
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 23:16:10 +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
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
de8b54afa7 add elapsed time to the image name
Add elapsed time to the image name when inserting an image.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 11:29:54 +08:00
Le Tan
3ae3462597 save/restore window state and geometry
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 11:12:15 +08:00
Le Tan
ed785e12d3 a more comfortable context menu in VFileList
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-19 09:55:43 +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
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
4fcdba7a11 display star in tab if modified
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 22:29:46 +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
eee2d5342a fix outline navigation in edit mode
Jump to EndOfBlock instead of EndOfLine.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 22:02:26 +08:00
Le Tan
00982eaacc fix images inserting when images folder does not exist
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 21:54:52 +08:00
Le Tan
0306256863 delete local images when deleting markdown file
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 21:53:55 +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
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
fe4a2cdcc8 move peg-markdown-highlight as a lib to avoid warnings
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-11 23:09:42 +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
d77b333343 fix outline bug in edit mode
Avoid taking the # in code block as a header by mistake.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-11 22:08:03 +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
dce6396874 remove buttons in VFileList
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-10 22:31:04 +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
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