Tienson Qin
e1ed2c36ee
fix: can't edit inline code block
...
/calc has been fixed too for db version.
2024-10-07 13:00:29 +08:00
Tienson Qin
a53943e19e
fix: block content not saved when exit code mode
2024-10-03 18:31:25 +08:00
Tienson Qin
ccb6ee48e4
enhance: ESC on code back to raw editor
...
Also, removed :editor/pending-type-block.
2024-10-03 17:16:41 +08:00
Tienson Qin
5aaa3c111d
enhance: left/right arrow to navigate between code and text blocks
2024-10-03 15:47:17 +08:00
charlie
5745701ef9
enhance(ux): escape to exit the code type block
2024-09-30 17:25:05 +08:00
charlie
ebe2d794cc
enhance(ux): up/down for the code type block
2024-09-30 11:18:40 +08:00
charlie
d8bbea8ac2
enhance(ux): up/down for the code type block
2024-09-29 19:52:21 +08:00
Tienson Qin
54f191c6c6
feat: code/quote/math block ( #11545 )
...
Add code, quote and math block
2024-09-26 14:14:20 +08:00
Tienson Qin
dc47fe48c1
fix: setting codeblocks to readonly prevents modifying config.edn
...
fixes https://github.com/logseq/db-test/issues/112
2024-09-20 07:56:43 +08:00
Tienson Qin
7b9acaa370
fix: lint
2024-09-15 12:36:30 +08:00
charlie
7076bfa08e
enhance: support editor ref to export code mirror instance
2024-09-14 11:58:13 +08:00
Gabriel Horner
70383cd813
fix: stop shadowing vars for rest of frontend
...
Follow up to 5ff364ba1e
2024-09-07 00:13:09 -04:00
Tienson Qin
194f7b7a41
fix: /calc
2024-06-21 11:17:24 +08:00
Tienson Qin
644c04e8a1
fix: pointerdown shouldn't edit a block from codemirror
2024-06-05 18:35:25 +08:00
Gabriel Horner
d4d7b574a3
fix: frontend lints
2024-05-02 15:23:00 -04:00
Tienson Qin
89edb3af9a
fix: can't remove Many values
2024-05-02 18:03:17 +08:00
Tienson Qin
95eb0e7f4a
Merge branch 'feat/db' into refactor/db-properties-schema
2024-04-29 15:55:23 +08:00
charlie
163ee38a8a
enhance(ux): support shortcut to insert a new sibling block for the code mirror editing mode
2024-04-24 11:53:31 +08:00
charlie
3cb5fdbc97
fix(chore): typos
2024-04-23 17:30:22 +08:00
Tienson Qin
2d5eb0f79f
enhance: editor experience
...
1. back to use container id + editing block id instead of block dom
ref to decide which block is in editing, to simplify edit-block! and
reduce browser gc.
2. set next editing block ahead of receiving the data changes from db
worker, so the editor feels a bit faster.
2024-04-08 21:10:12 +08:00
charlie
14ec0499d4
fix(ui): incorrect behavior of the code block editing
2024-03-18 20:08:34 +08:00
Tienson Qin
732b87a63f
fix: code block e2e test
2024-01-14 15:33:06 +08:00
Tienson Qin
ee3442a44b
Merge branch 'master' into feat/db
2023-11-14 20:40:36 +08:00
Ben Yorke
69e02edaeb
Merge branch 'master' into feat/cmdk
2023-10-16 21:02:12 +02:00
Tienson Qin
d9ab81e00d
enhance: use block dom node for editing instead of container
2023-10-11 00:46:47 +08:00
Andelf
438976c7e6
fix(code): guard nil editor dom obj
2023-09-26 17:19:42 +09:00
Ben Yorke
4e2d980955
button and cmdk
2023-06-30 09:37:07 +02:00
Ben Yorke
1e264c9c76
Update codemirror
2023-06-30 09:35:34 +02:00
Andelf
71b5fa3b97
Feat: auto-completion for config editing ( #8584 )
...
* feat(editor): add auto-completion for config editing
* enhance: filter keys already in file when autocompletion
2023-02-15 17:56:33 +08:00
situ2001
e2ff4b9600
fix: CodeMirror shortcuts cause page routing
2023-01-24 11:14:44 -05:00
Tienson Qin
f5e37091dd
fix: save code block resets cursor position
...
close #7816
2023-01-02 11:30:35 +08:00
Tienson Qin
10704da424
fix: file content cleared when onblur
2022-12-20 10:53:21 +08:00
sid597
35badf5c52
use ->> for better readability
2022-12-16 21:24:01 +08:00
sid597
d2b45a59b3
Update code edit for the codeblocks that are opened in main area and sidebar,or as embeds
2022-12-16 21:24:01 +08:00
Tienson Qin
004870d81c
fix: lint warning
2022-12-14 11:34:45 +08:00
Tienson Qin
4a93d27f40
feat(plugin): add save_focused_code_editor
2022-12-14 11:34:45 +08:00
Charlie
dda1f9bd9f
Enhance / Plugin APIs ( #6945 )
...
Added
1. All configurations of current graph.
App.getCurrentGraphConfigs: () => Promise<any>
2. All favorite pages list of current graph.
App.getCurrentGraphFavorites: () => Promise<Array<string> | null>
3. All recent pages list of current graph.
App.getCurrentGraphRecent: () => Promise<Array<string> | null>
4. Clear right sidebar blocks.
App.clearRightSidebarBlocks: (opts?: { close: boolean }) => void
5. Support register CodeMirror enhancer. #Experiment feature
Experiments.registerExtensionsEnhancer<T = any>(type: 'katex' | 'codemirror', enhancer: (v: T) => Promise<any>)
6. Support hooks for app search service. #Alpha stage
App.registerSearchService<T extends IPluginSearchServiceHooks>(s: T): void
7. Support focus option for App.insertBlock. Credit to [[tennox]] #PR
Fixed
1. Adjust build script to be compatible for shadow-cljs bundler.
How to set up a clojurescript project with shadow-cljs?
https://github.com/rlhk/logseq-url-plus/blob/main/doc/dev-notes.md
2022-11-22 22:00:29 +08:00
Tienson Qin
0a796d11da
fix: ``` surroundings in code block disappear
...
close #7015
close #7378
close #5735
2022-11-22 14:43:10 +08:00
Tienson Qin
a8244a8e1b
fix: trim on nil
2022-10-12 20:52:30 +08:00
Charlie
01d879c18e
feat!: File Sync ( #5355 )
...
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks
Co-authored-by: llcc <lzhes43@gmail.com >
Co-authored-by: rcmerci <rcmerci@gmail.com >
Co-authored-by: Tienson Qin <tiensonqin@gmail.com >
Co-authored-by: Andelf <andelf@gmail.com >
Co-authored-by: Gabriel Horner <gabriel@logseq.com >
2022-09-01 00:31:49 +08:00
Charlie
d9c9438abf
Fix/custom css not reload ( #6510 )
...
* fix: custom css not reload when switching graph
* fix(ux): sometimes code editing auto save not work with blur event
2022-08-30 09:06:45 +08:00
Gabriel Horner
0275e5a067
Fix tabindex console react warnings ( #6520 )
...
Follow up to #6442
2022-08-29 15:37:56 -04:00
llcc
f52786a1c8
Merge branch 'master' into gesture-support-on-block
2022-05-26 10:58:38 +08:00
Tienson Qin
2eb5bbb6e8
fix: code not saved when click the bottom line to add a new block
...
related to #5406
2022-05-25 22:37:31 +08:00
llcc
ee3b578d99
Merge branch 'master' into gesture-support-on-block
2022-05-23 22:07:36 +08:00
llcc
e119fef6bd
Merge branch 'master' into gesture-support-on-block
2022-05-12 09:58:53 +08:00
Gabriel Horner
20b8b9624d
Moved nbb ns into graph-parser. nbb mldoc tests wip
2022-05-10 20:22:48 -04:00
llcc
17eb19d249
disable swipe gesture when scrolling mirrorcode editor
2022-05-09 15:50:28 +08:00
Gabriel Horner
af4b55c870
Consistent aliasing for frontend.config
2022-05-04 12:02:36 -04:00
Tienson Qin
46dedfb7eb
fix: simplify code editor
2022-04-28 12:25:29 +08:00