738 Commits

Author SHA1 Message Date
Le Tan
9278149941 vim-mode: support shorcuts to jump between titles
- `[[`: jump to previous title;
- `]]`: jump to next title;
- `[]`: jump to previous title at the same level;
- `][`: jump to next title at the same level;
- `[{`: jump to previous title at a higher level;
- `]}`: jump to next title at a higher level;
2017-06-30 20:31:46 +08:00
Le Tan
e1acd6e9a2 vim-mode: support r for replacement 2017-06-30 19:17:42 +08:00
Le Tan
6df4dbe12a vim-mode: support more text objects for i and a
Now Vim supports word, WORD, '', "", ``, (), [], <>, {} as text object.
2017-06-29 19:36:50 +08:00
Le Tan
4b1e256308 vim-mode: going back to Normal mode from insert mode will clear auto indent and auto list 2017-06-28 22:04:54 +08:00
Le Tan
eeaeb0b567 enable font-size in editor section in MDHL file 2017-06-28 20:08:01 +08:00
Le Tan
11f06bf617 vim-mode: bug fixes
1. Enable repeat in f/t/F/T movement;
2. Make cw/W behave like ce/E;
2017-06-27 22:03:41 +08:00
Le Tan
bd5e8be1c0 change default background color of cursor line in Vim Insert/Normal mode
It is too hard to find some suitable color for all 4 backgrounds.
2017-06-27 22:03:01 +08:00
Le Tan
bf8bf9cc4f refine context menu of edit tab
1. "Move one split left/right" will create a new split if needed;
2. Add "Close Tab", "Close Other Tabs", and "Close Tabs To The Right" actions.
2017-06-26 22:26:03 +08:00
Le Tan
003ba7a1f2 bug-fix: some minor bug fixes
1. Refine VUpdater to compare versions with different sections, such as
1.2.3 or 1.2;
2. Update shortcuts help;
3. Fix bug with autoindent and autolist.
2017-06-26 18:51:54 +08:00
Le Tan
cf70786448 bug-fix: revert icns file
The new redrawn app icons on macOS seems do not work properly.
2017-06-25 22:58:19 +08:00
Le Tan
96ac582253 bug-fix: set menu role for certain actions
On macOS, OS will try to merge some actions to the application menu by
text matching, which will be broken in Chinese. So we need to set these
actions' role specifically, including: settings, exit, about, about QT.
2017-06-25 22:22:45 +08:00
Le Tan
9f4ac1f260 bug-fix: add Q_OS_MAC for check
Qt 5.7 seems to use Q_OS_MAC instead of Q_OS_MACOS.
2017-06-25 18:36:05 +08:00
Le Tan
a9ad26b035 vim-mode: use MetaModifier rather than ControlModifier in Vim mode on macOS 2017-06-25 14:58:52 +08:00
Le Tan
0369848943 bug-fix: user could not choose an existing empty folder as the root folder 2017-06-25 14:41:56 +08:00
Le Tan
748dc36cac release v1.6 v1.6 2017-06-24 09:35:18 +08:00
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