87 Commits

Author SHA1 Message Date
Le Tan
1fe7567d79 export: support HTML format 2018-02-25 10:01:18 +08:00
Le Tan
60635fe5e7 export: support custom background, style 2018-02-23 19:54:07 +08:00
Le Tan
878a272777 add VTreeWidget with simple search and convert VDirectoryTree to it 2018-02-03 16:33:00 +08:00
Le Tan
4267ea54c8 do not print debug log in release mode
Add -d argument to print debug log in release mode.
2018-01-26 23:08:18 +08:00
Le Tan
97721f3e92 bug-fix: use en locale for help docs if user's locale is missing 2018-01-25 21:13:21 +08:00
Le Tan
0b885e1639 output built-in themes on startup 2018-01-16 21:05:35 +08:00
Le Tan
45526cc0a8 bug-fix
- Caculate font height every time on painting line number area;
- Support specifying multiple fonts in font-family in qss;
- Add margin for "li ol" in CSS;
2018-01-16 21:05:35 +08:00
Le Tan
a20ff08bb8 small fixes 2018-01-12 19:55:54 +08:00
Le Tan
b9e8bc0eb4 enable MathJax in fenced code block 2018-01-07 19:14:29 +08:00
Le Tan
7e1a254073 disable subscript and supscript in Markdown-it since the conflict with MathJax 2018-01-04 19:54:20 +08:00
Le Tan
2f1971476d VMdEditor: support copy selected text as HTML 2018-01-04 13:27:42 +08:00
Le Tan
be1827b0c4 change predefined_colors to custom_colors 2017-12-25 19:43:28 +08:00
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
9f9cc553dd VUtils: set default button as special button 2017-12-09 17:48:36 +08:00
Le Tan
1410c16280 add v_pure theme 2017-12-09 12:59:39 +08:00
Le Tan
262c6acfd9 support themes 2017-12-03 16:14:13 +08:00
Le Tan
d79ad54822 refine header regular expression
Allow only spaces after #s.
2017-11-24 19:57:11 +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
e6ce66ec7d support backup file
Add configs:

- backup_directory
- backup_extension
- enable_backup_file
2017-11-17 19:49:14 +08:00
Le Tan
0a97b2480d snippet: support Ctrl+E S to insert snippets 2017-11-14 21:40:39 +08:00
Le Tan
6ac33d2bd0 support snippets
Shortcuts are not supported yet.
2017-11-11 08:09:22 +08:00
Le Tan
78a86cddc0 support note template
VNote will scan files in the template folder in the config folder as
template.

Template supports magic word.
2017-11-06 21:47:38 +08:00
Le Tan
83071e8501 bug-fix: fix auto heading sequence regular expression 2017-10-20 19:45:41 +08:00
Le Tan
34aa9e0083 use empty title by default when inserting new image 2017-10-17 19:49:48 +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
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
ffd0cc8e6e refine DocType
- Use *.html suffix for rich text file;
- For unknown DocType, open it using system's default app;
- Add "Open Via External Program" item in context menu of VFileList;
2017-09-26 19:28:11 +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
d955dedcb7 add config mathjax_javascript for Mathjax location and configuration 2017-09-24 10:18:55 +08:00
Le Tan
d20dc4a0b0 bug-fix: image links in reference format will cause crashes 2017-09-23 14:56:53 +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
5c038e1f76 support Markdown-it option configs 2017-09-16 14:55:42 +08:00
Le Tan
7fd2273aad support line number in code block in both read and edit mode 2017-09-12 20:28:40 +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
59d0e82e66 refactor retrivePath to fetchPath 2017-09-07 20:33:38 +08:00
Le Tan
c3408769b0 refactor VImagePreviewer 2017-09-05 20:54:15 +08:00
Le Tan
73630448a6 move vconfig to a local variable 2017-08-29 09:40:28 +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
586f5c0994 support custom doc type suffixes
Add markdown_suffix config.
2017-08-06 15:26:50 +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
a802222b06 constrain the length of the inserted image file 2017-07-02 17:52:11 +08:00