103 Commits

Author SHA1 Message Date
Le Tan
10e2bba7f6 support Mermaid and Flowchart.js preview
Mermaid preview is disabled for some issues.
2018-04-12 19:31:13 +08:00
Le Tan
8239abec2a support code block MathJax preview 2018-04-11 19:53:33 +08:00
Le Tan
2206102945 support Graphviz 2018-04-10 20:58:07 +08:00
Le Tan
9850d9a2a2 support PlantUML 2018-04-04 20:30:36 +08:00
Le Tan
a2c2d57570 UniversalEntry: add z to search content of note in all notebooks 2018-03-29 19:48:03 +08:00
Le Tan
ff4a2d0b91 markdown-it: add options for subscript and superscript 2018-03-19 20:05:26 +08:00
Le Tan
47b4cc88aa support sorting items by clicking the column header 2018-03-16 21:37:56 +08:00
Le Tan
7c9da2a37c search: support && and || logical operator
- Space-separated keywords are combined as AND;
- && and || for AND and OR;
- Do not support using both && and ||;
- When multiple keywords are specified, will not show all the matched lines.
2018-03-15 22:00:14 +08:00
Le Tan
a2ee5413a1 support search
- Ctrl+E C to toggle the search dock;
2018-03-13 20:45:44 +08:00
Le Tan
9cc193178b export: add TOC function to built-in PDF export 2018-03-04 20:19:27 +08:00
Le Tan
fb73fdad77 export: bug fix 2018-03-04 11:33:44 +08:00
Le Tan
635ac0a10b export: fix wkhtmltopdf
- MathJax works fine;
- Mermaid does not work;
- Flowchart.js works fine;
2018-03-03 09:14:21 +08:00
Le Tan
2bb2910fec add enable_flash_anchor config
It controls whether we need to flash the heading when we scroll to it in
read mode.
2018-03-02 22:36:51 +08:00
Le Tan
2d3567e460 refine interface with shortcut hints 2018-02-26 19:30:20 +08:00
Le Tan
fe7c446e5f export: handle HTML resources 2018-02-26 19:30:06 +08:00
Le Tan
7069f7268b palette: add mermaid css file config 2018-02-25 11:04:11 +08:00
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