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
Le Tan
d330bdae0f
let image title edit get focus in VInsertImageDialog
2017-05-03 22:03:49 +08:00
Le Tan
8899a374a8
change auto list seq to 1 after indented or unindented
2017-04-26 18:53:08 +08:00
Le Tan
bcdfc90951
use Ctrl+<Num> instead of Ctrl+Alt+<Num> to insert title
2017-04-20 21:34:04 +08:00
Le Tan
fc6aefc66f
do not indent empty lines when pressing tab
2017-04-19 22:04:47 +08:00
Le Tan
f1c101b1d8
refine auto indent and auto list
...
1. Enter will cancel the auto indent and auto list;
2. Tab/Shift+Tab will increase or descrease the indentation of auto list;
2017-04-10 23:06:17 +08:00
Le Tan
9bc8f36733
define V_ASSERT()
...
Q_ASSERT() takes no effect in release mode. V_ASSERT() is still valid in
release mode.
2017-04-04 13:21:51 +08:00
Le Tan
b0d3e42647
refine edit mode
...
1. Support "Ctrl+Alt+<N>" to insert title in Markdown;
2. Support Auto Indent;
3. Support Auto List;
2017-04-04 13:21:51 +08:00
Le Tan
ee6fc69bb1
pop up a menu when inserting image or URL
2017-03-20 20:40:52 +08:00
Le Tan
844b644972
eliminate the compiler warning on Linux
2017-03-17 21:04:51 +08:00
Le Tan
38b18af4ab
refine Chinese translations
2017-03-04 13:49:22 +08:00
Le Tan
238983ed0d
refine all messages
2017-02-27 22:30:35 +08:00
Le Tan
46988f5bef
refine editing shortcuts
...
1. Ctrl+[ behaves exactly like ESC;
2. Ctrl+W should delete the selected text if there has one.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-19 23:48:00 +08:00
Le Tan
336d9ad109
add shortcut Ctrl+O to insert backquotes
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-19 23:47:01 +08:00
Le Tan
f533dd6f95
bugfix: QUrl adds extra %0A to the copied url
...
Let the base class handle inserting urls.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-19 23:46:01 +08:00
Le Tan
59611872d4
use "image" as the default image title
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-14 09:26:48 +08:00
Le Tan
3005d9bf5c
implement Find/Replace logics
...
Supports Find/Replace in both edit and preview modes.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-08 21:09:00 +08:00
Le Tan
eaab820d8b
add find and replace dialog
...
Logic is not implemented yet.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2017-01-01 14:43:28 +08:00