81 Commits

Author SHA1 Message Date
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
d421a8577c support Universal Entry
`Ctrl+G` to call out the Universal Entry.
2018-03-28 19:35:38 +08:00
Le Tan
a2ee5413a1 support search
- Ctrl+E C to toggle the search dock;
2018-03-13 20:45:44 +08:00
Le Tan
9710659a00 support word count 2018-03-06 19:33:40 +08:00
Le Tan
8ff520d0fd refactor export 2018-02-13 22:10:48 +08:00
Le Tan
a32fb015e1 add symlink vnote to VNote in Unix 2018-02-04 10:14:54 +08:00
Le Tan
878a272777 add VTreeWidget with simple search and convert VDirectoryTree to it 2018-02-03 16:33:00 +08:00
Le Tan
0f6e9e1905 refactor VListWidget 2018-02-03 12:09:57 +08:00
Xianzhong Wang
74cb54e02b [function] support advanced search in file list (#121)
spec:
when focus in file list,
1. type any character or digit will trigger the advanced search mode
2. type Esc to exit the search mode
3. type Enter or mouse select will also exit the search mode
2018-01-29 06:03:44 +08:00
Le Tan
b927a525e2 decouple VVimIndicator and VVimCmdLineEdit 2018-01-19 19:29:34 +08:00
Le Tan
8dfcda0e51 add Cart to collect notes for further processing 2018-01-16 21:05:35 +08:00
Le Tan
044b3d3c29 add VLineEdit which supports Ctrl+H/W/U shortcuts 2018-01-04 20:16:12 +08:00
Le Tan
b19b1d8079 minor-fix
- Support repeat in title jump in read mode;
- Trim input in VInsertLinkDialog;
- Rename VLineEdit to VMetaWordLineEdit;
2018-01-04 19:54:32 +08:00
Le Tan
2f1971476d VMdEditor: support copy selected text as HTML 2018-01-04 13:27:42 +08:00
Le Tan
b12f738edc remove VAvatar and use a tool bar button instead 2017-12-22 19:33:54 +08:00
Le Tan
c0c4b8602a add VTipsDialog to display hints about some actions 2017-12-22 19:33:42 +08:00
Le Tan
1a62ca15e7 attachment_list: fix editor style 2017-12-15 20:06:02 +08:00
Le Tan
bda61a994c support overriding icon color in theme 2017-12-06 20:35:01 +08:00
Le Tan
d49433f91d bug-fix: fix heading toolbar button 2017-12-04 20:37:02 +08:00
Le Tan
262c6acfd9 support themes 2017-12-03 16:14:13 +08:00
Le Tan
4ec340a403 refactor preview logics
Use block user data to store preview info.
2017-11-29 21:45:20 +08:00
Le Tan
3e7fa998ee bug-fix: retry to set clipboard after failure on Windows
On Windows, set data to clipboard may fail due to operating system's
design. We will repeatedly retry untin succeed.
2017-11-25 09:20:29 +08:00
Le Tan
0a97b2480d snippet: support Ctrl+E S to insert snippets 2017-11-14 21:40:39 +08:00
Le Tan
f032dede34 replace QToolBox with VToolBox 2017-11-12 13:15:12 +08:00
Le Tan
6ac33d2bd0 support snippets
Shortcuts are not supported yet.
2017-11-11 08:09:22 +08:00
Le Tan
9de40e4d78 replace VPlainTextEdit with VTextEdit 2017-11-03 19:49:42 +08:00
Le Tan
404b5329a1 replace VEdit and VMdEdit with VEditor and VMdEditor 2017-10-26 19:36:12 +08:00
Le Tan
5abcb1a8d9 add VPlainTextEdit with custom layout
- Support block images;
- Support line number;
- Do NOT support line distance height due to constraint of QPlainTextEdit.
2017-10-24 20:00:24 +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
787c61a5af support meta word
- Add VLineEdit as a QLineEdit with meta data support;
- support custom magic words through [magic_words];
- add %help% for all magic words information;
2017-10-17 19:47:57 +08:00
Le Tan
183b24915a refactor outline logics 2017-10-13 07:10:04 +08:00
Le Tan
598e8144bb support custom startup pages
- Support continuing where user left off on startup;
    - Support recovering the edit/read mode and the anchor position;
- Support opening user-specified files on startup;
- Add config startup_page_type, startup_pages, and last_opened_files;
2017-10-11 10:44:18 +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
2b78711eb4 confirm when cleaning up unused images
Add config confirm_images_clean_up.
2017-09-16 14:55:42 +08:00
Le Tan
c3408769b0 refactor VImagePreviewer 2017-09-05 20:54:15 +08:00
Le Tan
e33ff1fede add Info action to tab context menu 2017-07-17 10:10:18 +08:00
Le Tan
34afc2731d help-menu: add update check 2017-06-23 18:10:04 +08:00
Le Tan
5c17f74641 add indicator in status bar for edit tab 2017-06-21 20:01:33 +08:00
Le Tan
d909091f46 vim-mode: add an indicator for Vim status in status bar 2017-06-19 15:56:12 +08:00
Le Tan
eba2556a3a vim-mode: support DELETE action
Actions related to `d` and `x`.
2017-06-14 17:25:24 +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
cc1faba5d2 remove Q_COMPILER_INITIALIZER_LISTS flag to eliminate macro-redefinition warnings 2017-06-03 19:53:47 +08:00
AlbinZhang
77bbf7f907 fix compilation error with MSVC2013 (#15)
MSVC2013 support C99 incompletely, which causes build errors for C codes in peg-highlight module.

1. Move variable declarations at the front of code block;
2. Add compilation flag `Q_COMPILER_INITIALIZER_LISTS`;
2017-06-02 08:58:09 +08:00
Le Tan
306b3cca92 refactor VEditTab
1. Make VEditTab an abstract class.
2. Use VMdTab inheriting from VEditTab for Markdown file.
3. Use VHtmlTab inheriting from VEditTab for Html file.
2017-05-30 21:05:24 +08:00
Le Tan
0131569c02 support exporting note as PDF file
TODO: Currently the exported PDF does not have the outline which is
needed to fix via third-party utils.
2017-05-22 22:34:53 +08:00
Le Tan
871c53743f add print action item
Print support of QWebEngineView is incomplete in Qt5.7. Need to figure
out another way to print documents.

Just hide the action Item.
2017-05-20 13:49:24 +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
022d3ae2f7 add Edit to context menu in read mode to edit current note 2017-04-20 22:46:49 +08:00
Le Tan
44257913f7 support code block syntax highlihgt in edit mode
In edit mode, highlight code blocks via parsing the result of HighlightJS.
We only highlight fenced code blocks by token-matching.

Support custom style in MDHL file.
2017-04-19 15:08:26 +08:00