Commit Graph

225 Commits

Author SHA1 Message Date
Tienson Qin
18c378f1b9 fix: filter out blank blocks during search 2022-07-07 01:42:16 +08:00
Tienson Qin
6d0be829a1 refactor: unify :editor/show-xxx and (block) commands to :editor/action 2022-07-07 01:42:16 +08:00
Tienson Qin
b59d98ada5 fix: paste blocks 2022-06-16 04:47:17 +08:00
llcc
ef0201358c fix record bar drag issues 2022-05-31 15:46:08 +08:00
llcc
c0b4f09f94 make audio-record-toolbar draggable 2022-05-31 15:46:08 +08:00
llcc
b6901da3fd fix: record-bar doesn't show when editing 2022-05-30 22:29:25 +08:00
Tienson Qin
cc735fffc7 fix: tests 2022-05-29 16:31:17 +08:00
charlie
a8cf6befd0 enhance(ux): flip slash commands menu when narrow vertical space 2022-05-29 16:27:43 +08:00
llcc
2c5ef73da9 Merge branch 'master' into disable-webview-resize 2022-05-16 11:17:59 +08:00
yshwaker
22d41664a4 fix: modal position, getting editor width from editor-wrapper 2022-05-12 10:34:56 -04:00
llcc
628fd0f3e4 Merge branch 'master' into disable-webview-resize 2022-05-09 19:44:40 +08:00
Tienson Qin
3f4ca7c4ba Merge branch 'master' into enhance/graph-parser-part-one 2022-05-08 09:53:54 +08:00
llcc
744f1b4964 fix lints 2022-05-05 11:53:25 +08:00
llcc
85aa0cb46d remove listen to textarea height change 2022-05-05 11:53:25 +08:00
llcc
fba44bbef2 make mobile-bar independent with textarea
fix toolbar overlaps editor when editing references
2022-05-05 11:53:25 +08:00
Gabriel Horner
a58a411567 Move config fns and remaining util fns that mldoc depends on 2022-05-04 12:02:36 -04:00
Peng Xiao
3a362c2ecd fix: the popup position is sometimes wrong 2022-05-04 09:55:36 -04:00
llcc
3f8296135b fix: modals positions
close https://github.com/logseq/logseq/issues/5053
2022-04-26 21:33:37 +08:00
llcc
f4c6cceb6a switch indent and outdent button on mobile toolbar 2022-04-18 13:59:39 +08:00
llcc
9d0194e81f fix mobile toolbar order not persisting after restart 2022-04-15 17:31:26 +08:00
llcc
f4985fd8ef Feat: record audio on mobile (#4766)
* feat(audio): render audio link as component

* refactor frontend/component/block/inline

* fix audio component on mobile

* Fix(iOS): allow clock to replay audio

* feat(mobile): audio record

* add permission request code on record

* rename `editor/recording?` to `editor/record-status`

* move `get-asset-path` into handler/editor.cljs

* add android settings

* support sharing audio file from some apps

* enhance(record): insert audio link in a new block if non-editing

* feat(audio): allow cancelling record

* fix lints

* feat(iOS): add a tab bar

* tweak some css on mobile

* fix lints

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

* enable tab bar on Android

* fix landscape height of tab bar

* add :reuse-last-block? option

* dont't show tab bar when editing mirror code

* tweak code-editor css

* increase width for more functional buttons

* fix card preview css on iPad

* add document-mode to tab bar

* remove tabbar when editing code and tweak textarea resize cursor behavior

* reduce SplashScreen launch screen duration

* don't show tabbar when editing page title

* enhance: float timer

* fix lint

* fix tabbar height on iPhone without notch

* remove .embed-page width

* fix lint

Co-authored-by: Andelf <andelf@gmail.com>
2022-04-12 20:17:54 +08:00
llcc
35ce12ced2 persist commands order on mobile 2022-04-12 19:09:01 +08:00
llcc
4df8459615 feat(mobile): dynamically reorder toolbar commands by click counts 2022-04-12 19:09:01 +08:00
Tienson Qin
096c69ffb8 fix: cursor jumps to the beginning when indent/outdent
It might be caused by the recent upgrading of rum, which brings back
the old render queue and batched updates.

ae6a85028e
2022-04-02 21:40:28 +08:00
Yue Yang
3e36b4f216 refactor: rearrange cycle-marker (#4661)
* refactor: rearrange cycle-marker

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: remove unused markdown?

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: marker-switch

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* fix: add missing arg

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* docs: cycle-marker and set-marker

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: address comments

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

* chore: format code

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2022-03-21 12:47:59 +08:00
llcc
acc5a62c94 fix(tablet): toolbar width 2022-03-11 20:00:27 +08:00
llcc
bc5c983a47 feat(mobile): add keyboard-collapse icon on toolbar 2022-03-02 19:06:42 +08:00
llcc
b9bdced68f chore: refactor mobile-bar 2022-03-02 19:06:42 +08:00
leizhe
31706b7888 enhance(mobile): editing in large block 2022-02-17 22:26:36 +08:00
Andelf
e2ee41733d enhance(editor): reorder page search autocompletion items 2022-02-10 18:34:30 +08:00
llcc
b637c2d85a fix: text goes beneath toolbar in large block on iOS (#4179)
* fix(mobile): text goes beneath toolbar in large block

Co-authored-by: leizhe <leizhe@leizhedeMacBook-Air.local>
Co-authored-by: Andelf <andelf@gmail.com>
2022-02-10 17:52:22 +08:00
Gabriel Horner
c6d03b67ab Merge branch 'master' into dev/var-sizes-linter 2022-02-08 12:02:39 -05:00
Tienson Qin
1870f44f9a fix lint warnings 2022-02-08 15:50:54 +08:00
Tienson Qin
e7331f33b0 Speed up building search indice 2022-02-08 15:49:59 +08:00
Gabriel Horner
e81678fc69 Mark most vars as cleanup-todo
Fixed a few that I knew how to QA and were low risk
2022-02-04 16:57:49 -05:00
Gabriel Horner
ec513a54d2 Add a command to switch graphs (#4009)
* First pass at select-graph with select component

* Add empty placeholder and move graph switch logic to events

* Remove unused force? in shortcuts

* Document additional option and make disabled open-select consistent

* Address review feedback

Add data check to :graph/switch, translation improvements and update
browser to display graph names same as in the sidebar

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-01-25 10:24:14 +08:00
Andelf
e6531f404f fix(editor): reorder auto-complete items 2022-01-20 11:40:16 +08:00
Junyi Du
65f800b4b8 fix: doc string update 2022-01-20 10:33:50 +08:00
Junyi Du
694dfe52ec enhance: page name index sync normalization; e2e alias diacritic test 2022-01-20 10:33:50 +08:00
leizhe
557b67925f enhance: ac window moves with text 2022-01-18 10:39:14 +08:00
Junyi Du
26c4f2c486 fix: sanitize block search content 2022-01-17 18:19:35 +08:00
Junyi Du
3afde150ce enhance: index normalized text only (case-insensitive) 2022-01-17 18:19:35 +08:00
Gabriel Horner
f1d15b0e05 Lint components and address comments in review
Start using :clj-kondo/ignore as lint violations that need to be
revisited. They may side effect and should be removed with better
understanding of their context
2022-01-12 15:32:47 -05:00
Tienson Qin
b59284c406 enhance: scroll earlier 2022-01-10 16:51:06 +08:00
Junyi Du
ebd8e94c23 enhance: use search normalize 2022-01-10 16:28:29 +08:00
leizhe
61f7653e79 fix(mobile): modal pop window position 2022-01-10 13:29:13 +08:00
leizhe
78ada7fc83 enhance(mobile): reorder toolbar icons 2022-01-06 20:22:19 +08:00
leizhe
9452ae1269 enhance(mobile): move viewport to center for commands 2022-01-06 20:22:19 +08:00
leizhe
b45ed4534e enhance(mobile): add list icon
Features:
- create an empty list
- toggle current line to a list item
- toggle ordered/unordered list
2022-01-06 20:22:19 +08:00
leizhe
c317836857 enhance(mobile): () supports toggle between block reference/embed
1. (| denotes cursor postion),
   - insert `((|))` after first click
   - change `((|))` to `{{embed ((|))}}`
   - later click toggles between `((|))` and `{{embed ((|))}}`
2. if cursor at `((uuid-uuid-uuid|))`, the reference will be changed to`{{embed
((uuid-uuid-uuid))}}|` when clcking the icon, and vice versa.
2022-01-06 20:22:19 +08:00