Le Tan
9d975c4bdb
Refine Ctrl+B and Ctrl+I
...
If there are ** or * after current cursor, just skip them or it when
hitting Ctrl+B or Ctrl+I.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-21 21:39:09 +08:00
Le Tan
3ce9f02007
clear corrupted image preview block
...
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>
2016-12-21 21:37:33 +08:00
Le Tan
26016dd44a
support Vim mode key bindings
...
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>
2016-12-20 22:23:41 +08:00
Le Tan
d2f61bc605
add shortcuts
...
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>
2016-12-18 22:26:01 +08:00
Le Tan
87c668bc67
fix Hoedown's toc
...
Hoedown will treat '_' in title as '<em>'.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-17 12:57:06 +08:00
Le Tan
a22bf1059d
preview image links
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-17 12:38:01 +08:00
Le Tan
e069305b23
menu and actions text normalization
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-13 21:41:17 +08:00
Le Tan
5ff46d6237
implement insert image menu action
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-12 23:14:53 +08:00
Le Tan
66c1d543c2
synchronize current header in read and edit mode
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-12 21:58:53 +08:00
Le Tan
a884991150
refactor: add VMdEdit to inherit VEdit for markdown edit
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-11 14:42:01 +08:00
Le Tan
6a745df2eb
combine save and discard tool buttons
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 18:08:03 +08:00
Le Tan
a0a558d62d
change the size of the down-arrow in VNotebookSelector
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 17:49:14 +08:00
Le Tan
68e6a214e9
combine view panel actions in toolbar
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 17:24:33 +08:00
Le Tan
f36ed97694
change stylesheet
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 16:41:13 +08:00
Le Tan
b0ec4c312a
support import existing notebook
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 15:41:46 +08:00
Le Tan
5d028e29fb
change icon
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 13:03:57 +08:00
Le Tan
67c1f69a5b
disable context menu on QMainWindow to prevent hiding the toolbar
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 11:28:10 +08:00
Le Tan
edca922f5e
support avatar
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-10 11:21:08 +08:00
Le Tan
8f866f34ff
stylesheet
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-09 21:08:38 +08:00
Le Tan
3ecae78262
add tooltip in VOutline
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 23:20:19 +08:00
Le Tan
8b26e4424d
use bold to identify current tab in corner widget
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 23:17:45 +08:00
Le Tan
f0428f7b90
change markdown.css
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 23:11:14 +08:00
Le Tan
9413ef875b
modify stylesheet
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-08 22:42:34 +08:00
Le Tan
a3b83b7f81
dynamically show or hide left corner tab list widget
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-07 22:53:02 +08:00
Le Tan
6c72267788
add padding to QTreeWidgetItem and QListWidgetItem
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-07 22:01:58 +08:00
Le Tan
e32ee1fa90
refactor: VNotebookSelector
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-07 13:08:06 +08:00
Le Tan
9a197b5087
refactor: add VNotebookSelector for notebook management
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-04 22:26:48 +08:00
Le Tan
fe4fb25105
VOutline: change current anchor when current item changed
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-03 20:26:05 +08:00
Le Tan
46c8025215
enable multiple selection in file list
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-03 17:42:09 +08:00
Le Tan
02d5300821
support copy and paste directory
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-12-03 11:42:11 +08:00
Le Tan
787d54c808
update tab list menu dynamically when menu show up
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-30 23:38:29 +08:00
Le Tan
e7c42ba5be
refactor: add VFile and VDirectory
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-30 22:58:00 +08:00
Le Tan
8e8d69c85f
refactor: VNote and VNotebook
...
regression: notebook renaming logics does not work for now
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-26 12:45:29 +08:00
Le Tan
013b6cecc2
install a message handler
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-24 22:49:31 +08:00
Le Tan
7c69f80f17
split setupUI() in VMainWindow
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-24 22:23:50 +08:00
Le Tan
f37d1f57a8
fix regular expression in image-insert dialog
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-23 21:39:20 +08:00
Le Tan
50db1a63ba
support single instance app
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-22 21:40:51 +08:00
Le Tan
3722e6cb71
close all files before closing app
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-21 22:07:01 +08:00
Le Tan
1ed324fd20
regexp to validate image title and image name
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 23:16:10 +08:00
Le Tan
ac2552603b
clear unused images when finishing editing markdown
...
1. Clear existing images deleted by this edit;
2. Clear newly inserted images which were deleted before saving the
file;
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 21:48:07 +08:00
Le Tan
0298b8bfe1
change the look of the notebook combobox
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 16:15:27 +08:00
Le Tan
e77c10df36
add icon for notebook and directory items
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 13:22:35 +08:00
Le Tan
de8b54afa7
add elapsed time to the image name
...
Add elapsed time to the image name when inserting an image.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 11:29:54 +08:00
Le Tan
3ae3462597
save/restore window state and geometry
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-20 11:12:15 +08:00
Le Tan
ed785e12d3
a more comfortable context menu in VFileList
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-19 09:55:43 +08:00
Le Tan
85d9456f02
support copy and paste notes
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-18 22:25:14 +08:00
Le Tan
810d2f02f4
judge if equal in VOutline when updating curHeader
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 23:01:06 +08:00
Le Tan
4fcdba7a11
display star in tab if modified
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 22:29:46 +08:00
Le Tan
af38e491ba
change corner widget icons
...
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 22:09:01 +08:00
Le Tan
eee2d5342a
fix outline navigation in edit mode
...
Jump to EndOfBlock instead of EndOfLine.
Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-11-16 22:02:26 +08:00