81 Commits

Author SHA1 Message Date
Le Tan
64960cc3c5 editor: support prepend_dot_in_relative_path config 2018-12-03 19:51:04 +08:00
Le Tan
70374607bb Add insert table toolbar button 2018-11-28 19:31:43 +08:00
Le Tan
b6b73c3f82 editor: guess the image title from image path when inserting an image 2018-11-12 20:12:07 +08:00
Le Tan
ee6059ff7c translate path from native separtor to / 2018-11-02 19:54:14 +08:00
JianYueLin
a1f1618824 fix src/vmdeditoperations.cpp error (#443)
* fix insertImageFromPath function param error : can't convert QString to QString &

* fix src/vmdeditoperations.cpp error
2018-10-09 23:21:20 +08:00
Le Tan
61909c2c5d MdEditOperations: check source image before insert from path 2018-10-06 15:04:18 +08:00
Le Tan
9923feea14 InsertImageDialog: support scaling image 2018-09-30 23:01:11 +08:00
Le Tan
5cc8d6c8f1 MdEditor: support downloading images to local when Parse&Paste 2018-09-30 23:00:58 +08:00
Le Tan
4d223d0397 MdEditor: insert link or content when dropping file in editor 2018-09-12 20:35:15 +08:00
Le Tan
af912619a0 vim: bug fix for mapping Caps as Ctrl in KDE 2018-09-01 19:23:52 +08:00
Le Tan
7c7b9e8a3d MdEditor: insert image from network via tempoary file 2018-08-26 15:01:22 +08:00
Le Tan
5b7c4943e3 MdEditOperations: bug fix 2018-08-11 12:49:50 +08:00
Le Tan
4fbe2d87b7 MdEditOperations: support auto block quote 2018-08-09 20:00:42 +08:00
Le Tan
10a1e9c1a8 Editor: support completion 2018-08-03 19:13:33 +08:00
Le Tan
9b49de3ab5 MdEditOperations: Ctrl+U to delete till the space of block 2018-07-27 21:05:07 +08:00
Le Tan
dec308cbde editor: fix the style sheet issue 2018-07-19 20:52:07 +08:00
Le Tan
d9c8051fa3 editor: Ctrl+; to insert inline code, Ctrl+J/K to scroll page 2018-07-07 17:57:00 +08:00
Le Tan
2dbb114b47 fix image issue
1. Do not judge the image format from the file suffix;
2. Enable file: scheme in Markdown-it;
2018-04-27 20:35:17 +08:00
Le Tan
b46a8f4f39 UniversalEntry: add q to list all notebooks and a to search name of folder/note 2018-03-29 19:47:47 +08:00
Le Tan
69c14394ac refine image insert selection logics 2018-03-06 19:33:13 +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
8d6fc6cb4f VInsertImageDialog: fetch image from clipboard
Support `Ctrl+'` to insert image.
2017-12-12 09:46:59 +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
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
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
404b5329a1 replace VEdit and VMdEdit with VEditor and VMdEditor 2017-10-26 19:36:12 +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
30dfc24a28 support Insert Code Block tool bar button
Ctrl+M to insert a code block.
2017-10-19 22:21:25 +08:00
Le Tan
e66b70b6ff support Insert Link tool bar button
Support Ctrl+L to insert a link.
2017-10-19 19:42:50 +08:00
Le Tan
34aa9e0083 use empty title by default when inserting new image 2017-10-17 19:49:48 +08:00
Le Tan
ea05c268b3 remove obsolete title mark when inserting title mark 2017-10-13 19:40:35 +08:00
Le Tan
04fa3654a4 bug-fix: do not cancel auto-indentation if cursor is not at block end 2017-09-24 12:04:35 +08:00
Le Tan
a64d01ea86 refactor VFile and VOrphanFile
1. Make VFile a real abstract class;
2. Use VNoteFile for internal note file;
3. Use VOrphanFile for external orphan file;
2017-09-21 19:33:37 +08:00
Le Tan
59d0e82e66 refactor retrivePath to fetchPath 2017-09-07 20:33:38 +08:00
Le Tan
73630448a6 move vconfig to a local variable 2017-08-29 09:40:28 +08:00
Le Tan
0b9d259de6 support opening external files from context menu in system browser 2017-07-18 14:36:15 +08:00
Le Tan
e33ff1fede add Info action to tab context menu 2017-07-17 10:10:18 +08:00
Le Tan
8a56dc8b87 support editing external files 2017-07-15 12:46:04 +08:00
Le Tan
6fd92f915b toolbar: implement strikethrough and add shortcut tips 2017-07-06 20:40:23 +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
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
2734b8407c vim-mode: support canceling autoindent after o/O 2017-06-21 22:00:11 +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
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
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
de4e5fef8e let Shift+Enter to insert two spaces and a new line 2017-05-22 22:46:24 +08:00
Le Tan
e5021f4501 refactor local image folder
Treat those images which have relative path and locate in directories
that have the same parent directory as the file as internal images.
VNote will only manage the internal images.
2017-05-10 15:53:33 +08:00
Le Tan
a8614839d9 refactor image preview logics by adding VImagePreviewer
1. Support previewing non-relative local images;
2. Support previewing network images;
2017-05-06 12:25:18 +08:00