Commit Graph

7428 Commits

Author SHA1 Message Date
Andelf
2ca70373af fix(editor): wrong cookie render
Close #8841
2023-03-17 14:36:18 -04:00
aiirobyte
0eb25b3934 Add option to handle default block refs expanding behaviour (#8839)
* Add option to handle default block refs expanding behaviour

* provide default value

* polish config desc for dicts

* polish config desc in template config

* specify option on settings page

* fix: typo on fn name

* chore: remove the tail period

---------

Co-authored-by: situ2001 <yongcong2001@outlook.com>
2023-03-17 21:40:38 +08:00
waneon
eee7d06c82 Update Korean translation 2023-03-16 10:39:49 -04:00
Gabriel Horner
05f6665d12 On normal paste wrap link in macro if possible
Remove warning for no macro wrapping as that is excessive warning
2023-03-15 18:27:52 -04:00
Gabriel Horner
dc7480b59a Fix test failing b/c it was coupled by forgetting to reset
Also fix other tests that don't reset
2023-03-15 18:27:52 -04:00
Gabriel Horner
e8dd8a679e Add test for raw url paste fix 2023-03-15 18:27:52 -04:00
situ2001
e0eb520dc3 fix(paste): do not convert url to marco while raw pasting 2023-03-15 18:27:52 -04:00
Tienson Qin
86eda0d1ca chore: remove repeated calls 2023-03-15 15:21:47 +08:00
Konstantinos Kaloutas
874b4d9f9a fix: transact 2023-03-13 14:33:14 -04:00
Konstantinos Kaloutas
e9da7e49f3 use :compute-new-refs? to replace the last undo 2023-03-13 14:33:14 -04:00
Konstantinos Kaloutas
acd41f71dd fix: history replace 2023-03-13 14:33:14 -04:00
charlie
a345f434e3 enhance(ux): auto-complete ux with mouse 2023-03-13 13:54:47 -04:00
Sky Hong
652c43f4d8 update: update Translation of Traditional Chinese (zh-hant) 2023-03-13 17:21:46 +08:00
AkrISrn
70f6d9b3b7 style: format indent 2023-03-13 16:33:21 +08:00
AkrISrn
2baafcf05a fix(logbook): with-second-support? doesn't work 2023-03-13 16:33:21 +08:00
charlie
22dfa621e4 enhance(pdf): UI lag for the case of large highlights data 2023-03-09 09:15:33 +08:00
Konstantinos Kaloutas
0a89ac520a use util/copy-to-clipboard! 2023-03-08 17:09:35 +08:00
Konstantinos Kaloutas
316fa2f4b5 fix: copy 2023-03-08 17:09:35 +08:00
Tienson Qin
552a8a1575 fix: display page's original name when possible 2023-03-07 11:09:37 +08:00
charlie
c83c973338 fix(http-server): apis server status for multiple graph windows 2023-03-06 12:07:56 +08:00
charlie
821e029568 enhance(ui): move http apis server indicator to right side from toolbar 2023-03-06 12:07:56 +08:00
Konstantinos
82e5abf9e0 Enhance (Whiteboards): Paste and dnd behavior (also add a placeholder to shape labels) (#8753)
* fix: paste shape

* enhance: add label placeholder

* fix: don't create portal on ref click

* enhance: allow ref dragging

* fix: create line binding on drop

* enhance: allow creating url based elements on drop
2023-03-06 12:04:24 +08:00
Gabriel Horner
91e89ef2d6 Chore: Add deprecation for :editor/command-trigger config (#8720)
* Add deprecation for :editor/command-trigger config

* enhance: warning dialog

* enhance: notification styles

* enhance: notification icons

* Fix tests after config warning improvements

---------

Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
2023-03-04 12:07:33 +08:00
Yuriy Piskun
5d0117b6fa hide empty settings descrition (#8739)
Co-authored-by: Charlie <xyhp915@qq.com>
2023-03-03 10:55:33 -05:00
situ2001
59647482fa fix: shrink on-click range of sidebar-item 2023-03-03 20:59:27 +08:00
sallto
fd3afacabf test: add test for duplicate key error msg 2023-03-02 16:04:20 -05:00
sallto
023c904bfc fix: exception for valid strings 2023-03-02 16:04:20 -05:00
sallto
894a2888b2 enhance(ui): add better error messages for duplicate key in config.edn 2023-03-02 16:04:20 -05:00
Gabriel Horner
5202741563 Fix: Plugins menu item not opening from plugins dashboard (#8736)
* Fix plugins menu item not opening from plugins dashboard

Fix #8726

* Address review feedback and just remove event firing
2023-03-02 11:22:00 -05:00
Andelf
046e47d22e fix(electron): global config dir name under windows 2023-03-02 14:42:17 +08:00
rcmerci
de2c1f7445 move all string/join used to construct paths to one place 2023-03-01 11:59:00 -05:00
Andelf
db76ba885c chore(release): bump version 0.8.18 2023-03-01 15:23:15 +08:00
Adam
6f45107408 fix: incorrect page title when 'hls__' is opened (#8697)
* dev: move 'hls-file?' to pdf-utils
* dev: use 'hls-file?' instead of string comparison
* fix: window title when hls file opened
2023-02-28 15:10:33 +08:00
sallto
bdc11a9dcd Shortcut for copying a page url (#8538)
* fix: move primary directory to ~/.config/Logseq

* feat: Add shortcut for copying a page url

* Revert "fix: move primary directory to ~/.config/Logseq"

This reverts commit 1991c60fbf236db93df96e0c0856d73df123a124.

* fix(dev): remove import to pass lint checks

* Address code review

Also
- Add :inactive to command to reflect page-menu platforms like other commands
- Add improved current page like other current file/page commands
- don't use state/sub in non component contexts

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-27 12:38:14 -05:00
Konstantinos
2cace8894c Enhance: Add more translations, remove unused ones and add linter for unused (#8568)
* chore: remove unused dictionary keys

* wip: add dictionary keys for hardcoded strings

* resolve conflicts

* Add linter to detect :en ui translation keys match used ones

- Fix a couple entries caught by linter
- Copy :command.editor/open-link-in-sidebar entries to
  :help/open-link-in-sidebar as translation keys shouldn't be reused in
  multiple contexts, especially when it's across ui and shortcut dicts

* fix: remove dead keys

* chore: reuse dict keys

* chore: reintroduce useful keys

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-24 09:21:57 -05:00
Tienson Qin
6a5b0c8199 Fix pencil not working if drawing quickly (replace tldraw's undo/redo history with logseq's) (#7786)
* fix: pencil not working if drawing quickly

* feat: mod+c mod+g to toggle grid

Co-authored-by: Konstantinos Kaloutas <konstantinos@logseq.com>
2023-02-22 23:16:52 +08:00
charlie
46d3cb516a improve(ui): edge gap for commands auto-complete modal 2023-02-22 18:26:52 +08:00
charlie
11b9eaabe4 improve(ui): friendly size for slash commands modal 2023-02-22 18:26:52 +08:00
charlie
215c45744b enhance(ui): position auto-complete modal in viewport 2023-02-22 18:26:52 +08:00
Gabriel Horner
b78c689458 Fix remaining todos and add a section to practices about this new action 2023-02-21 12:01:58 -05:00
Zhizhen He
25c15053d6 feat: add typos to GitHub action
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-02-21 12:01:58 -05:00
Tienson Qin
ea213258b1 fix: references crash 2023-02-21 23:49:25 +08:00
Tienson Qin
0e365508be fix: wrong usage of :frontend.db.react/refs
Previously, `[:frontend.db.react/refs id]` is used for three places:
1. get-page-referenced-blocks
2. get-block-referenced-blocks
3. get-block-references-count

The cached query atom will be shared between those three functions,
the problem is that both queries in `get-page-referenced-blocks` and
`get-block-referenced-blocks` return data of different formats, which
can result in crashes in some situations (e.g. PR #8423).

This commit removed `get-block-references-count` and use
`model/pull-block` and `(count (:block/_refs block))` instead.

We also need to make sure the `id` in `[:frontend.db.react/refs id]`
will be different for `get-page-referenced-blocks` and
`get-block-referenced-blocks`. We can probably get rid of
`get-page-referenced-blocks` once we refactored both linked references
and filters for pages.
2023-02-21 23:49:25 +08:00
Andelf
5a2884038b fix: regression of file editing on browser-app 2023-02-21 10:40:17 -05:00
Andelf
db356ac946 fix lint 2023-02-21 10:40:17 -05:00
Andelf
e0f9111beb fix(config): loading of config editing
Introduced: #8578
2023-02-21 10:40:17 -05:00
Gabriel Horner
047f8a8fef Fix edit global config.edn
This also effects editing any file that's not in the current repo
2023-02-21 10:40:17 -05:00
Hendrik
021a017555 Changes after code review 2023-02-21 10:26:41 -05:00
Hendrik Schöffmann
08e01421e0 i18n: update german translation
- Added missing german translations
- Sorted the keys in the german translation alphabetically
2023-02-21 10:26:41 -05:00
rcmerci
7236ff0313 Merge pull request #8654 from ksqsf/feat/cloze-cue
feat(srs): support cloze cues
2023-02-21 21:34:56 +08:00