Commit Graph

110 Commits

Author SHA1 Message Date
Ran Luo
289b17c015 Optimization of table block (#1456)
* Prepare for drag and drop row and column

* remove regexp th|td

* render drag button

* Feat: support drag and drop row and column of table

* Feat: table bar tools

* remove unnecessary codes

* Feat: support select multiple cells

* Do not show table drag bar when selected cells

* Feat: support delete selected cells content or remove row/column/table

* Feat: select one cell or table when press ctrl + a

* Support select all content

* Remove table tools in context menu

* Feat: support copy paste selected cells as sub table

* Fix: PR issue 1 press tab will not show the table drag bars

* Select one cell and press backspace will cause bug

* Fix: The table drag bar location error when there are tow tables in the editor

* Fix unable copy and paste 1* n or n * 1 table

* Drag any row to the top to editor will cause error.

* Update table resize icon

* Fix: table resize is not work in table tool bar

* Fix: No need to show left drag bar if only one row, and no need to show bottom drag bar if only one column.

* Fix: Create an empty table in source code mode, turn to preview mode, there are more than two drag bars in one table.

* Fix: resize table

* Opti: table is not 100% width now

* Fix drag in one row or column

* Change table delete icon

* Fix: backspace is not work

* Little style opti

* Fix: cmd + enter bug

* Update the table drag bar context menu text

* Handle delete key when select table cells

* remove all unnecessary debug codes

* Feat: support cut selected cells and copy/cut by context menu

* Fix typo

* Rename some methods name

* Fix an issue when drag and drop table drag bar

* fix do not handle cell selection when the context menu shown

* Do not handle select cells when mouse up outside table
2019-10-13 13:23:00 +02:00
Felix Häusler
9567c143d3 Allow 1x1, 1x2 and 2x1 tables (#1462) 2019-10-10 02:00:17 +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
Ran Luo
fab1c62fde Fix issue 1378 (#1405)
* Feat: add trimUnnecessaryEmptyLine setting option

* remove debug code

* Fix: tpro and remove debug codes

* rename trimUnnecessaryEmptyLine to trimUnnecessaryCodeBlockEmptyLines
2019-10-05 14:54:34 +02:00
Ran Luo
cb25b3d47f Feat: link tool support html tag:a and reference link (#1415)
* Feat: link tool support html tag:a and reference link

* remove debug code
2019-10-02 23:34:25 +02:00
Felix Häusler
ddf9c50a42
Complete TOML and JSON front matter (#1402)
* Complete TOML and JSON front matter

* Add frontmatter settings
2019-10-02 23:27:29 +02:00
Ran Luo
6920c3e0e3 fix: image uploading error (#1385)
* fix: image uploading error

* replace image url and adjust cursor
2019-09-30 20:02:46 +02:00
Ran Luo
1ef0d016a2
Feat: add link tooks: unlink and jump (#1357) 2019-09-24 11:23:51 +08:00
Ran Luo
b4f9f44a9b
Optimization inline image (#1347)
* fix: Hide all float box and image transformer when context click

* fix: image need to have unique id

* feat: support copy,cut and paste selected image

* link to creator

* Feat: prevent drag image

* fix: #1313

* Fix: enter to edit selected image
2019-09-23 11:36:41 +08:00
Ran Luo
d26f509209
Feature: resize image and toggle inline and block image (#1335)
* Feature: size image

* Support edit and delete image

* render img tag by image render component

* Fix: can not recognize pencent symbal in img src

* Feat: align image

* Feat: align image

* add tooltip of image toolbar

* Update html tag regexp

* Fix: wrong class name

* Feat: resize image

* Some bug fix

* Fix: image loading status

* Fix: backspace error in image selector

* Remove: unused codes

* Add download event
2019-09-17 16:15:00 +08:00
Ran Luo
435dca7483
feat: search image by unsplash (#1333) 2019-09-11 11:34:33 +08:00
Ran Luo
f4e93016e3 fix: #1209 (#1214) 2019-07-31 18:47:10 +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
Ran Luo
165e8985b0 fix-#1037 (#1112) 2019-06-15 16:12:54 +02:00
Ran Luo
b42b7fe9d7 fix: #1100 and #1101 (#1102)
* fix: #1100

* fix: #1101
2019-06-11 23:08:45 +02:00
Ran Luo
d838042543 feat: scroll to cursor when switch between tabs (#1089) 2019-06-10 18:41:24 +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
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
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
991441190d Fix remove content bug (#937)
* add dotenv to set environment variable

* fix: #934

* fix: #938

* update codes
2019-04-15 16:39:28 +02:00
Ran Luo
8b04b4c34a
Diagram (#914)
* add theme support of diagram

* add init mermaidTheme and vegaTheme when init muya

* export diagram

* update changelog

* add delete icon

* replace table toolbar icon to png

* replace icons in fromt menu and quick insert

* update format icons to png

* add theme support of diagram

* add init mermaidTheme and vegaTheme when init muya

* export diagram

* update changelog

* add delete icon

* replace table toolbar icon to png

* replace icons in fromt menu and quick insert

* update format icons to png

* update front icon hover color

* adjust format box icon size

* prevent some warning and rerender after change from source code

* remove debug code and replace image icon
2019-04-13 00:40:23 +08:00
Felix Häusler
1c4ec7cae4 add list indentation settings (#900) 2019-04-10 22:43:21 +08:00
Ran Luo
4e918503f4 feat: add front menu (#875)
* feat: add front menu

* update changelog

* feat: add short cut of paragraph edit

* fix location bug of submenu

* update checkbox style in editor

* update selected background color

* update KEYBINDINGS.md

* Bullet to ordered list issue:

* emit change event after control paragraph

* fix: marked parse error

* disable table, front-matter and horizontal line in paragraph turn into, and fixed paragraph turn into html and math

* fix unwanted space before text paragraph when heading turn into text paragraph

* fix error when turn heading to paragraph

* put front menu on the left on front icon

* update readme

* if the selection span in two lnes, disable paragraph turn into heading
2019-04-07 16:16:49 +02:00
Felix Häusler
d12f4fab19 fix: source code mode tab switching (#881) 2019-04-06 14:50:40 +08:00
Felix Häusler
004879b49a Modified themes and added dark and one dark theme (#826)
* Modified themes and added dark and one dark theme

* fix: print service

* Update documentation
2019-03-31 12:56:03 +08:00
Felix Häusler
de29043086 fix: tab switch exception due invalid cursor (#792) 2019-03-24 20:58:46 +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
7c5a6143b9 fix: broken relative image sources when exporting (#761) 2019-03-17 17:44:26 +08:00
Ran Luo
81af43be93
feat: add hide quick insert hint option (#638) 2019-01-07 22:25:18 +08:00
Felix Häusler
790448ae5f Allow custom fonts and improve side bar (#626) 2018-12-25 18:52:51 +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
jocs
eb9b3b8437 fix: copy paste bug in list 2018-11-13 21:08:15 +08:00
jocs
968b538acf opti: make UI components to plugins, disable spellcheck 2018-11-08 22:44:45 +08:00
Ran Luo
39e1ea8081
Prism replace codemirror (#516)
* feat: basic use of code block by prism

* opti: remove codemirror from muya

* feat: add highlight to math and frontmatter

* feat: import and export in math block, html block, frontmatter, code block

* update: paragraph ctrl

* feat: copy and paste in new math block and html block

* feat: update code block style in dark theme

* feat: search and replace in code block

* fix: update menu item status when selection changed

* opti: optimization of updateCtrl divide it into clickCtrl and inputCtrl

* opti: search and replace in code block when no lang selected

* opti: copy paste in code block

* feat: insert paragraph before or after code block

* opti: change emoji.js to emoji.json

* feat: auto indent in code block

* opti: auto indent in code block

* opti: remove the use of snabbdom-virtualize

* fix: do not show format float box in code block

* opti: emoji picker

* update: delete some unused codes

* update: electron

* use a temp prismjs2 instead of prismjs
2018-10-23 21:21:58 +08:00
Jocs
b68b30af4b opti: optimization some codes 2018-10-17 19:05:19 +08:00
Jocs
55d453a91c fix: #510 pdf export error 2018-10-16 15:10:07 +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
5c5832bef7 feat: add html bock to paragraph menu 2018-10-07 12:12:20 +08:00
Jocs
c3f8c9d129 opti: drag image to upload directlly 2018-09-22 18:11:11 +08:00
Jocs
a0ffb60054 opit: rewrite export pdf and print 2018-09-22 13:01:21 +08:00
Jocs
79866a4604 opti: delete some unused codes 2018-09-22 12:16:02 +08:00
Jocs
7d6af4f587 opti: rewrite export html 2018-09-22 12:01:51 +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
Ran Luo
405d04ce19
package and release muya (#413) 2018-07-07 00:10:30 +08:00
Jocs
509eff08fa fix: #348 do not export tabs and sidebar when export PDF 2018-06-19 19:33:29 +08:00
Jocs
05bf5b96d5 bugfix: #167 #357 #344 2018-06-19 18:38:40 +08:00
Jocs
4cb2d42708 bugfix: #342 2018-06-19 11:14:09 +08:00
冉四夕
4be72ade97
Notification (#337)
* rewrite notice module

* optimization: show some notification when export html or pdf

* optimization: style of open project button

* little bug fix

* style: uniform titlebar hight to remove some style error
2018-06-15 21:30:10 +08:00
Jocs
a8ced8d832 bugfix: unexpected scrollbars in source code mode #327 2018-06-14 22:56:25 +08:00
Jocs
e4debffb2d optimization: style 2018-06-13 14:52:07 +08:00
冉四夕
434431175f
feature: copy table in context menu (#331) 2018-06-13 10:03:15 +08:00
Jocs
a703501fe6 feature: tab view in dark and light theme 2018-06-06 23:29:18 +08:00
Jocs
6df0c8fa6e feature: table of content 2018-06-06 16:08:04 +08:00
Jocs
c099cc3ce7 bugfix: history error and main process error 2018-06-06 12:12:18 +08:00
Jocs
8fd13ed068 sidebar support dark theme 2018-06-05 23:58:32 +08:00
冉四夕
dc79014147
Support Side Bar、 Tabs and Quick Open in Mark Text (#317)
* side-bar-view

* list files view

* update the structure of store, add modules

* open project and change select files

* add tabs view

* listen for file/dir changing, and update in sidebar

* delete some unused code

* context menu in sidebar

* add tool bar and tab bar menu item

* save all and save all and close

* copy, cut, paste, new file, new directory, move to trash, open in folder

* rename in sidebar
2018-06-04 11:23:51 -05:00