Commit Graph

113 Commits

Author SHA1 Message Date
Felix Häusler
539bdd40ac
Update dependencies (#3213) 2023-08-03 22:20:35 +08:00
Felix Häusler
2bb405a03e
Replace node-spellchecker with Electron builtin spell checker (#2895)
* Replace node-spellchecker with Electron builtin spellchecker

* Fix word match unit tests

* Fix issue to enable spell checker if it was disabled at startup

* Fix spell checker was always disabled on macOS

* Code cleanup

* Fix circular dependency in Muya

Fix circular dependency between config/index.js and utils/index.js in Muya.
2022-03-27 11:27:39 +08:00
Felix Häusler
cb57af4b2a
Refactor menu actions and shortcut handling (#3032)
* Refactor menu actions and shortcut handling

* Remove duplicated command id

* Update docs
2022-03-27 10:54:02 +08:00
Kiyoka Nishiyama
92932a1869
fix: #703 invalidate image cache on demand (#2875) 2022-01-24 00:20:40 +01:00
Jefferey Neuffer
0954f70d71
Add zoom persistence (#2858) 2022-01-11 19:32:43 +01:00
He Linming
17e2860d41
feat: switch tabs using alt-#num (#1975) 2020-06-07 01:10:12 +02:00
Felix Häusler
593ca5f83b Refactor IPC selection messages (#1833) 2019-12-31 23:00:04 +08:00
Felix Häusler
4f8d0c1a93
Support final newline options (#1595)
* Support final newline options

* Fix docs and add command
2019-11-06 18:52:47 +01:00
罗冉
e0ac7dbad7 modify the event prefix between main and renderer process 2019-11-05 13:36:39 +08:00
Felix Häusler
f142dea160
Add command palette and quick open dialog (#1493)
* Add command palette and quick open dialog

* Fix format and paragraph commands

* Adjust style and allow to reset list/quote

* Adjust UI and fix some issues

* Add custom placeholder
2019-11-04 19:50:50 +01:00
Felix Häusler
e5dc8f1540 Export with options (#1511)
* Export with options

* Fix function names and add documentation

* Narrow scrollbar
2019-10-25 09:03:33 +08:00
Felix Häusler
1b9ee786be Fix lint error (#1492) 2019-10-16 09:17:31 +08:00
Felix Häusler
929ff58027
Fix EOL menu state (#1487) 2019-10-15 19:44:29 +02:00
Ken P
342e9c457a Feat: add menu for tabs (#1434)
* Feat: add menu for tabs

* Rename "Show in file manager" tab menu item to "Show in folder"

* Pass tabID instad of tab object to the menuitem
2019-10-12 19:43:42 +02:00
Felix Häusler
4a24ff0954 Add file encoding support (#1438)
* Add file encoding support

* Update documentation
2019-10-06 08:45:55 +08:00
Ran Luo
4d728a500e
Support RegExp search and replace in file edit. (#1422)
* Update style of search component

* Opti folder structure

* Finish UI

* Finish all search and replace function

* add notification when match too more or invalid regular expression

* Modify empty string

* Modify stile

* Do init search when press cmd + f
2019-10-06 08:42:06 +08:00
Felix Häusler
2c15d516c3 Fix application menu exceptions (#1437) 2019-10-04 21:59:47 +08:00
Ran Luo
91515242d4 fix: #1249 (#1400) 2019-09-30 00:29:03 +02:00
Felix Häusler
b386630d3c
Add per-tab notifications (#1377)
* Add per-tab notifications

* fix: file watcher depth on macOS

* Free array reference
2019-09-27 19:25:42 +02:00
Felix Häusler
1cac5dbe52
fix: #1349 wrong save all tab order (#1370)
* fix wrong save all tab order

* fix: #1278
2019-09-27 19:25:22 +02:00
Ran Luo
46371f8c56
Update Babel to 7.x.x (#1253)
* update deps

* update babel

* add babel-runtime

* update config file

* update config file

* modify config

* modify some codes

* update some dependences

* Update allowed licenses validate
2019-09-01 03:30:01 +08:00
Felix Häusler
1ab8388c1d Cycle through tabs (#1283)
* Cycle through tabs

* Add cycle backwards alias
2019-08-19 19:06:27 +08:00
Ran Luo
761ff169b0 fix: #1181 reset TOC after close the last tab (#1200) 2019-07-31 17:54:23 +02:00
Felix Häusler
2686cfafe4 Update deps and automatically format style (#1168) 2019-07-24 10:57:21 +08:00
Felix Häusler
72702427f1 Add ripgrep as find in files backend (#1086)
* Add ripgrep as find in files backend

* Fix API limit on Appveyor

* Fix css style

* support search and jump (#1)

* Style fixes
2019-06-20 22:46:24 +08:00
Felix Häusler
d7defe97dd
Allow to set editor line width and window zoom (#1092)
* Allow to set editor line width and window zoom

* Improve input text changed event

* Make textbox smaller
2019-06-16 15:39:02 +02:00
Felix Häusler
0de196cc65 add: auto save with delay (#1093) 2019-06-14 22:16:19 +08:00
Felix Häusler
ddc99aa00e
refactor: main filesystem code (#1104) 2019-06-13 21:23:09 +02:00
Ran Luo
de17a920a8 Opti: update TOC if needed (#1088) 2019-06-10 18:23:23 +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
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
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
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
d12f4fab19 fix: source code mode tab switching (#881) 2019-04-06 14:50:40 +08:00
Felix Häusler
be3ea4b0ce fix: watch rename syscall on Linux (#816) 2019-03-31 01:23:19 +08:00
Ran Luo
a41f751f2f update or notice file changed on disk (#796)
* update or notice file changed on disk

* update changelog

* fix some typo and optimize some codes
2019-03-26 13:40:51 +01:00
Felix Häusler
94066706f5 fix: relative images are not loaded after closing a tab (#810) 2019-03-25 22:57:18 +08:00
Ran Luo
c0c8ea4b15 feat: open external link and local markdown file (#790)
* feat: open external link and local markdown file

* image view

* browse image by CmdOrCtrl + click

* use esc to close image viewer

* change image viewer z-index to prevent math render show on top of it

* support windows and linux
2019-03-24 13:20:43 +01:00
Ran Luo
e1cfec6e3e
opti: rewrite TOC and remove hard code theme (#778)
* opti: prevent the duplicated header text error

* scroll error in toc

* delay the change event when init muya, so that the change event listener can handle change event.

* opti: style

* almost finished need last check

* style in table

* clear up some unused codes

* clear up theme hard code

* add no search data picture and new Folder new File

* move search and replace to top of editor

* add: no data image when there is no TOC

* update structure

* little bug fix

* update styles

* update un_draw icons

* update style of editor

* add animation when make open folder collapse.

* remove theme props in editor component, deprecated lightColor and darkColor

* add Ulysses Light

* theme: graphite

* update Ulysses blockquote

* update emoji style

* update titleBar height

* change theme color

* Support macOs dark mode

* update style of tooltip in editor

* update styles

* fix: TOC auto expand all

* patch added
2019-03-24 05:09:00 +08:00
Felix Häusler
ebe929619a fix: open files in current window (#762)
* fix: open files in current window

* fix: open drag&drag also in new tab if specified
2019-03-17 17:49:34 +08:00
Felix Häusler
cbd90bfeb4 User-defined open files (#735) 2019-03-07 22:59:40 +08:00
Felix Häusler
2ce05829d7 Fix tests and improve CI (#590)
* Fix tests and improve CI

* Add xvfb to Linux - still problems with Mocha e2e tests

* Disable Webpack Bundle Analyzer for testing

* Use preinstalled yarn application on AppVeyor

* Fix build failure with latest vue version

* Remove "markdown-toc"

* Fix application title unit test

* Hide electron window during unit tests

* Add basic muya unit tests

* Dirty markdown-toc replacement

* Update dependencies

* Update eslint packages and configuration
2018-12-17 10:29:37 +08:00
Felix Häusler
6ec0a215ac Fix multiple print service bugs (#594)
* Fix print service

* Fix printing

* Optimize CSS style and remove deprecated code
2018-12-06 21:01:33 +08:00
Felix Häusler
72ef20edd8 Don't show save dialog for an empty/not changed document (#548)
* Don't show save dialog for an empty document

* Fix blank document was always encoded as LF
2018-11-07 21:50:10 +08:00
Felix Häusler
067cfb0fa7 opt: improve image upload UX (#508)
* opti: notify the user about the deletion url of the uploaded image

* Update changelog
2018-10-15 00:47:14 +08:00
Jocs
11f5f45b8b fix: #393 2018-10-01 13:36:07 +08:00
Jocs
dc9f128249 feat: export files in file menu 2018-09-24 16:32:50 +08:00
Jocs
a0ffb60054 opit: rewrite export pdf and print 2018-09-22 13:01:21 +08:00
enyaxu
c01c65cbba #421 Add experiment function RTL support (#439)
* feature: Add experiment RTL support

* fix: binding to currentfile textdirection

* feature: add sourcecode RTL support

* feature: add text direction menu upgrade

* fix sourceCode does't change from menu switch text direction
2018-08-12 20:55:48 +08:00