167 Commits

Author SHA1 Message Date
Le Tan
dba0f27aae refine default styles about word-break 2019-11-19 21:29:08 +08:00
冯文华
fbdc5a5406 editor: add supports for Tencent and gitee image hosting (#1059)
* 将图床单独提取出来成为一个类

* Split the image hosting code into two classes

* change null to parent

* delect empty line,add p_,rename file and so on

* 增加腾讯图床

* add keep image scale and do not replace link

* adjust image hosting name space

* Increase edit box length

* fix some bug and add gitee image hosting

* Specification code
2019-11-16 14:01:32 +08:00
冯文华
a85c39aa26 Image hosting code refactoring (#1032)
* 将图床单独提取出来成为一个类

* Split the image hosting code into two classes

* change null to parent

* delect empty line,add p_,rename file and so on
2019-11-08 22:17:53 +08:00
冯文华
c828ef00c4 editor: add supports for GitHub and WeChat image hosting (#1007)
* 增加了github imagebed的配置窗口

* 已经完成批量上传

* 基本上可以使用

* 基本上可以使用

* 加入进度条

* 就差开始的认证过程

* 差不多就这样了

* 修改中文的readme

* 修改了一下readme

* 找到不能传gif的问题所在

* 修改gif不能上传的bug

* 增加图床使用说明限制

* 增加一些注释

* 将进度条delete调

* 增加大文件上传错误提示

* 修复cancel的问题

* 已知问题: 上传多张图片时, 较大的图片的进度条不一定能出来

* 将进度条弹出来的时候修改成1s后

* 加入wechat设置, 改成QTabWidget

* wechat设置成功

* 成功获取了token

* 先保存一下, 文件上传有bug,替换好像也有bug

* 解决了boundary的引号导致图片不能上传的问题

* 注释掉一些输出

* 加入ip不在白名单的提示

* 增加图片大小大于1M的提示

* 将ip地址设置进剪切板, 并显示在弹框上

* 添加markdown转微信的url设置

* 增加自动打开openwrite的链接, 修复文件大小应为1024*1024

* 改成clear

* 将类型校验放到开始的地方

* 加入openwrite默认为空的判断

* Delete github-imagebed.md

* Apply suggestions from code review

Co-Authored-By: Le Tan <tamlokveer@gmail.com>

* Apply suggestions from code review

Co-Authored-By: Le Tan <tamlokveer@gmail.com>

* Apply suggestions from code review

Co-Authored-By: Le Tan <tamlokveer@gmail.com>

* 根据要求修改了一下

* changed indentation and deleted empty line

* add some tr()

* Delete .DS_Store

* delete some comment and use CamelCase

* resolved sth
2019-11-04 09:59:55 +08:00
Le Tan
151481cfca add config [web]/enable_code_block_copy_button 2019-06-24 20:23:50 +08:00
Le Tan
09df438f2e Editor: bug fix for smart table caused by QString.arg() 2019-06-10 20:45:33 +08:00
Le Tan
13d0c60e59 add config table_format_interval for smart table 2019-06-04 20:38:10 +08:00
Le Tan
de1e6ed3fa Revert "change default MathJax CDN"
This reverts commit 802a38b86c61f470efe9767d494142817cd0141b.

It seems that jsdeliver is not safe enough.
2019-04-18 20:34:26 +08:00
Le Tan
802a38b86c change default MathJax CDN 2019-04-18 20:10:12 +08:00
Le Tan
b122632ad4 refine default configs 2019-04-09 20:16:31 +08:00
Le Tan
93d2001519 support N to view current note's information in Captain mode 2019-04-03 21:53:04 +08:00
Le Tan
8871f56368 add config global/sync_note_list_to_current_tab to auto locate to current tab in note list 2019-03-28 19:01:33 +08:00
Le Tan
5fff26a8b6 add user track logics 2019-01-25 09:24:09 +08:00
Le Tan
e06ce87710 add config enable_smart_table to control whether format tables automatically 2019-01-15 20:41:22 +08:00
Le Tan
dd12a6cdf3 change default openGL option 2018-12-15 12:54:44 +08:00
Le Tan
1a8820eb02 change default OpenGL and startup page type 2018-12-10 21:56:57 +08:00
Le Tan
64960cc3c5 editor: support prepend_dot_in_relative_path config 2018-12-03 19:51:04 +08:00
Le Tan
12d5bb27ef markdown: support WaveDrom diagram in language wavedrom code block
In place preview is not supported.
2018-11-30 21:01:31 +08:00
Le Tan
28eb48cc2e PegParser: support ~~~ as fenced code block 2018-11-22 20:31:47 +08:00
Le Tan
1951b30b11 OpenGL: add option in settings on Windows to specify OpenGL implementation 2018-11-07 20:31:53 +08:00
Le Tan
64d2aab76a TagExplorer: support spliting file list out 2018-11-03 20:45:49 +08:00
Le Tan
73b1db7a52 NotebookPanel: support spliting file list out 2018-11-03 20:03:12 +08:00
Le Tan
a21a1e723a Editor: support specifying font via settings to override style 2018-11-02 19:54:23 +08:00
Le Tan
aeb2263be3 Editor: support auto scrolling cursor line into center 2018-10-30 20:47:41 +08:00
Le Tan
43fcdd502a Editor: support Ctrl+Shift+V to paste as plain text 2018-10-12 20:19:32 +08:00
Le Tan
5cc8d6c8f1 MdEditor: support downloading images to local when Parse&Paste 2018-09-30 23:00:58 +08:00
Le Tan
574aa4e70a KeyboardLayout: support specifying keyboard layout mappings
Captain mode now supports different layout mappings.
2018-09-29 18:37:50 +08:00
Le Tan
9b83d50116 fix
- Selection style in mdhl does not work on macOS. Choose another Vim
visual line background.
- Disable multiple keyboard layout support on macOS.
- Make close_before_external_editor work when opening with default
program.
2018-09-21 19:41:07 +08:00
Le Tan
68dc2425a9 Editor: support highlighting tabs 2018-09-18 19:27:42 +08:00
Le Tan
62c0f218df MdTab: focus bug fix and find-in-page in expanded preview mode 2018-09-12 20:35:43 +08:00
Le Tan
a055d6e935 Editor: highlight matches of full-text search result in page 2018-09-12 20:34:43 +08:00
Le Tan
647807a918 Editor: refine find logics 2018-09-10 20:26:39 +08:00
Le Tan
c4c7f99ca7 suport Quick Access by Ctrl+Alt+I 2018-09-06 21:11:55 +08:00
Le Tan
3d188fa648 add config insert_new_note_in_front 2018-09-06 21:08:46 +08:00
Le Tan
060c02297b LivePreview: support bidirectional smart live preview 2018-09-05 20:16:05 +08:00
Le Tan
ffa413fa26 Captain: fix captain mode in diffrent keyboard layout 2018-09-02 15:21:25 +08:00
Le Tan
68dd95591d vim: add x for exemption key 2018-08-31 20:22:42 +08:00
Le Tan
cda48a612a LivePreview: smart live preview 2018-08-26 14:12:02 +08:00
Le Tan
94828a65ad Vim: support specifying leader key via [editor]/vim_leader_key 2018-08-24 20:13:35 +08:00
Le Tan
33f4631f91 EditWindow: support middle click to close a tab 2018-08-15 19:55:02 +08:00
Le Tan
4db6c1cc7b move Vim option from menu to settings 2018-08-10 20:46:03 +08:00
Le Tan
4fbe2d87b7 MdEditOperations: support auto block quote 2018-08-09 20:00:42 +08:00
Le Tan
2e7b2e1e5d TagPanel: add two configs to control the behavior
- max_tag_label_length
- max_num_of_tag_labels
2018-07-27 21:04:50 +08:00
Le Tan
b4554e1be8 MainWindow: remember expanded state 2018-07-24 21:03:31 +08:00
Le Tan
48db50fd5e PegHighlighter: refine fast parse
- Fast parse block range: look upward till the indentation is 0;
- Rehighlight all the fast-parsed blocks explicitly;
- Do not reset block user state by default;
- Pre highlight single format blocks to avoid jitter of line height;
2018-07-17 20:43:28 +08:00
Le Tan
59efed94f3 config: add [global]/image_name_prefix for inserted images 2018-07-15 20:06:05 +08:00
Le Tan
bb308a06d1 PegMarkdownHighlighter: multi-threads highlighter support 2018-07-12 20:19:23 +08:00
Le Tan
d9c8051fa3 editor: Ctrl+; to insert inline code, Ctrl+J/K to scroll page 2018-07-07 17:57:00 +08:00
Le Tan
5ebc7b8243 Outline: support increase/decrease the expanded level
Add config [global]/outline_expanded_level (6 by default).
2018-07-04 19:07:43 +08:00
Le Tan
bc932fa913 CaptainMode: Y to focus to edit area 2018-07-03 20:27:35 +08:00