103 Commits

Author SHA1 Message Date
Le Tan
c0c4b8602a add VTipsDialog to display hints about some actions 2017-12-22 19:33:42 +08:00
Le Tan
03122a24db bug-fix: fix images when cutting files
1. De-duplicate the images occur multiple times in the note;
2. Refresh the read mode and edit mode preview after the directory path
change;
3. Update init images and inserted images after the directory path
change;
2017-12-21 21:02:56 +08:00
Le Tan
1dcd65e7dd themes: bug fix 2017-12-11 20:48:18 +08:00
Le Tan
262c6acfd9 support themes 2017-12-03 16:14:13 +08:00
Le Tan
6c83f9bd04 refactor VCaptain to enable Captain mode with Input Method 2017-11-21 20:15:58 +08:00
Le Tan
8d568e6e23 support Flash Page
Ctrl+Alt+L to edit Flash Page. Config flash_page gives the path of the
flash page.
2017-11-21 08:38:34 +08:00
Le Tan
6ac33d2bd0 support snippets
Shortcuts are not supported yet.
2017-11-11 08:09:22 +08:00
Le Tan
787c61a5af support meta word
- Add VLineEdit as a QLineEdit with meta data support;
- support custom magic words through [magic_words];
- add %help% for all magic words information;
2017-10-17 19:47:57 +08:00
Le Tan
598e8144bb support custom startup pages
- Support continuing where user left off on startup;
    - Support recovering the edit/read mode and the anchor position;
- Support opening user-specified files on startup;
- Add config startup_page_type, startup_pages, and last_opened_files;
2017-10-11 10:44:18 +08:00
Le Tan
893c0b2823 bug-fix: use completeBaseName() when adding sequence to file name
- When adding attachments, if the name conflicts, we add sequence after
the base name. "abc.tar.gz" to "abc_001.tar.gz".
- When handling notes and folders, if the name conflicts, we add
sequence after the complete base name. "abc.5.9.1.md" to
"abc.5.9.1_001.md".
2017-10-09 21:25:30 +08:00
Le Tan
11537972f3 add V_FALLTHROUGH for explicit fallthrough 2017-10-09 21:25:30 +08:00
Le Tan
58e7cdca4b refactor VFileList
- Refine note deletion logics;
- Refine note copy/paste logics;
- Refine note sorting logics;
2017-09-29 19:56:38 +08:00
Le Tan
e5cd014762 support recycle bin folder for extern files
1. Add external_recycle_bin_folder config;
2. By default, each external file will use _v_recycle_bin in the same
directory as its recycle bin folder to hold deleted images;
2017-09-26 19:27:11 +08:00
Le Tan
01788a5301 support attachments
Support attachments to internal note file.

- Add/Delete/Clear/Sort;
- Support custom attachment folder for each notebook (read-only);
- Support renaming attachment;
2017-09-22 23:30:49 +08:00
Le Tan
a64d01ea86 refactor VFile and VOrphanFile
1. Make VFile a real abstract class;
2. Use VNoteFile for internal note file;
3. Use VOrphanFile for external orphan file;
2017-09-21 19:33:37 +08:00
Le Tan
cdcab4884a use HGMarkdownParser to fetch image links from Markdown file 2017-09-16 14:55:42 +08:00
Le Tan
35fa0a46f6 add recycle bin to each notebook 2017-09-16 14:55:42 +08:00
Le Tan
2eb6476c3d support auto heading sequence by config enable_heading_sequence 2017-09-11 19:49:30 +08:00
Le Tan
d2ef9608fc bug-fix: use platform-specific text of QKeySequence in context menu 2017-09-08 21:40:31 +08:00
Le Tan
c3408769b0 refactor VImagePreviewer 2017-09-05 20:54:15 +08:00
Le Tan
c2fe857e3a open an external file as internal note if it is a note within VNote 2017-08-07 20:04:18 +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
707814909a refactor logics about adding notebook 2017-06-22 19:07:01 +08:00
Le Tan
eba2556a3a vim-mode: support DELETE action
Actions related to `d` and `x`.
2017-06-14 17:25:24 +08:00
Le Tan
c15908a724 support highlighting current line by whole block in Vim non-Insert mode 2017-06-11 19:58:43 +08:00
Le Tan
cc1faba5d2 remove Q_COMPILER_INITIALIZER_LISTS flag to eliminate macro-redefinition warnings 2017-06-03 19:53:47 +08:00
Le Tan
4730d67393 bugfix: fix nested fenced code block issue
The opening ``` and closing ``` should have the same indentation.
2017-06-03 13:23:04 +08:00
Le Tan
6a10c7ab3c refactor DocType 2017-05-29 18:56:43 +08:00
Le Tan
9bf3f9394f support custom image folder for both global scope and notebook scope 2017-05-24 19:54:58 +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
e5021f4501 refactor local image folder
Treat those images which have relative path and locate in directories
that have the same parent directory as the file as internal images.
VNote will only manage the internal images.
2017-05-10 15:53:33 +08:00
Le Tan
7a4d86eca9 bugfix: VImagePreviewer to preview images with optional title
Do not preview images in code block.
2017-05-09 19:35:51 +08:00
Le Tan
d0e43db5ad more user friendly messages 2017-05-03 21:39:18 +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
6a5fecf8ef Add Navigation Mode to Captain Mode
In Captain Mode, W will trigger the Navigation Mode. In this mode,
registered widgets will display some characters for hints and after user
pressing the the keys, corresponding widget will take action as response.

For now, only VNotebookSelector registers in the Navigation Mode.
2017-04-04 18:02:47 +08:00
Le Tan
9bc8f36733 define V_ASSERT()
Q_ASSERT() takes no effect in release mode. V_ASSERT() is still valid in
release mode.
2017-04-04 13:21:51 +08:00
Le Tan
1f845d5ba8 add config setting for Web zoom factor 2017-03-30 20:00:27 +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
ee6fc69bb1 pop up a menu when inserting image or URL 2017-03-20 20:40:52 +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
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
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
85d9456f02 support copy and paste notes
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-18 22:25:14 +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
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