694 Commits

Author SHA1 Message Date
Le Tan
26d14f81d5 bug-fix: findFirstVisibleBlock() return invalid block when fails
A huge block as the last block may lead to failure to find first visible
block.
2017-09-16 15:07:31 +08:00
Le Tan
2b78711eb4 confirm when cleaning up unused images
Add config confirm_images_clean_up.
2017-09-16 14:55:42 +08:00
Le Tan
cdcab4884a use HGMarkdownParser to fetch image links from Markdown file 2017-09-16 14:55:42 +08:00
Le Tan
35fa0a46f6 add recycle bin to each notebook 2017-09-16 14:55:42 +08:00
Le Tan
4626673925 support created_time of notebook and folder 2017-09-16 14:55:42 +08:00
Le Tan
5c038e1f76 support Markdown-it option configs 2017-09-16 14:55:42 +08:00
Le Tan
6addbbfedb remove CloseNote tool bar button 2017-09-16 14:55:42 +08:00
Le Tan
156a73ff8c vfilelist: add two context menu items 2017-09-16 14:55:42 +08:00
Le Tan
f178b1c634 support custom base level for heading sequence by heading_sequence_base_level 2017-09-16 14:55:42 +08:00
Le Tan
ae706fb066 add created_time and modified_time to file 2017-09-16 14:55:42 +08:00
Le Tan
7a384b1592 change default style and config tool bar icon size by tool_bar_icon_size 2017-09-16 14:55:42 +08:00
Le Tan
a36b512e94 do not allow changing type of note 2017-09-16 14:55:42 +08:00
Xianzhong Wang
1ae30b645e Fix the serious bug of pressing Y in vim normal mode (#42) 2017-09-16 14:34:27 +08:00
Le Tan
84d1648fe4 bug-fix: move cursor to the end after creating new note
focusWidget() is NULL in Linux.
2017-09-12 21:16:47 +08:00
Le Tan
7fd2273aad support line number in code block in both read and edit mode 2017-09-12 20:28:40 +08:00
Le Tan
e9238c921e support color column in fenced code block by config color_column 2017-09-12 08:46:39 +08:00
Le Tan
2eb6476c3d support auto heading sequence by config enable_heading_sequence 2017-09-11 19:49:30 +08:00
Le Tan
ed4044061f bug-fix: move to the end of document after inserting title when creating a new note 2017-09-11 19:49:00 +08:00
Le Tan
07e8f27776 optimize VImagePreviewer by flags 2017-09-08 21:41:46 +08:00
Le Tan
e55b0af00e bug-fix: QTextDocument.clearUndoRedoStacks() will crash in VImagePreviewer 2017-09-08 21:41:19 +08:00
Le Tan
f050d7d814 support custom mode to open a note by config note_open_mode 2017-09-08 21:40:55 +08:00
Le Tan
d2ef9608fc bug-fix: use platform-specific text of QKeySequence in context menu 2017-09-08 21:40:31 +08:00
Le Tan
d6ca4245d9 minor-fix: VFileList and VNotebookSelector
1. Bug fix: after deleting last folder, the file list won't be cleared;
2. Move cursor one line down after inserting title automatically;
3. Prompt user to create a root folder after creating a notebook;
4. Autocomplete the folder name from the chosen path when creating a
notebook;
5. Add "Open Notebook Location" action in the context menu of
VNotebookSelector;
2017-09-08 21:40:11 +08:00
Le Tan
4ad79e4d92 vim-mode: <leader>w to save note 2017-09-07 20:35:41 +08:00
Le Tan
3daa463a6d refactor VDirInfoDialog and VNewDirDialog 2017-09-07 20:35:01 +08:00
Le Tan
59d0e82e66 refactor retrivePath to fetchPath 2017-09-07 20:33:38 +08:00
Le Tan
803af89dde support inserting note name as title when creating a note 2017-09-07 20:32:29 +08:00
Le Tan
72970cd404 support reloading content of notebook and folder from disk 2017-09-06 19:23:58 +08:00
Le Tan
f33c7f86d3 minor-fix: Vim mode and VImagePreviewer
1. In Vim mode use the `undo()` and `redo()` slots of VMdEdit instead of
QTextDocument;
2. VImagePreviewer will clear the undo/redo stacks if it is empty
before;
3. Remove setLineDistanceHeight();
2017-09-06 19:23:14 +08:00
Le Tan
7a0a2c552b add shortcuts for note and folder management 2017-09-05 20:54:15 +08:00
Le Tan
36a0d1dd7e support custom line distance height by line_distance_height config 2017-09-05 20:54:15 +08:00
Le Tan
9523168fc3 vim-mode: support S, { and }
Thanks to xianzhon@github
2017-09-05 20:54:15 +08:00
Le Tan
bb7e6e196c make markdown highlight interval configurable via markdown_highlight_interval 2017-09-05 20:54:15 +08:00
Le Tan
639d1cb9e9 refactor VCodeBlockHighlightHelper
1. Use QVector instead of QList;
2. Use cache for highlight result;
2017-09-05 20:54:15 +08:00
Le Tan
c3408769b0 refactor VImagePreviewer 2017-09-05 20:54:15 +08:00
Le Tan
8b1d7e9841 bug-fix: Vim mode Paste action
Move cursor to the right position after paste.
2017-08-30 09:11:03 +08:00
Xianzhong Wang
78bb2d5c41 [bugfix] When paste from register, discard selected texts first (#37)
* [bugfix] When paste from register, discard selected texts first

* Additional fix for the paste command to follow vim spec

* Refactor the code for paste command to make it clear
2017-08-29 21:42:32 +08:00
Le Tan
73630448a6 move vconfig to a local variable 2017-08-29 09:40:28 +08:00
Le Tan
e1befc1038 bug-fix: do not free userSettings and defaultSettings in destructor
Freeing userSettings and defaultSettings in the destructor of
VConfigManager will cause crash in macOS.
2017-08-26 21:50:14 +08:00
Le Tan
b47982ab25 macOS: disable minimizing to system tray
In macOS, there is a "Quit" menu item in the Dock context menu. We can't
not distinguish it from the close button in the title bar. For now, we
just disable the ability to being minimized to system tray.
2017-08-26 21:04:36 +08:00
Le Tan
98ef7c2cfa fix fcitx input issue with linux appimage 2017-08-25 21:46:16 +08:00
Le Tan
1594ab203d change default Vim insert and normal background 2017-08-22 22:21:49 +08:00
Le Tan
1e6d5c533f refine README 2017-08-22 22:05:59 +08:00
Le Tan
c177dd89cb refine README 2017-08-22 21:54:41 +08:00
Xianzhong Wang
dc98b5ef00 [fix] show the default filename in 'Export As' dialog (#35) 2017-08-22 20:28:58 +08:00
Le Tan
1d0c80d5b5 use another source of qt5.7 2017-08-22 20:19:15 +08:00
Le Tan
5c6c6ccb36 package as AppImage for Linux 2017-08-22 10:15:01 +08:00
Le Tan
0a7e92483c try debian packaging 2017-08-20 14:16:36 +08:00
Le Tan
6c06e000af hoedown 2017-08-19 21:24:23 +08:00
Le Tan
94b671f505 vim-mode: support J and gJ to join lines 2017-08-18 19:24:15 +08:00