Commit Graph

1464 Commits

Author SHA1 Message Date
Felix Häusler
1a92d2de1b Update documentation (#1103) 2019-06-12 11:37:06 +08:00
Ran Luo
b42b7fe9d7 fix: #1100 and #1101 (#1102)
* fix: #1100

* fix: #1101
2019-06-11 23:08:45 +02:00
Ran Luo
80e6a05acc Opti: image icon style (#1098) 2019-06-11 23:08:11 +02:00
Felix Häusler
b6d6b9fe74 fix watcher out of range exception (#1095) 2019-06-11 11:09:21 +08:00
Ran Luo
d838042543 feat: scroll to cursor when switch between tabs (#1089) 2019-06-10 18:41:24 +02:00
Ran Luo
d924b58623 fix: #752 (#1090) 2019-06-10 18:23:50 +02:00
Ran Luo
de17a920a8 Opti: update TOC if needed (#1088) 2019-06-10 18:23:23 +02:00
Ran Luo
7413c569f6 fix: TOC level error (#1087) 2019-06-09 16:22:41 +02:00
Ran Luo
ccccd6881d Fix: #1045 can not select all content in source code mode (#1085) 2019-06-09 15:44:39 +02:00
Felix Häusler
e6e652713a
Find best window to open second-instance files and directories in (#1054)
* Files via command-line are opened in the best window

* Don't show FSW changed notification while saving

* Fixed source-code mode setting and remove focus/typewritter option

* Simplify ignore list

* Fix invalid dialog parameter

* Fix invalid dialog parameter (2)

* Use async message box dialog

* Update documentation

* few changes

* Check timer before calling clearTimeout

* Improve switch style

* Fix style
2019-06-09 15:41:58 +02:00
Ran Luo
164e9a1d87
fix: insert image by image uploader, but can not copy and paste, because it is render the local url (#1070) 2019-06-07 12:31:18 +08:00
Ran Luo
d937fac09b fix: parse inline syntax error (#1072) 2019-06-06 21:49:49 +02:00
Ran Luo
2bfc3d59fe opti: insert last paragraph when the last block is table, code block or no-empty paragraph (#1069) 2019-06-06 21:44:10 +02:00
Ran Luo
f9d9061d9f opti: style of float box (#1067) 2019-06-06 21:26:20 +02:00
Felix Häusler
c364004325
docs: fix readme links (#1066)
[skip ci]
2019-06-06 21:19:33 +02:00
Felix Häusler
4dada5b84d
Drop support for portable Windows binary (#1065)
* Dropped support for portable Windows binary

* Update documentation
2019-06-05 21:39:23 +02:00
Ran Luo
bf39ae0e24 fix: unable to open link (#1063) 2019-06-04 17:07:53 +02:00
Ran Luo
446cec573f opti icon color in light theme (#1062) 2019-06-04 17:05:56 +02:00
Ran Luo
0cfe79fb07 fix: #1046 (#1048) 2019-05-29 00:04:40 +02:00
Ran Luo
c239e99f1b
Refactor inline image to support paste/drop image (#1028)
* feat: image setting

* opti: inline image

* add imageSelectAction

* remove axios from muya

* update image selector

* finish image selector ui

* add load success style

* delete image by click delete icon

* opti structure of image html

* handle arrow key

* enter to edit

* image preview by press space

* handle backspace when the previous element is image wrapper

* update codes for change another PC

* emable select all in input

* handle arrow and backspace key

* create a new paragraph after the last paragraph if its not empty

* handle backspace when the previous element is image wrapper

* handle enter event in image selector

* rewrite auto show image selector

* modify image folder

* copy file to folder

* select image

* handle paste image

* picgo

* guess image path from clipboard

* drag and drop image to Mark Text

* add github uploader

* remove unused codes

* remove unused codes

* rewrite image path auto complete

* support `path` imageInsertAction

* doc: add image uploader doc

* remove debug codes

* set init value in image uploader page

* fix typo

* remove unused codes

* drag web image to Mark Text

* add save notification

* opti uploading process

* fix did not close image selector bug

* check image content type when drag web link image

* fix: unable to preview relative path image.

* emit change event after paste/drop image

* add url map in image selector

* feat: screenshot and auto insert the screenshot image

* update error handler

* feat: use the native screencapture command line on macOs system

* opti: drop image

* fix: handle enter error when cursor is after a image

* fix: hasOwnProperty error

* remove debug codes

* fix: backspace when the previous ele is image

* fix: CI error and optimize some codes

* use hash of file path to generate the copied filename

* change default imageInsertAction to `path`

* fix: typo

* remove some unused codes and opti get image file name

* fix some bugs and opti codes

* update image edit icon

* romove screen capture on Linux and Windows

* fix: conflict

* fix error that can not insert image after the existed image or before existed image
2019-05-26 23:55:13 +08:00
Ran Luo
5b1cd85d95 fix: #1018 paste error when the lastblock is html block (#1042) 2019-05-25 16:20:07 +02:00
Ran Luo
630bc3f498
Update FUNDING.yml 2019-05-24 12:53:13 +08:00
Ran Luo
817e0721f0
Create FUNDING.yml (#1040) 2019-05-24 12:51:35 +08:00
Ran Luo
d06bf6db9d opti: add katex css only when there is math fomular in export html (#1038) 2019-05-23 21:15:59 +02:00
Ran Luo
9eff8248b4 feat: add two event focus and blur of muya (#1039) 2019-05-23 21:09:38 +02:00
Ran Luo
8474a997b0
feat: support prism language alias (#1031) 2019-05-22 21:54:31 +08:00
Ran Luo
a7de21b4a3
opti: put the cursor in bracket after you select link took (#1032) 2019-05-22 21:54:11 +08:00
Felix Häusler
4840c7b646 Update dependencies (#1024) 2019-05-16 09:32:49 +08:00
Ran Luo
8891287bed fix paragraph turn into list bug (#1025)
* fix paragraph turn into list bug

* fix heading style error in list item

* update delete icon
2019-05-13 18:05:39 +02:00
Ran Luo
7dab078a4c fix: toc content vanish bug (#1021) 2019-05-12 17:54:36 +02:00
Felix Häusler
cb3bb6a1ae Update titlebar hover color and remove main listeners (#1020) 2019-05-10 21:26:10 +08:00
Ran Luo
4bd22b6dc5
Mark Text Preference (#1003)
* dynamic change element-ui theme to our themeColor

* add some ui components

* add preference doc

* add json schema file

* update preference.json and schema.json

* reset to old commit

* rename preference file for rebase

* rebase develop

* add setting window

* user electron-store to store preferences

* add themes setting

* add select component

* add markdown pref

* fix: bool and select init value

* add font size setting

* editor pref

* add general preference

* search preference

* update menu after preference changed

* update muya codes

* prevent scale setting window

* fix: titlebar undefined

* update input style

* remove window from windowManager after close setting window

* remove old docs and preference.md

* if a setting window is already created, no need to create another one, just move it to top

* rename openFilesInNewWindow to openFileInNewWindow

* change aidou runtime

* change hideQuickInsertHint by setting page runtime

* change autopair runtime

* change codefont and codefontfamily dynamic

* change default value of autoSave to false

* update bulletListMarker

* fix style error

* add custom titlebar to settings window

* add window shadow for Linux and Windows

* fix Windows build

* fix some typo error

* update doc

* add default menu and setting menu

* fix update menu bug

* fix typo

* remove mac titlebarstyle

* do not need to send titlebarstyle to renderer

* fix typo

* crash Mark Text if no initial preference.json file

* update the path

* add showCustomTitleBar prop

* set empty settings menu on Linux/Windows + workaround
2019-05-09 09:26:28 +08:00
Ran Luo
a74a17118a
fix: #1001 (#1014) 2019-05-09 01:00:26 +08:00
Felix Häusler
980dc8a797 add 'Noto Color Emoji' as default emoji fallback font on Linux (#1009) 2019-05-08 09:26:32 +08:00
Ran Luo
7dee1a4135 update prismjs (#1012)
* update prismjs

* update language.json
2019-05-08 00:13:08 +02:00
Ran Luo
de841c8fdb Update deps (#1011)
* update chokidar to 3.0.0

* update electron to 5.0.1
2019-05-08 00:10:04 +02:00
Felix Häusler
f45ec9d525 use fallback menu (#1008) 2019-05-07 22:17:58 +08:00
Ken Chen
68be52a87d fix: #438 to sort files in folder (#1005)
* fix: #438 to sort files in folder

* Change to use localeCompare as per review
2019-05-05 17:23:01 +02:00
Ran Luo
230c90c920
container block preview and inline syntax error (#992)
* opti: container block preview

* remove unused codes

* rewrite createBlock method

* remove ag-line classname

* just push codes

* hand enter + shift in paragraph

* update import markdown and export markdown

* update part updateCtrl

* update indent code block

* auto indent when press shift + enter

* update thematic break

* update inline syntax update reg

* update list and task list

* update atx heading and setext heading

* update paragraph

* update block quote

* adjust cursor in heading

* update codes

* paragraph turn into feature check

* check copy paste

* update turn into

* fix: delete last # error

* fix: turn setext heading to atx heading error

* fix: delete thematic break error

* paste and copy

* workarond turndown to support soft line break

* fix: unable create table

* modify export markdown

* modify test markdown

* fix: cursor error when update blockquote

* readd cursor check when dispatch changes

* fix: inline math create a lot extra char

* add code cache clear after each render

* fallback to prismjs2
2019-05-04 23:41:46 +08:00
Felix Häusler
77ff23c2c8 refactor main source code (#1006)
* refactor main source code

* fix invalid file cache entries during startup
2019-05-04 22:14:45 +08:00
Ran Luo
b7d51e0d6c Opti: emoji picker style and fix missing emoji error (#985)
* opti: emoji picker style

* fix: emoji render error

* update emoji regexp

* update emoji.json to latest version
2019-05-03 00:00:23 +02:00
Felix Häusler
54776ba45d
Updated vega library (#995) 2019-05-02 15:30:47 +02:00
Ran Luo
fc6c8b45f5
update electron to 5.0.0 (#970)
* update electron to 5.0.0

* update yarn.lock
2019-05-02 09:00:23 +08:00
Felix Häusler
df9d5c8459 Remove git dependency and update documentation (#1000)
* Remove git dependency and update documentation

* Update documentation
2019-05-02 08:59:42 +08:00
Andres
e923286cfb fix typo in readme (#999) 2019-05-02 00:09:50 +02:00
Felix Häusler
040a7bb221
fix karma-electron nodeIntegration value due electron 5 changes (#991) 2019-05-01 23:41:27 +02:00
Felix Häusler
620df2ee69
add tab scrolling and drag&drop (#953)
* add tab scrolling and drag&drop

* fix tab maximal width without side bar

* use dragula instead of vue-draggable

* Update changelog

* fix issues with maximal side bar width

If the side bar is resized more than 50vw then issues occur because the
commited width is not limited to 50vw or if the window is resized.

* reordered tabs after dropping and some improvements
2019-04-28 20:02:05 +02:00
Felix Häusler
3b9c16779d fix: #878 select existing tab (#986) 2019-04-29 01:23:42 +08:00
Felix Häusler
1ab1e853f4 fix source-code background color (#987) 2019-04-29 01:20:50 +08:00
Felix Häusler
bfcad27178 fix typo in flathub metadata (#989) 2019-04-29 01:20:07 +08:00