523 Commits

Author SHA1 Message Date
Le Tan
140c731dd5 update shortcuts help 2017-06-24 00:17:23 +08:00
Le Tan
4e1540522c refine Chinese translations 2017-06-23 23:41:55 +08:00
Le Tan
4681d2becf redraw app icons 2017-06-23 22:46:41 +08:00
Le Tan
c6986eeaf6 bug-fix: always constrain the image width when exporting PDF
Otherwise, the exported PDF will have just part of the large image.
2017-06-23 19:52:36 +08:00
Le Tan
927c0f5c27 bug-fix: Ctrl+D/U to scroll down/up half page instead of one page 2017-06-23 19:45:27 +08:00
Le Tan
34afc2731d help-menu: add update check 2017-06-23 18:10:04 +08:00
Le Tan
707814909a refactor logics about adding notebook 2017-06-22 19:07:01 +08:00
Le Tan
2734b8407c vim-mode: support canceling autoindent after o/O 2017-06-21 22:00:11 +08:00
Le Tan
78674efaa0 bug-fix: Ctrl+H does not work to delete one char
The shortcut of Replace action occupies Ctrl+H.
2017-06-21 21:30:49 +08:00
Le Tan
5c17f74641 add indicator in status bar for edit tab 2017-06-21 20:01:33 +08:00
Le Tan
e305024a58 vim-mode: support simple marks(a-z)
Different behaviors from Vim: after deleting the line with a mark set,
VNote could not detect if this mark is set or not. VNote just simply
jumps to the same line.
2017-06-20 23:50:27 +08:00
Le Tan
878264b8fc vim-mode: support location jump with Ctrl+O and Ctrl+I 2017-06-20 19:37:52 +08:00
Le Tan
10a9447b96 vim-mode: support command line mode and leader key
1. We now support limited commands: :w, :q, :wq, :x, :q! ;
2. We now support fixed leader sequence: y, d, p, P ;
3. Support <num>% to goto <num>/100 percent of the document.
2017-06-20 15:23:58 +08:00
Le Tan
5953954786 vim-mode: support undo/redo and zt/zz/zb
Change SaveAndRead from Ctrl+R to Ctrl+T.
2017-06-19 21:44:17 +08:00
Le Tan
d909091f46 vim-mode: add an indicator for Vim status in status bar 2017-06-19 15:56:12 +08:00
Le Tan
ffce4b9611 vim-mode: message for Vim mode 2017-06-18 09:44:11 +08:00
Le Tan
7871965bf8 vim-mode: support f/F/t/T movement
Support `;` and `,` to repeat last find movement.
2017-06-17 14:33:49 +08:00
Le Tan
5047e19b24 vim-mode: support Copy/Paste/Change/Indent/UnIndent/ToLower/ToUpper action 2017-06-17 11:26:51 +08:00
Le Tan
f6a91d04a8 vim-mode: Ctrl+O to support autoindent and autolist 2017-06-15 11:16:04 +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
88fa722868 dragging mouse with Ctrl and left button pressed to scroll in read and edit mode 2017-06-13 16:24:48 +08:00
Le Tan
71ea514bfa vim-mode: support registers 2017-06-13 15:48:03 +08:00
Le Tan
cbf207d9ed vim-mode: support word-related movement
- `w`, `W`, `e`, `E`, `b`, `B`, `ge`, and `gE`.
2017-06-12 20:20:04 +08:00
Le Tan
1c7e4576a4 do not add icon for menu items in menu bar on macOS 2017-06-11 21:48:02 +08:00
Le Tan
b7f2690e96 vim-mode: reset to Normal mode when edit begins 2017-06-11 21:05:33 +08:00
Le Tan
41fef0ed88 do not show icons in menu on macOS
There is something wrong in the icon resource path on macOS. The icons
in menu could not be displayed correctly.
2017-06-11 20:57:05 +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
a44259e66c bugfix: implement focusChild() of VMdTab and VHtmlTab to fix focus issue 2017-06-11 17:46:34 +08:00
Le Tan
a8c76d6742 support normal Vim mode
1. Support Insert/Normal/Visual/VisualLine modes:
    - `V`, `v`, `I`, `i`, `A`, `a`, `s`, `Esc`, `Ctrl+[`, `o`, `O`;
2. Support movement commands (with Repeat support):
    - `h`, `j`, `k`, `l`, `gj`, `gk`;
    - `gg`, `G`;
    - `^`, `0`, `$`;
    - `Ctrl+U`, `Ctrl+D`, `PageUp`, `PageDown`, `Ctrl+B`;
2017-06-11 16:31:25 +08:00
Le Tan
224a7253ce support subscript, superscript and footnote in markdown-it
Subscript: H~2~O
Superscript: 2^2^=4
Footnote: This is a footnote[^1].\n[^1]: Here is the footnote.
2017-06-04 12:42:57 +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
443ee772a7 make cursor visible after highlight completed
Highlight may turn originlly visible cursor partially visible. We make
it visible in this case.
2017-06-03 15:55:00 +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
85c09c296d refine VNote's log file in release mode
1. Add menu item "View Log" to view log file;
2. Add Captain mode shortcut "Ctrl+E ," to flush the log file;
2017-06-03 10:17:44 +08:00
AlbinZhang
77bbf7f907 fix compilation error with MSVC2013 (#15)
MSVC2013 support C99 incompletely, which causes build errors for C codes in peg-highlight module.

1. Move variable declarations at the front of code block;
2. Add compilation flag `Q_COMPILER_INITIALIZER_LISTS`;
2017-06-02 08:58:09 +08:00
Le Tan
5b150a3634 handle HTML comment correctly 2017-06-01 22:05:02 +08:00
Le Tan
97051badf0 refactor TOC logics 2017-06-01 13:21:17 +08:00
Le Tan
3b011cd8de minor fix 2017-05-31 19:42:37 +08:00
Le Tan
306b3cca92 refactor VEditTab
1. Make VEditTab an abstract class.
2. Use VMdTab inheriting from VEditTab for Markdown file.
3. Use VHtmlTab inheriting from VEditTab for Html file.
2017-05-30 21:05:24 +08:00
Le Tan
6a10c7ab3c refactor DocType 2017-05-29 18:56:43 +08:00
Le Tan
0631b1c30e refactor VDirectory and VNotebook 2017-05-29 12:14:57 +08:00
Le Tan
4c63839c4d bugfix: escape special symbols (&) in TOC during generation 2017-05-26 18:19:42 +08:00
Le Tan
7d05f96f94 release v1.5 v1.5 2017-05-25 22:27:50 +08:00
Le Tan
c54bc9c680 refine Chinese translations 2017-05-25 22:24:58 +08:00
Le Tan
73530355fd support highlighting trailing space 2017-05-25 19:52:10 +08:00
Le Tan
c8ec95eb3d refine English names of notebooks, folders 2017-05-24 22:15:35 +08:00
Le Tan
19b15b55f4 refine README.md and changes.md for new release 2017-05-24 21:26:26 +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
03c0fdc49d add Open File Location in directory tree and file list 2017-05-23 19:59:05 +08:00
Le Tan
f7f9ed7157 add open file location button in VExporter 2017-05-23 19:44:35 +08:00