672 Commits

Author SHA1 Message Date
Le Tan
94c5934f2d bug-fix: do not change mode when clicking an item in VFileList to open an already opened note 2017-10-09 19:41:57 +08:00
Le Tan
01acd03a71 move some configs from vnote.ini to session.ini
VNote now will first check vnote.ini from the executable folder.
2017-10-07 16:37:13 +08:00
Le Tan
ace96c7ce2 support compact mode in main window
Add enable_compact_mode config.
2017-10-06 22:45:42 +08:00
Le Tan
2f61ded269 migrate to Qt 5.9.1 2017-10-03 08:53:08 +08:00
Le Tan
b3c8213e1a release v1.9 v1.9 2017-10-02 10:38:48 +08:00
Le Tan
93a218655d refine Chinese translations 2017-10-01 10:37:17 +08:00
Le Tan
95548a68e0 refine icons 2017-09-30 20:53:41 +08:00
Le Tan
06fc4d5831 support custom code block style of highlightjs
Add two config:
- template_code_block_css
- template_code_block_css_url
2017-09-30 19:01:21 +08:00
Le Tan
3724eb35dd refactor VDirectoryTree
- Refine folder deletion logics;
- Refine folder copy/paste logics;
- Add folder sort logics;
2017-09-30 09:51:40 +08:00
Le Tan
f9080db71c minor-fix: scale images keeping aspect ration when previewing images in dialogs 2017-09-29 19:57:52 +08:00
Le Tan
18ed9b761a VAttachmentList: check missing attachments when showing the list 2017-09-29 19:57:21 +08:00
Le Tan
58e7cdca4b refactor VFileList
- Refine note deletion logics;
- Refine note copy/paste logics;
- Refine note sorting logics;
2017-09-29 19:56:38 +08:00
Le Tan
4668bd581a double click on a tab to close it
Add configuration double_click_close_tab.
2017-09-26 21:30:35 +08:00
Le Tan
ffd0cc8e6e refine DocType
- Use *.html suffix for rich text file;
- For unknown DocType, open it using system's default app;
- Add "Open Via External Program" item in context menu of VFileList;
2017-09-26 19:28:11 +08:00
Le Tan
fb4e818e20 refine attachment list
- Add shortcut Ctrl+E A to show attachment list;
- Add Vim-like navigation shortcut to attachment list;
- Support drag-and-drop to add attachments;
- Add bubble to indicate the number of attachments at the right top corner;
2017-09-26 19:27:47 +08:00
Le Tan
e5cd014762 support recycle bin folder for extern files
1. Add external_recycle_bin_folder config;
2. By default, each external file will use _v_recycle_bin in the same
directory as its recycle bin folder to hold deleted images;
2017-09-26 19:27:11 +08:00
Le Tan
6f1cab39ba update highlight.js with more complete language support 2017-09-25 19:42:58 +08:00
Le Tan
197e064a1a bug-fix: VFile and document() may have different modification state 2017-09-24 14:46:32 +08:00
Le Tan
37058b04df bug-fix: add attachment name check 2017-09-24 14:39:19 +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
d955dedcb7 add config mathjax_javascript for Mathjax location and configuration 2017-09-24 10:18:55 +08:00
Le Tan
da64b8c12f add config confirm_reload_folder to check whether prompt for uer when reloading folder 2017-09-24 09:46:30 +08:00
Le Tan
d20dc4a0b0 bug-fix: image links in reference format will cause crashes 2017-09-23 14:56:53 +08:00
Le Tan
b04a44f82d vim-mode: bug-fix for s, d, c in visual mode 2017-09-23 10:38:50 +08:00
Le Tan
73ede805d1 bug-fix: respect the open mode even if the file has been opened 2017-09-23 09:42:54 +08:00
Le Tan
01788a5301 support attachments
Support attachments to internal note file.

- Add/Delete/Clear/Sort;
- Support custom attachment folder for each notebook (read-only);
- Support renaming attachment;
2017-09-22 23:30:49 +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
eb24360aa9 vim-mode: fix Y and D action in Visual mode 2017-09-17 16:39:50 +08:00
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