501 Commits

Author SHA1 Message Date
Le Tan
6fd92f915b toolbar: implement strikethrough and add shortcut tips 2017-07-06 20:40:23 +08:00
Le Tan
71bcfe3019 vim-mode
- `Ctrl+Tab` and `Ctrl+Shift+Tab` in Normal mode to alternate tabs;
- Support `:<num>` command for line jump;
- Support `%`;
2017-07-05 19:42:40 +08:00
Le Tan
33146efcd9 bug-fix: copying image/imageURl in read mode fails due to URL encoding on Windows 2017-07-05 11:37:29 +08:00
Le Tan
f9f7a365f8 add toolbar for text editing
Bold, italic, underline, strikethrough, inline code.

Underline and strikethrough are not implemented yet.
2017-07-04 14:07:48 +08:00
Le Tan
b73f30222d refine search_wrap.svg with logo color 2017-07-03 21:44:42 +08:00
Le Tan
c4683dd232 vim-mode: support ~ to reverse case 2017-07-03 21:22:06 +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
Le Tan
c48d646a55 vim-mode: auto disable input method in non-Insert mode
Add config "enable_smart_im_in_vim_mode".
2017-07-02 13:59:07 +08:00
Le Tan
2b2ae17cd1 refine default.mdhl
- Use a less attractive color for image link.
- Use the same color as code block for inline code.
2017-07-02 11:23:57 +08:00
Le Tan
59cf0a9e33 bug-fix: re-connect signals about Vim status after moving split 2017-07-01 17:21:26 +08:00
Le Tan
026e9f7ed5 refine README.md
1. Update README.md;
2. Split into two versions: English and Chinese.
2017-07-01 16:38:01 +08:00
Le Tan
f911c60c79 support flowchart.js
VNote supports flowchart.js in all for renderers.
2017-07-01 10:19:47 +08:00
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