95 Commits

Author SHA1 Message Date
Le Tan
dfaa7772df bug-fix: use the default suffix from markdown suffix list 2017-08-07 20:01:24 +08:00
Le Tan
586f5c0994 support custom doc type suffixes
Add markdown_suffix config.
2017-08-06 15:26:50 +08:00
Le Tan
5ad99ee9b8 bug-fix: * will recursively expand the directory tree causing crash
We build the complete subtree before expanding to avoid crash.
2017-07-14 19:34:29 +08:00
Le Tan
a87048cac2 bug-fix: compare two paths with case convertion on Windows
On Windows, case difference in file name is ignored.
2017-07-03 19:09:50 +08:00
Le Tan
3b011cd8de minor fix 2017-05-31 19:42:37 +08:00
Le Tan
6a10c7ab3c refactor DocType 2017-05-29 18:56:43 +08:00
Le Tan
c8ec95eb3d refine English names of notebooks, folders 2017-05-24 22:15:35 +08:00
Le Tan
03c0fdc49d add Open File Location in directory tree and file list 2017-05-23 19:59:05 +08:00
Le Tan
f4708e427f bugfix in VFileList and VEditArea
1. Clear selection before setting current item in VFileList;
2. Status change of non-active tabs shoud not be propagated upwards;
2017-05-23 19:26:12 +08:00
Le Tan
d0e43db5ad more user friendly messages 2017-05-03 21:39:18 +08:00
Le Tan
5486929a8d change statusTip to toolTip 2017-04-09 12:20:58 +08:00
Le Tan
ab824946e8 register VEditArea and VOutline for Navigation Mode
1. Register VEditArea and VOutline for Navigation mode;
2. Support Ctrl+J and Ctrl+K navigation in VOutline;
2017-04-06 19:39:52 +08:00
Le Tan
611a695cb1 register VFileList for Navigation Mode
Support Ctrl+J and Ctrl+K navigation in VFileList.
2017-04-05 23:36:16 +08:00
Le Tan
3406eab29c Captain mode 2017-03-27 19:44:23 +08:00
Le Tan
29b27b1ecd add .md suffix when creating new note 2017-03-18 20:25:40 +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
65b149e182 add tooltip for items in directory tree and file list panels 2017-02-12 20:55:22 +08:00
Le Tan
d416cf6eda refactor messages
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-01 17:00:38 +08:00
Le Tan
880d16e8f4 support reordering notes in file list panel
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-28 19:02:27 +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
9413ef875b modify stylesheet
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 22:42:34 +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
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
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
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
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
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
dce6396874 remove buttons in VFileList
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-10 22:31:04 +08:00
Le Tan
1bc95bcea0 disable newNoteAct if FileList's directory is not set
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-03 21:39:46 +08:00
Le Tan
2bbffb9002 change icons from png to svg
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-02 22:09:31 +08:00
Le Tan
a6774fdf49 handle nokebook renaming correctly
We do not allow modifying the path of an existing notebook.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-30 18:02:41 +08:00
Le Tan
49020d9fb2 do not inherit QListWidget in VFileList
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-30 17:44:21 +08:00
Le Tan
1f80fb8583 add VFileListPanel as a wrapper of VFileList
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-26 18:09:07 +08:00
Le Tan
5409ce9769 refactor directory and file related logics
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-25 22:25:34 +08:00
Le Tan
b85bf8bdc7 add menus and toolbars
1. Add menu item "Converter" to choose markdown converter;
2. Add menu item "About" and "About Qt";
3. Change all QMessageBox's parent to "this";

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-23 13:12:32 +08:00
Le Tan
5fa07864a1 move source stuff into src subdir
Make it convenient to add third-party libraries.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-22 14:11:33 +08:00