Commit Graph

61 Commits

Author SHA1 Message Date
Tienson Qin
a1c3804e96 enhance(ux): add an apply button to multiple selects 2023-04-05 00:09:07 +08:00
megayu
81c1397106 Enhance context menu (#8930)
* replace duplicate code

* only select current block during open contxt menu & fix issue 7689

* change unnecessary mixin function to value

* add bgcolor to custom context menu

* add collapse/expand to custom context menu

* remove redundant code

* fix misdirected comment

* add make card to custom context menu

* add heading to custom context menu

* Merge branch 'master' into enhance/context-menu

* fix undo heading need multiple times

* Revert "Merge branch 'master' into enhance/context-menu"

This reverts commit d4222db6bb.

* fix: lint

* fix heading case logically incorrect

* format code

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2023-04-03 12:59:59 +08:00
Tienson Qin
db6fc6b7ee feat: simple query builder (#8774)
Simple query builder

---------

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
Co-authored-by: charlie <xyhp915@qq.com>
2023-03-21 14:27:00 +08:00
Charlie
d53ac94bfc Enhance/pdf improvements (#6475)
Full-text search, highlights and assets alias support 
It also exposes a plugin API for highlight context menu   
    ```ts
    /**
       * Current it's only available for pdf viewer
       * @param label - displayed name of command
       * @param action - callback for the clickable item
       * @param opts - clearSelection: clear highlight selection when callback invoked
       */
      registerHighlightContextMenuItem: (
        label: string,
        action: SimpleCommandCallback,
        opts?: {
          clearSelection: boolean
        }
      ) => unknown
    ```
2022-10-09 20:44:18 +08:00
Tienson Qin
a1ca6820df Fix: broken linked references (#6105)
* enhance: clicking the refresh button if a query is slow

* fix: skip running slow queries if there's no need to refresh

* fix: linked reference filtering does not work on TASK items

close #1669

* fix: each block should have its own page as a reference when query page references

* fix: references

* fix: non consecutive blocks in query result and filtered linked references

* simplify filters logic

* fix: ref numbers

* Save both :block/refs and :block/path-refs for different usage

* fix: block refs

* enhance: move scheduled and deadlines to its own ns

* linked references performance tweaks

* mouse hover filters icon to expand the collapsed linked refs

* perf: react/refresh! once instead twice

* enhance: compute flashcards every hour instead of every 5s

* feat: macros as blocks

* feat: flashcards list

* fix: refed pages count

* fix: can't select in linked references

* fix: block editing on linked refs

* perf: editing in linked references

* enhance: update srs cards number when clicking flashcards

* Add a test for the case fixed in #6100

* Address feedbacks from Gabriel

* fix: Block Ref Indicator is missing from the references-blocks class

close #5375

* fix: referenced pages

* fix: page refs

* fix: Using filters pushed the title property to the second block

close #5845

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-08-04 13:03:12 +08:00
Gabriel Horner
15b8e5e9df Setup CI jobs that are only for graph-parser
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
Gabriel Horner
65804b4183 Split out text ns to graph-parser 2022-05-10 20:22:48 -04:00
Gabriel Horner
be46506ba3 Merge branch 'master' into feature/add-more-graph-commands 2022-02-08 11:10:11 -05:00
Tienson Qin
982eba9396 refactor: remove i18n tongue context 2022-02-08 17:31:32 +08:00
Gabriel Horner
f9e39ebf31 Add graph removal and add to complement #4009 2022-02-01 12:37:42 -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