Add VSettingsDialog to show a settings dialog.
For now, VNote supports setting of language.
Add imcomplete Chinese support.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
The syntax highlighter could not recognize image links with spaces in
the URL. When clearing orphan image preview block, we need to clear
thoes blocks which having unmatched image path.
Fix issue: after inserting spaces in the URL of an image link, the
preview block still exists.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
It is said that URL should not contain spaces. Anyway, we use regular
expression syntax highlighting to complement PEG Markdown Highlight.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
Bug: when we press the scroll button to the end and click the first/last
tab, it won't set current tab correctly.
We should not change anything related to current index in handling
tabbarClicked().
Signed-off-by: Le Tan <tamlokveer@gmail.com>
1. h, j, k, l to navigate;
2. gg, G to go to the start and end of the document;
3. Ctrl+D, Ctrl+U to go down and up half page;
Signed-off-by: Le Tan <tamlokveer@gmail.com>
1. Remove Ctrl+ALT Vim mode. Now Ctrl+D will enter the Vim mode
tempararily and only expires after NOT hitting commands for a while;
2. Add d and dd to delete text. 'd2j' is not supported;
3. x will cut the selected text.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
1. Esc or Ctrl + [ to clear selection or exit Vim mode;
2. v to enter visual mode;
3. y to copy selected text; "y2j" is not supported yet;
Signed-off-by: Le Tan <tamlokveer@gmail.com>
Users may add some texts in the image preview block around the image. In
this case, we should just delete the image and insert another preview
block.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
After hitting `Ctrl+D` or keeping pressing `Ctrl+Alt`, VNote will enter Vim
normal pending mode.
1. Support <num>h,j,k,l to move cursor around;
TODO: Design a finite state machine to handle more Vim commands
elegantly.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
1. `Ctrl + W`, `Ctrl + R`, `Ctrl + Q`, `Ctrl + S` for edit and view mode;
2. `Ctrl + E` to toggle expand view;
3. `Ctrl + N` to create note in current directory;
4. `Ctrl + H` in edit mode to delete previous char;
5. `Ctrl + W` in edit mode to delete till the start of previous word;
6. `Ctrl + U` in edit mode to delete till the start of current line;
7. `Tab`, `Shift + Tab` to indent or unindent selected lines;
8. `Ctrl + B`, `Ctrl + I` to make selected text bold or italic;
Signed-off-by: Le Tan <tamlokveer@gmail.com>