diff --git a/journals/2020_05_14.org b/journals/2020_05_14.org index af592895..1e129e6c 100644 --- a/journals/2020_05_14.org +++ b/journals/2020_05_14.org @@ -1,6 +1,6 @@ * Thursday, 05/14/2020 ** [[Changelog 2020]] -*** [[https://excalidraw.com/][Excalidraw]] Integration. [[Draw]] [[Features]] +*** [[https://excalidraw.com/][Excalidraw]] Integration. [[Draw]] [[特色功能]] Excalidraw is a [[https://github.com/excalidraw/excalidraw][open sourcing]] virtual whiteboard for sketching hand-drawn like diagrams. Open <https://logseq.com/draw> and enjoy it! *** Make it impossible for the server to know anything about the user's github token [[Security]] diff --git a/journals/2020_05_20.org b/journals/2020_05_20.org index afd48265..393ff186 100644 --- a/journals/2020_05_20.org +++ b/journals/2020_05_20.org @@ -3,8 +3,8 @@ *** Add [[term/alias][Page alias]] (Only supporting org mode for now). *** [[https://github.com/org-roam/org-roam][Org roam]] Integration. Rudimentary Roam replica with Org-mode. - [[Features]] + [[特色功能]] *** Basic page graph. - [[Features]] + [[特色功能]] ** [[Fixed issues]] *** Definition list parsing \ No newline at end of file diff --git a/journals/2020_05_31.org b/journals/2020_05_31.org index 544b0442..f7af713a 100644 --- a/journals/2020_05_31.org +++ b/journals/2020_05_31.org @@ -1,6 +1,6 @@ * Sunday, 05/31/2020 ** Changelog -*** Custom journal date format support. [[Features]] +*** Custom journal date format support. [[特色功能]] :PROPERTIES: :id: 60acdeb9-aa65-492b-8398-d4d65c1631c1 :END: @@ -8,7 +8,7 @@ You can set the ~:date-formatter~ in ~logseq.edn~. The default formatter is ~"MMM do, yyyy"~, which will be something like ~Jun 1st, 2020~. -*** Templates support . [[Features]] +*** Templates support . [[特色功能]] You can set the option ~:default-templates~ in the file ~logseq.edn~. **** For Markdown users #+BEGIN_SRC clojure @@ -31,4 +31,4 @@ ** Fixed issues *** Org mode auto link parsing. *** Markdown definition parsing (it supports both multiple definitions and multiple lines now). -*** Footnote parsing. \ No newline at end of file +*** Footnote parsing. diff --git a/journals/2020_06_01.org b/journals/2020_06_01.org index 895b371c..a8919a6d 100644 --- a/journals/2020_06_01.org +++ b/journals/2020_06_01.org @@ -1,6 +1,6 @@ * Jun 1st, 2020 ** [[Changelog 2020]] -*** Admonitions, inspired by [[https://asciidoctor.org/docs/user-manual/#admonition][Asciidoctor Admonitions]]. [[Features]] +*** Admonitions, inspired by [[https://asciidoctor.org/docs/user-manual/#admonition][Asciidoctor Admonitions]]. [[特色功能]] **** Note #+BEGIN_NOTE It supports */formats/* too. diff --git a/journals/2021_02_20.md b/journals/2021_02_20.md index 606c927e..2cc27de5 100644 --- a/journals/2021_02_20.md +++ b/journals/2021_02_20.md @@ -3,4 +3,4 @@ title: Feb 20th, 2021 --- - DONE Write changelog for v0.0.9 - done:: 1614350275750 \ No newline at end of file + done:: 1614350275750 diff --git a/journals/2021_02_24.md b/journals/2021_02_24.md new file mode 100644 index 00000000..171c7e9c --- /dev/null +++ b/journals/2021_02_24.md @@ -0,0 +1,5 @@ +--- +title: Feb 24th, 2021 +--- + +## \ No newline at end of file diff --git a/pages/Advanced_Queries.md b/pages/Advanced_Queries.md deleted file mode 100644 index edee15d2..00000000 --- a/pages/Advanced_Queries.md +++ /dev/null @@ -1,270 +0,0 @@ ---- -title: Advanced Queries ---- - -- The database that Logseq used is [[https://github.com/tonsky/datascript][Datascript]], which is an immutable in-memory database and [Datalog](https://en.wikipedia.org/wiki/Datalog) query engine in Clojure and ClojureScript. -- Logseq's database schema: - https://github.com/logseq/logseq/blob/master/src/main/frontend/db_schema.cljs -- Please check _Learn Datalog Today_ [^1] and _Datomic query syntax_ [^2] first if you're not familiar with Datalog. -- **Some tips** - created_at:: 1609244703085 - last_modified_at:: 1609244703085 - #+BEGIN_TIP - 1. Page names are stored as lower case in the database. - #+END_TIP -- The query format is something like this: - created_at:: 1609244764756 - last_modified_at:: 1609246099894 - #+BEGIN_EXAMPLE - {:title [:h2 "Your query title"] - :query [:find (pull ?b [*]) - :where ...] - :inputs [...] - :view (fn [query-result] [:div ...]) - :result-transform (fn [query-result] ...) - :collapsed? true} - #+END_EXAMPLE - - | Name | Description | Default | Optional | - |------------------|----------------------------------|---------|----------| - | title | query title, supports hiccup | | true | - | query | datascript query | | false | - | inputs | query inputs | | true | - | view | (fn [query-result] hiccup) | | true | - | collapsed? | Whether to collapse the result | false | true | - | result-transform | (fn [query-result] do something) | | true | -- **Examples** - - 1. Get all tasks - created_at:: 1609232063516 - last_modified_at:: 1609245970090 - - #+BEGIN_SRC clojure - #+BEGIN_QUERY - {:title "All tasks" - :query [:find (pull ?b [*]) - :where - [?b :block/marker ?m] - [(not= ?m "nil")]]} - #+END_QUERY - #+END_SRC - - 2. Get all tasks with a tag "project" - #+BEGIN_SRC clojure - #+BEGIN_QUERY - {:title "All todos with tag project" - :query [:find (pull ?b [*]) - :where - [?p :page/name "project"] - [?b :block/ref-pages ?p]]} - #+END_QUERY - #+END_SRC - - 3. Blocks in 7ds with a page reference of datalog - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title "Blocks in 7ds with a page reference of datalog" - :query [:find (pull ?b [*]) - :in $ ?start ?today ?tag - :where - [?b :block/page ?p] - [?p :page/journal-day ?d] - [(>= ?d ?start)] - [(<= ?d ?today)] - [?b :block/ref-pages ?rp] - [?rp :page/name ?tag]] - :inputs [:7d-before :today "datalog"]} - #+END_QUERY - #+END_SRC - - 4. All TODOs - #+BEGIN_SRC clojure - #+BEGIN_QUERY - {:title "TODO" - :query [:find (pull ?b [*]) - :where - [?b :block/marker ?marker] - [(= "TODO" ?marker)]]} - #+END_QUERY - #+END_SRC - - 5. All the tags specified in the front matter (tags: tag1, tag2) - #+BEGIN_SRC clojure - #+BEGIN_QUERY - {:title "All page tags" - :query [:find ?tag-name - :where - [?tag :page/name ?tag-name]] - :view (fn [tags] - [:div - (for [tag (flatten tags)] - [:a.tag.mr-1 {:href (str "/page/" tag)} - (str "#" tag)])])} - #+END_QUERY - #+END_SRC - - 6. All pages have a "programming" tag - #+BEGIN_SRC clojure - #+BEGIN_QUERY - {:title "All pages have a *programming* tag" - :query [:find ?name - :in $ ?tag - :where - [?t :page/name ?tag] - [?p :page/tags ?t] - [?p :page/name ?name]] - :inputs ["programming"] - :view (fn [result] - [:div.flex.flex-col - (for [page result] - [:a {:href (str "/page/" page)} (clojure.string/capitalize page)])])} - #+END_QUERY - #+END_SRC - - 7. Get all the blocks with the property "type" and the value "programming_lang" - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title [:h2 "Programming languages list"] - :query [:find (pull ?b [*]) - :where - [?b :block/properties ?p] - [(get ?p "type") ?t] - [(= "programming_lang" ?t)]] - } - #+END_QUERY - #+END_SRC - - 8. All todos tagged using current page - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title "All todos tagged using current page" - :query [:find (pull ?b [*]) - :in $ ?current-page - :where - [?p :page/name ?current-page] - [?b :block/marker ?marker] - [?b :block/ref-pages ?p] - [(= "TODO" ?marker)]] - :inputs [:current-page]} - #+END_QUERY - #+END_SRC - - 9. Tasks made active in the last 2 weeks - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title "🟢 ACTIVE" - :query [:find (pull ?h [*]) - :in $ ?start ?today - :where - [?h :block/marker ?marker] - [?h :block/page ?p] - [?p :page/journal? true] - [?p :page/journal-day ?d] - [(>= ?d ?start)] - [(<= ?d ?today)] - [(contains? #{"NOW" "DOING"} ?marker)]] - :inputs [:14d :today] - :result-transform (fn [result] - (sort-by (fn [h] - (get h :block/priority "Z")) result)) - :collapsed? false} - #+END_QUERY - #+END_SRC - - 10. Tasks referencing due dates in the past - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title "⚠️ OVERDUE" - :query [:find (pull ?h [*]) - :in $ ?start ?today - :where - [?h :block/marker ?marker] - [?h :block/ref-pages ?p] - [?p :page/journal? true] - [?p :page/journal-day ?d] - [(>= ?d ?start)] - [(<= ?d ?today)] - [(contains? #{"NOW" "LATER" "TODO" "DOING"} ?marker)]] - :inputs [:56d :today] - :collapsed? false} - #+END_QUERY - #+END_SRC - - 11. Tasks referencing due dates up to 10 days ahead - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title "📅 NEXT" - :query [:find (pull ?h [*]) - :in $ ?start ?next - :where - [?h :block/marker ?marker] - [?h :block/ref-pages ?p] - [?p :page/journal? true] - [?p :page/journal-day ?d] - [(> ?d ?start)] - [(< ?d ?next)] - [(contains? #{"NOW" "LATER" "DOING" "TODO"} ?marker)]] - :inputs [:today :10d-after] - :collapsed? false} - #+END_QUERY - #+END_SRC - - 12. Tasks from last week which are still outstanding (may slip soon!) - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title "🟠 SLIPPING" - :query [:find (pull ?h [*]) - :in $ ?start ?today - :where - [?h :block/marker ?marker] - [?h :block/page ?p] - [?p :page/journal? true] - [?p :page/journal-day ?d] - [(>= ?d ?start)] - [(<= ?d ?today)] - [(contains? #{"NOW" "LATER" "TODO" "DOING"} ?marker)]] - :inputs [:7d :today] - :result-transform (fn [result] - (sort-by (fn [h] - (get h :block/created-at)) result)) - :collapsed? true} - #+END_QUERY - #+END_SRC - - 13. Tasks created more than 1 week ago, less old than 2 months but still outstanding - #+BEGIN_SRC clojure - - #+BEGIN_QUERY - {:title "🔴 STALLED" - :query [:find (pull ?h [*]) - :in $ ?start ?today - :where - [?h :block/marker ?marker] - [?h :block/page ?p] - [?p :page/journal? true] - [?p :page/journal-day ?d] - [(>= ?d ?start)] - [(<= ?d ?today)] - [(contains? #{"NOW" "LATER" "TODO" "DOING"} ?marker)]] - :inputs [:56d :8d] - :result-transform (fn [result] - (sort-by (fn [h] - (get h :block/created-at)) result)) - :collapsed? true} - ]} - #+END_QUERY - #+END_SRC - - 14. Next 7 days' deadline or schedule - ((60531c23-238e-4748-9b19-27088f9c3771)) - #+BEGIN_SRC clojure - #+BEGIN_QUERY - {:title "next 7 days' deadline or schedule" - :query [:find (pull ?block [*]) - :in $ ?start ?next - :where - (or - [?block :block/scheduled ?d] - [?block :block/deadline ?d]) - [(> ?d ?start)] - [(< ?d ?next)]] - :inputs [:today :7d-after] - :collapsed? false} - #+END_QUERY - #+END_SRC -- **Resources** - - [^1]: [Learn Datalog Today](http://www.learndatalogtoday.org/) is an interactive tutorial designed to teach you the Datomic dialect of Datalog. - - [^2]: [[https://docs.datomic.com/query.html][Datomic query documentation]] \ No newline at end of file diff --git a/pages/Changelog_2020.org b/pages/Changelog_2020.org index 657a64e4..3f955947 100644 --- a/pages/Changelog_2020.org +++ b/pages/Changelog_2020.org @@ -23,12 +23,12 @@ This is our last release for 2020, it is a challenging year for everyone, stay :created_at: 1609250758098 :last_modified_at: 1609251021197 :END: -*** [[Features]] +*** [[特色功能]] :PROPERTIES: :created_at: 1609249850194 :last_modified_at: 1609249850194 :END: -**** Simple [[Queries]] support #experiment +**** Simple [[查询]] support #experiment :PROPERTIES: :created_at: 1609249966260 :last_modified_at: 1609251607921 @@ -77,7 +77,7 @@ Go to ~Settings~ and toggle this button: **** 7. ~Push now~ should always work **** 8. Changed files are scrollable so that you can always click ~Download all files as a zip~ **** Fix a lot of CSS issues (especially on iOS) -*** [[Features]] +*** [[特色功能]] :PROPERTIES: :created_at: 1609250411844 :last_modified_at: 1609250585182 @@ -109,7 +109,7 @@ Go to ~Settings~ and toggle this button: **** 16. Avoid Git empty commits *** [[Enhancement]] **** 1. Display orange dot when in editing mode -*** [[Features]] +*** [[特色功能]] **** 1. Auto-export notes as zip files when you refresh the browser and there're new changes on the database schema. #data-safety **** 2. Add ~Download all files as a zip~ support #data-safety [[https://cdn.logseq.com/%2F8b9a461d-437e-4ca5-a2da-18b51077b5142020_11_29_Screenshot%202020-11-29%2023-42-09%20%2B0800.png?Expires=4760264603&Signature=n-hAo72C2l5wyXfOuPxas0505ftBOHNE~Yv61VEWF9m2ysp5RMkCkUJ5ZH-zYnop3AL5bpZiMIWXRH49yxpPfC1aIvcQWWp~71ZGEAIsLB3~aoL34XsfkNjujsREUE8~QXOabnzbSS8wAJ-X71TRzEOMYAhr5V0UEYJNwDEEDtUNtuE-hX1dTwZgVmoUrONDaw2oeg5cyawoxW2KIgX9UkvnhytKs8BXswM78UCFQTTNBL-QvuyjULmEObBdAjnh9I0X1YHZFg4cF-s7AB5EKYCTidpD--3lw9n-Wa2My~Te2g5VvHCZ8PwDWbCvKVN6CXMf8Zyd56EGqkYujPdwAg__&Key-Pair-Id=APKAJE5CCD6X7MP6PTEA][2020_11_29_Screenshot 2020-11-29 23-42-09 +0800.png]] @@ -165,7 +165,7 @@ Add French language support by [[Kramer]] **** 12. Fix a lot of CSS issues!! *** [[Enhancement]] **** 1. Push immediately after you save any block/create a new page -*** [[Features]] +*** [[特色功能]] **** [Page Alias]([[page/alias]]) ***** Actually, it's added months ago but it's not ready before. ***** *How to use it?* @@ -199,12 +199,12 @@ Add French language support by [[Kramer]] *** [[Enhancement]] **** Global css variables support! 🎉🎉🎉 Thank you [[lachyc]]! -*** [[Features]] +*** [[特色功能]] **** 1. Add ~Deadline~ and ~Scheduled~ support! :PROPERTIES: :id: 60531c23-238e-4748-9b19-27088f9c3771 :END: -*How to use it?* +*How to use it?* 1. Type ~/deadline~ or ~/scheduled~ in the block editor. 2. Pick a date, time (optional), and a repeater (optional, see below). 3. Click the ~Submit~ button. @@ -269,7 +269,7 @@ The spent time for this block is ~18s~. **** 7. [[https://github.com/logseq/logseq-internal/pull/154][Cannot drag a block to the first position in a page]] (by [[meh]]) **** 8. [[https://github.com/logseq/logseq/issues/376][Fix cannot drag a block to the first position in a page]] (by [[meh]]) **** 9. Fix inline math parsing -*** [[Features]] +*** [[特色功能]] **** 1. [[Custom theme]] support!! **** 2. CodeMirror integration! #+BEGIN_SRC clojure @@ -285,7 +285,7 @@ The spent time for this block is ~18s~. **** 5. Fixed git branches other than ~master~ not working *** [[Enhancement]] **** Better undo && redo -*** [[Features]] +*** [[特色功能]] **** 1. Type ~s~ to switch between the file and the corresponding page (non editing mode) **** 2. Grammarly support even for single-line blocks Add ~:enable-grammarly? true~ to the file ~logseq/config.edn~. @@ -302,7 +302,7 @@ Add ~:enable-grammarly? true~ to the file ~logseq/config.edn~. **** 2. Fixed custom queries which make the app not responding **** 3. Allow deleting journal pages **** 4. Fixed dropdown modal display (by [[meh]]) -*** [[Features]] +*** [[特色功能]] **** 1. Publishing #experiment Check out the [[https://logseq.github.io/page/publishing][docs]]. ** [[Sep 28th, 2020]] @@ -323,7 +323,7 @@ Check out the [[https://logseq.github.io/page/publishing][docs]]. **** 3. Fixed deleting blocks not working in the "References" section **** 4. Fixed code block doesn't render when it starts with ~:xx~ **** 5. Fixed ~Ctrl + K~ linking not inserting cursor correctly -*** [[Features]] +*** [[特色功能]] **** 1. Multi-line *Displayed Math* support (Katex syntax wrapped by ~$$~) #+BEGIN_EXAMPLE $$ @@ -349,7 +349,7 @@ $$ **** 3. Fixed embedding block with only table shows nothing **** 4. Fixed embedding an empty page (no block) creates unreadable .md files **** 5. Fixed embedded todos don't consistently update as expected -*** [[Features]] +*** [[特色功能]] **** 1. You can change the default home page now, check #faq ** [[Sep 20th, 2020]] *Version 0.0.3.2* @@ -376,7 +376,7 @@ To add a property to any block, you can right click the left dot and click ~Add **** 2. Fixed deleting in backlinks not triggering github sync **** 3. Fixed Page titles when zoomed into a block **** 4. Fixed embedded todos don't consistently update as expected -*** [[Features]] +*** [[特色功能]] **** Convert a block to/from a heading :PROPERTIES: :background_color: rgb(83, 62, 125) @@ -391,7 +391,7 @@ Click ~Convert back to a block~. You can also change the background color of any block, it doesn't have to be a heading. ** [[Sep 14th, 2020]] *Version 0.0.2.9* -*** [[Features]] +*** [[特色功能]] **** 1. [[Internationalization]] (Special thanks to @Kamal for support!) 你好世界! Logseq is coming to 30+ languages, and this release adds support for Chinese (Simplified) and Afrikaans. Languages will be automatically applied depending on your browser settings; if not, go to Settings to manually select languages. ***** English, Chinese (Simplified), Afrikaans: Supported today @@ -406,7 +406,7 @@ If you want to help translate Logseq, sign up here: https://crwd.in/logseq **** 3. Better undo/redo behavior **** 4. Support multiple notifications now (by haoji) **** 5. *All pages* support ~shift+click~ to open in right sidebar (by haoji) -*** [[Features]] +*** [[特色功能]] **** 1. [[Shortcuts change]] [[https://cdn.logseq.com/%2F8b9a461d-437e-4ca5-a2da-18b51077b5142020_09_13_Screenshot%202020-09-13%2015-36-10%20%2B0800.png?Expires=4753582587&Signature=GAjAjKEAx-8ItK04aNXqQzd8NQjfnHi9~CVJeho2yBP5E38BFKqMSVYC5Y1eQaz7jbksyKMuJi27NnM92FrZYJiCgUWtuV1txBhl2ANBRnRHUON7QzLFvY1wZI9~7~QTTsLYBxCDnsynoz3Bp0gS1kmn8eBWFq1KZtrHZ3mGs7HHDREI2PZJHTQsE4qXN1DENh~0RuZ0UsCBisu~5H1JtzDT2riUCurZm08G3EdSZ33Yrr7InA7~EDT8W-lCGhJp9VJSeWpRkYJXPKuwT6RQiA6ZyrLKtDPzn4p3Ik9bNSemIYaNedUt-TKAgDbk17TKrCYk~6QYI8~7EwK87crLQA__&Key-Pair-Id=APKAJE5CCD6X7MP6PTEA][2020_09_13_Screenshot 2020-09-13 15-36-10 +0800.png]] ** [[Sep 11th, 2020]] @@ -419,7 +419,7 @@ If you want to help translate Logseq, sign up here: https://crwd.in/logseq **** 5. Fixed code block highlighting performance issue **** 6. Make it compatible with new date format with roam when importing json **** 7. Fixed page rename && delete -*** [[Features]] +*** [[特色功能]] **** 1. [[Developer mode]] (by haoji) #experiment Developer mode helps contributors and extension developers test their integration with Logseq more efficient. ** [[Sep 9th, 2020]] @@ -432,7 +432,7 @@ Logseq is migrating to creating journal pages on a daily basis for better perfor *** [[Fixed Issues]] **** 1. Fixed not able to DELETE a Page or even Rename a page **** 2. Fixed an issue where contents page might show ~[[]]~ on page links -*** [[Features]] +*** [[特色功能]] **** 1. In search menu, you can press ~shift~ when clicking on a link to open it in sidebar **** 2. Supports directly adding pages to contents in page menu ** [[Sep 8th, 2020]] diff --git a/pages/advanced_commands.md b/pages/advanced_commands.md new file mode 100644 index 00000000..e69de29b diff --git a/pages/contents.md b/pages/contents.md index 619334b5..900ab855 100644 --- a/pages/contents.md +++ b/pages/contents.md @@ -10,18 +10,18 @@ - [Awesome Logseq](https://github.com/logseq/awesome-logseq) - [Roadmap](https://trello.com/b/8txSM12G/logseq-roadmap) - [[Changelog]] -- [[Features]] - - [Backlink]([[term/backlink]]) - - [[Knowledge Graph]] +- [[特色功能]] + - [反向链接]([[term/backlink]]) + - [[知识图谱]] - [[Page and block references]] - [[Page and block embeds]] - - [[Tasks & Todos]] + - [[任务和待办事项]] - [[Commands]] - [[Advanced commands]] - [[Templates]] - - [Page alias]([[term/alias]]) - - [Block properties]([[term/properties]]) - - [[Publishing (Desktop App Only)]] + - [页面别名]([[term/alias]]) + - [块属性]([[term/properties]]) + - [[公开发布 (只支持桌面版)]] - [[Draw]] - [[Slide]] - [[Custom theme]] @@ -32,8 +32,8 @@ - ✨ [[Tips and Tricks]] - [[Advanced Logseq]] - [[Custom keyboard shortcuts]] - - [[Queries]] - - [[Advanced Queries]] + - [[查询]] + - [[高级查询]] - [[Hiccup]] - [[Custom views]] - [Self Hosting Logseq](https://github.com/dustinlacewell/logseq-guide) diff --git a/pages/examples.md b/pages/examples.md deleted file mode 100644 index 444e9e64..00000000 --- a/pages/examples.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: examples ---- - -- Project management - created_at:: 1609233475967 - last_modified_at:: 1609233475967 - - [[Project 1]] - created_at:: 1609233477494 - last_modified_at:: 1609242318919 - - NOW fix some bugs #tag1 #tag2 - created_at:: 1609233363167 - last_modified_at:: 1609233700536 - - LATER chat with friends - created_at:: 1609233394316 - last_modified_at:: 1609234724742 - - [[Project 2]] - created_at:: 1609233487212 - last_modified_at:: 1609233487212 - - DONE finish the demo #tag1 - created_at:: 1609233518468 - last_modified_at:: 1609233678857 - - CANCELED dance with a bear #tag2 - created_at:: 1609233523981 - last_modified_at:: 1609234730471 \ No newline at end of file