Remove unused query-triggered atom, remove duplicative state in result
ns and rename query maps to query-m as query being used to refer to
multiple concepts - the query map and the :query inside a query map
- Couple tests didn't have an is so nothing was tested
- test-non-consecutive-blocks->vec-tree test was fixed
by updating block->entity-map to include nil attributes
as the original test wanted
- Also removed a stray :focus
* fix(editor): handle backspace when pos is 0 on embed page
* fix(editor): embed block should also be handled
* fix(editor): handle backspace when pos is 0 on embed page
* fix(editor): embed block should also be handled
* refactor(editor): reduce repeated code
* Add tests for deleting block with backspace
Also replace get-prev-block-non-collapsed-in-embed which
isn't being used enough to merit another copy and paste
---------
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
- frontend.dicts encapsulates dicts behavior for all other namespaces
- Each dict ns only has one var which prepares us
- No longer need shortcut.dicts
- Fix remaining lints that were broken
- Also bring back frontend.dicts
- Update guide
- Add a false binding to :editor/toggle-undo-redo-mode which throws a
needless warning
Fixes#9346 and fixes#5926.
Also fixes case where relative paths for unsupported paths were creating
pages per directory e.g. `deps/graph-parser/yarn.lock` created deps and
graph-parser pages
* enhance(perf): improve performance for both insert and delete
* fix: remember cursor pos before executing the body in a transaction
Otherwise, the edit-block and position could be changed
* fix: disable delete-concat when there's no child or right sibling
---------
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
* Add query option :remove-block-children? to remove
There are cases where we want to see block children e.g. using the
:current-block input. Still kept the existing behavior as most users
probably still want children removed. Also fix result count when
removing children
* Remove confusing :template block filtering
Fix#3260 and fix#9045
* enhance: apply tree filter only if the query result are blocks
---------
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
dev: graph parser IoC hook
test: use test db for diff-merge tests
fix: ci lint
dev: refactoring post block-parsing process
feat: diff-merge 2 way merge integration
fix: key namespace of uuid in fix-duplicated-id
fix: duplicated uuid ci
parse-graph didn't have all the extract-options that the app does.
Adding them fixed the bugs.
Also fix publishing bug where old :all-pages-public? option wasn't
respected