* 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>
* 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
* 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>
* 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>
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.