600 Commits

Author SHA1 Message Date
Le Tan
00f3665c1c VTextDocumentLayout: fix hitTest() in cursor block mode 2017-12-01 23:24:40 +08:00
Le Tan
0d6ed84228 bug-fix: vim mode cursor width 2017-12-01 23:24:21 +08:00
Le Tan
87af770612 vim-mode: support cursor block
Support cursor block in Normal and Insert mode.

TODO: need more fine-grain tuning of the behaviors.
2017-11-30 22:09:16 +08:00
Le Tan
b2a435297d VTextEdit: support block cursor 2017-11-30 21:25:43 +08:00
Le Tan
72946d0e15 Markdown Highlighter: more speed 2017-11-30 21:25:28 +08:00
Le Tan
4ec340a403 refactor preview logics
Use block user data to store preview info.
2017-11-29 21:45:20 +08:00
Le Tan
c7cb95d18b Markdown Highlighter: speed up at first parse 2017-11-29 21:45:06 +08:00
Le Tan
d2ee3e66d6 VTextEdit: support previewing inline images 2017-11-29 21:44:01 +08:00
Le Tan
3e7fa998ee bug-fix: retry to set clipboard after failure on Windows
On Windows, set data to clipboard may fail due to operating system's
design. We will repeatedly retry untin succeed.
2017-11-25 09:20:29 +08:00
Le Tan
d3ff787153 vim-mode: support = to auto indent selected blocks as previous block 2017-11-24 20:18:59 +08:00
Le Tan
fcbd591b69 bug-fix: no more than 6 numbersigns in headings in edit mode 2017-11-24 20:12:37 +08:00
Le Tan
94260b3df8 VSnippet: support auto indent 2017-11-24 19:57:23 +08:00
Le Tan
d79ad54822 refine header regular expression
Allow only spaces after #s.
2017-11-24 19:57:11 +08:00
Le Tan
d943e58f13 bug-fix: headings
- Missing headings with special characters;
- Display only the starting block of headers across multiple blocks;
- HGMarkdownHighlighter:
    - Skip headers without spaces after #s;
    - Fix last-block-header issue;
2017-11-24 19:56:58 +08:00
Le Tan
cb6338ecf6 add heading tool button 2017-11-24 19:56:41 +08:00
Le Tan
1f0ee88770 refactor edit operations
- Ctrl+B/I/K/D/M: Revert if content between the markers is empty.
- Ctrl+7: delete title mark.
2017-11-24 19:56:25 +08:00
Le Tan
ce48cdafd6 change compact mode to the default mode 2017-11-21 22:02:37 +08:00
Le Tan
d739fa5de8 refactor log file
- Append to existing log file when the file size does not exceed the limit;
- Put log file beside the vnote.ini configuration file;
2017-11-21 21:55:07 +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
c2973d9e23 vim-mode: add vim_exemption_keys config for Ctrl+C/V
Add vim_exemption_keys config to control the behaviors of Ctrl+C and
Ctrl+V in Vim mode.
2017-11-20 19:29:46 +08:00
Le Tan
32aa68dc78 support custom external editors
Define [external_editors] section for custom external editors.
2017-11-20 19:29:31 +08:00
Le Tan
8ab8b3d83a bug-fix
- Set proper defalut focus of VInsertLinkDialog;
- Fix bug in snippet when selection mark is empty;
- Focus editor after double-click applying a snippet;
2017-11-20 19:29:14 +08:00
Le Tan
4ffd6a5ef4 fix appveyor: use 5.9 instead of 5.9.1 2017-11-19 15:28:14 +08:00
Le Tan
941672a07c release v1.10 v1.10 2017-11-19 14:55:31 +08:00
Le Tan
7e18374b93 fix build warnings 2017-11-19 14:55:31 +08:00
Le Tan
6e43002a8e refine Chinese translations 2017-11-19 14:31:08 +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
141b404240 support file change check 2017-11-16 11:34:13 +08:00
Le Tan
0a97b2480d snippet: support Ctrl+E S to insert snippets 2017-11-14 21:40:39 +08:00
Le Tan
9b730c2889 VToolBox: support Navigation mode 2017-11-12 13:59:23 +08:00
Le Tan
f032dede34 replace QToolBox with VToolBox 2017-11-12 13:15:12 +08:00
Le Tan
6ac33d2bd0 support snippets
Shortcuts are not supported yet.
2017-11-11 08:09:22 +08:00
Le Tan
7131b483f3 refine default css style 2017-11-07 20:18:18 +08:00
Le Tan
1e15b37a83 vim-mode: support Ctrl+O in Insert mode
- Support Ctrl+O in Insert mode to enter Normal mode temporarily;
- Use Ctrl+K instead of Ctrl+O to insert inline code;
2017-11-07 19:52:36 +08:00
Le Tan
93ba677116 magic-word: support overriding magic words
- Add %dt%, %note%, and %no%;
- Support overriding magic words with simple literal value;
2017-11-07 19:51:39 +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
2186716655 disable rich text in VTextEdit 2017-11-04 08:18:19 +08:00
Le Tan
83119e860c add WeChat public account in README 2017-11-04 08:11:01 +08:00
Le Tan
fe0bc465b0 add openssl version check 2017-11-03 23:00:08 +08:00
Le Tan
945d29f576 vim-mode: fix left/right/up/down key in macOS 2017-11-03 22:28:52 +08:00
Le Tan
48981e09ab bug-fix: fix compilation error in macOS 2017-11-03 22:14:47 +08:00
Le Tan
490a87bb53 bug-fix: fix horizontal scrollbar in wrong case 2017-11-03 20:28:05 +08:00
Le Tan
c59974744e draw a thin line to link preview image and its block
Add config preview-image-line-foreground in MDHL for the line color.
2017-11-03 19:49:58 +08:00
Le Tan
9de40e4d78 replace VPlainTextEdit with VTextEdit 2017-11-03 19:49:42 +08:00
Le Tan
cb4d32e95f bug-fix: shortcuts for ActivateNextTab and ActivatePreviousTab 2017-10-26 21:08:24 +08:00
Le Tan
404b5329a1 replace VEdit and VMdEdit with VEditor and VMdEditor 2017-10-26 19:36:12 +08:00
Le Tan
5abcb1a8d9 add VPlainTextEdit with custom layout
- Support block images;
- Support line number;
- Do NOT support line distance height due to constraint of QPlainTextEdit.
2017-10-24 20:00:24 +08:00
Le Tan
a265aed035 bug-fix: insert code block inline if it is at the end of a space block 2017-10-23 21:49:53 +08:00
Le Tan
73ee02d3b2 support editing read-only files 2017-10-22 21:26:39 +08:00