157 Commits

Author SHA1 Message Date
Le Tan
60635fe5e7 export: support custom background, style 2018-02-23 19:54:07 +08:00
Le Tan
3ce7ef28c1 bug-fix: make path before exporting PDF 2018-02-16 13:35:24 +08:00
Le Tan
6d24f7e92b bug-fix: remove unnecessary NULL check before delete 2018-02-13 22:18:38 +08:00
Le Tan
8ff520d0fd refactor export 2018-02-13 22:10:48 +08:00
Le Tan
bc9dd643fc support reset layout 2018-02-06 20:37:38 +08:00
Le Tan
4bcb60e903 add config enable_auto_save which is false by default 2018-02-05 22:26:38 +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
cdf3eb537b add base URL in setHtml() to enable it access local files 2018-01-21 15:32:27 +08:00
Le Tan
28e4818c26 move custom web zoom factor to Read/Edit setting tab 2018-01-18 19:50:25 +08:00
Le Tan
14df9e6e90 refine copy HTML logics 2018-01-10 10:39:45 +08:00
Le Tan
324d7cd444 VWebView: add css_color_mapping in palette file for copying HTMl
If the mapping is specified, we will replace the foreground color with
the mapping when the content is copied.
2018-01-05 19:36:40 +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
db73ab6dfd VWebView: fix img src after copied
Add config web/fix_img_src_when_copied to control the behavior.
2017-12-29 18:25:04 +08:00
Le Tan
2798ab8ea0 support reseting VNote in settings
Notebooks information will not be reset.
2017-12-26 19:26:52 +08:00
Le Tan
c0c4b8602a add VTipsDialog to display hints about some actions 2017-12-22 19:33:42 +08:00
Le Tan
8d6fc6cb4f VInsertImageDialog: fetch image from clipboard
Support `Ctrl+'` to insert image.
2017-12-12 09:46:59 +08:00
Le Tan
37c692b090 bug-fix: may download NULL image 2017-12-09 17:55:43 +08:00
Le Tan
2933e0f44c v_white theme: fix QFindReplaceDialog's title style in Gnome 2017-12-09 16:39:51 +08:00
Le Tan
5ca9ea6b92 remove focus rectangle on Mac 2017-12-09 16:15:01 +08:00
Le Tan
1410c16280 add v_pure theme 2017-12-09 12:59:39 +08:00
Le Tan
bda61a994c support overriding icon color in theme 2017-12-06 20:35:01 +08:00
Le Tan
262c6acfd9 support themes 2017-12-03 16:14:13 +08:00
Le Tan
94260b3df8 VSnippet: support auto indent 2017-11-24 19:57:23 +08:00
Le Tan
8ab8b3d83a bug-fix
- Set proper defalut focus of VInsertLinkDialog;
- Fix bug in snippet when selection mark is empty;
- Focus editor after double-click applying a snippet;
2017-11-20 19:29:14 +08:00
Le Tan
6ac33d2bd0 support snippets
Shortcuts are not supported yet.
2017-11-11 08:09:22 +08:00
Le Tan
93ba677116 magic-word: support overriding magic words
- Add %dt%, %note%, and %no%;
- Support overriding magic words with simple literal value;
2017-11-07 19:51:39 +08:00
Le Tan
78a86cddc0 support note template
VNote will scan files in the template folder in the config folder as
template.

Template supports magic word.
2017-11-06 21:47:38 +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
34aa9e0083 use empty title by default when inserting new image 2017-10-17 19:49:48 +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
2b299ff9b7 refine heading sequence
1. add toolbar button to enable/disable heading sequence of current
note temporary;
2. Support independent configuration for external files;
3. Change enable_heading_sequence configuration to heading_sequence_type;
2017-10-13 07:23:25 +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
893c0b2823 bug-fix: use completeBaseName() when adding sequence to file name
- When adding attachments, if the name conflicts, we add sequence after
the base name. "abc.tar.gz" to "abc_001.tar.gz".
- When handling notes and folders, if the name conflicts, we add
sequence after the complete base name. "abc.5.9.1.md" to
"abc.5.9.1_001.md".
2017-10-09 21:25:30 +08:00
Le Tan
93a218655d refine Chinese translations 2017-10-01 10:37:17 +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
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
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
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
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
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
a36b512e94 do not allow changing type of note 2017-09-16 14:55:42 +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