Commit Graph

596 Commits

Author SHA1 Message Date
Junyi Du
eeb48ba6b8 enhance: only apply DWIM to list item when cursor at EOL 2021-11-30 11:04:41 +08:00
Tienson Qin
453579affd fix: Hashtag # with Chinese character doesn't trigger search
close #3283
2021-11-26 22:09:38 +08:00
Tienson Qin
b8e3298904 enhance: type ``` and press Enter to switch to codemirror 2021-11-26 21:04:10 +08:00
Tienson Qin
efbcb79299 fix: double [[ not trigger auto-complete on Windows with microsoft pinyin
close #3251
2021-11-24 22:11:07 +08:00
Tienson Qin
b18d44e63f enhance: convert highlighted word to a link when pasting a url 2021-11-24 16:47:45 +08:00
Tienson Qin
e622376638 fix: Can not type curly brackets in editor
close #3255
2021-11-24 14:47:47 +08:00
Andelf
2220208c50 fix: avoid press enter at empty page-ref 2021-11-24 11:35:32 +08:00
Tienson Qin
166ffa3b35 fix: clean orphaned pages when saving the editor 2021-11-22 22:12:55 +08:00
Tienson Qin
db1a6c7c37 fix: use keycode instead of key for autopair
close #752
close #2944
2021-11-22 13:21:19 +08:00
Andelf
961f6e9a19 fix: skip ime composing 2021-11-22 11:10:52 +08:00
Tienson Qin
63a1050743 fix: Delete key is deleting 2 characters rather than 1
close #3191
2021-11-18 12:19:31 +08:00
Andelf
1f779774ff fix: do not triml while saving block 2021-11-17 20:45:03 +08:00
Tienson Qin
0c8110f209 fix: backspace can't move to previous block if it's a embed block 2021-11-16 16:22:49 +08:00
Tienson Qin
1c78fdc245 enhance: cycle todos support cmd+enter too
Also, it keeps the selection state after triggered
2021-11-16 15:17:41 +08:00
Tienson Qin
7ffabb111d enhance: don't add another set of (()) when copy block ref to embed 2021-11-15 23:47:53 +08:00
Tienson Qin
e9abb69f6d feat: add copy block embed(s) 2021-11-15 23:30:56 +08:00
Tienson Qin
8323d0a2d2 fix: line starting with - will be disappear after exit editing 2021-11-15 21:36:45 +08:00
Charlie
72c038e6fe Feat/moveable plugin UI container (#3045)
* improve(plugin): add container for main ui frame

* feat(plugin): support draggable & resizable UI container for main ui

* feat: support fork sub layout container

* improve(plugin): add editor selection api

* improve(plugin): click outside configure for float container

* improve(plugin): api of journal for create-page

* improve(plugin): api of open-in-right-sidebar

* improve(plugin): add full screen api

* improve(plugin): api of register-palette-command

* improve(plugin): add apis
2021-11-15 16:57:20 +08:00
Tienson Qin
829c8ebb8d fix: there's no auto-complete if the cursor moves back to [[]]
Related to #538
2021-11-10 23:36:53 +08:00
leizhe
8143a0c6f6 fix(DWIM): cursor jumps to drawer end if enter at property key 2021-11-05 11:13:48 +08:00
Tienson Qin
7c0e596185 fix: Unexpected behavior of Ctrl + b
close #2667
2021-11-04 21:31:03 +08:00
Tienson Qin
29a96a7f3e enhance: delete move-node 2021-11-04 20:30:54 +08:00
Tienson Qin
bcabb49cc8 feat: move nodes up/down 2021-11-04 20:30:54 +08:00
Tienson Qin
1f655c519d feat: WIP move blocks up/down 2021-11-04 20:30:54 +08:00
leizhe
977fd2bacc fix: insert page attributes instead of block property when creating
and renaming page

Creating or renaming a page with namespace will add block-styled title
property, which is not proper. This PR fixed this issue.
2021-11-04 17:40:48 +08:00
Tienson Qin
300ee8feb4 chore: bump mldoc 2021-11-03 21:13:34 +08:00
Devon Zuegel
54b7df65a9 enhance: custom editor command trigger (#3001)
* refactor: rename slash → custom-command-trigger

* refactor: use command-menu-trigger variable throughout, rather than hard-coded

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2021-11-03 11:09:33 +08:00
Tienson Qin
e4c0e8e07c enhance: add plus button for block pages too 2021-11-02 22:47:50 +08:00
Tienson Qin
c59d40741e fix: redundant arguments after code cleanup 2021-11-02 22:23:06 +08:00
llcc
b2e3901631 fix slash command clashes with Org-mode italics (#3010)
* enhance: fix https://github.com/logseq/logseq/issues/990

Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
2021-11-02 19:15:17 +08:00
llcc
584c929839 Enhance logbook (#2987)
* fix(logbook): fix https://github.com/logseq/logseq/issues/2866 partially

Timetracked logbook shouldn't only shown up in block with scheduled
timestamp.

* fix https://github.com/logseq/logseq/issues/2866

* cleanup: arguments in some commands

* Revert "cleanup: arguments in some commands"

This reverts commit 0e7df6e5fe.

* enhance(logbook): add two-level options to show logbook

This PR offer two options to control when the logbook drawer shows in
your block.

- `:logbook/enabled-in-timestamped-blocks`: This option defaults to
true, which means that the logbook drawer will be visible in blocks
only with scheduled or deadline timestamp after timetracking.

- `:logbook/enabled-in-all-blocks`: This option defaults to
nil. Adding `:logbook/enabled-in-all-blocks true` to your config file
will enable the logbook shown-up for all blocks after timetracking.

* fix last commit

* fix: timetrack for now->later on repeated task

* fix: add default marker

* enhance(logbook): support seconds

* logbook: add `with-second-support` doc

* logbook: re-define display config

* fix logbook string indentation

Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
2021-10-22 22:24:53 +08:00
rcmerci
c8b07ff97a fix: region copy as
when embed-page included in selected region, will copy embed-page twice
2021-10-21 17:52:51 +08:00
leizhe
43cc8c2723 cleanup: frontend.commands 2021-10-20 18:39:00 +08:00
leizhe
8f2140e537 enhance: properties inserting
Multiple properties drawers are allowed for now, this PR limits the
creation of multiple drawers to make sure that each block has only
one. Call <properties multiple times will insert the property in same drawer.
2021-10-20 16:40:27 +08:00
leizhe
1c3536198e Revert "cleanup: arguments in some commands"
This reverts commit 0e7df6e5fe.
2021-10-20 16:34:49 +08:00
leizhe
331f195054 cleanup: arguments in some commands 2021-10-20 16:34:49 +08:00
leizhe
9c33cf4b6b fix https://github.com/logseq/logseq/issues/2866 2021-10-20 16:34:49 +08:00
leizhe
035cd9c6fd fix(dwim): jump out of properties drawer if empty key at point 2021-10-18 22:04:55 +08:00
leizhe
f9c77d8300 dwim: make dwim feature optional 2021-10-18 22:04:55 +08:00
Tienson Qin
f134bf11d9 fix: undo need multiple steps 2021-10-12 14:28:29 +08:00
Tienson Qin
63b672dcf8 refactor: remove :block/file from non-page blocks 2021-10-11 12:14:41 +08:00
Tienson Qin
77d73f9bbe fix: disable dwim for markdown properties 2021-10-09 18:00:49 +08:00
Tienson Qin
06124f1236 fix: Left/Right not working when renaming page's title 2021-10-09 17:36:22 +08:00
leizhe
ce8c79b68b fix(dwim): disable remove empty property line for later fix 2021-10-09 14:18:16 +08:00
leizhe
e432a397bb enhance(dwim): jump out of properties drawer when cursor in empty property key 2021-10-09 14:18:16 +08:00
Tienson Qin
8823b624d9 fix: image paste 2021-10-08 22:56:50 +08:00
Tienson Qin
baf6713316 feat: cycle multiple todos 2021-10-08 19:55:59 +08:00
Tienson Qin
d5578a2b22 feat: copy multiple block refs
Also, fixed a bug that block refs count is not updated reactively.
2021-10-08 19:36:54 +08:00
Tienson Qin
ddb0bdc937 enhance: create first block when Enter a new page (dwim) 2021-10-08 18:32:07 +08:00
leizhe
be24c3a43b dwim: fix ordered list bullet increment 2021-10-08 18:07:17 +08:00