API, paste image, calendar view, multiple tags on multiple lines at once?

Hi

I’m just discovering the app, is there somewhere I can find all features/command available in logseq ? I’m a bit lost about the possibilités

suggestion/question about features :

  • adding tag to multiples lines in one time ?
  • will you have an api ? I’d like to connect Logseq
  • would be absolutely amazing to have a “automatically copy to logseq from clipboard”. I use copyq which is awesome, it’d be even cooler if I could rearrange my clipboard indise my note app
  • pasting images is it coming ?

I was going to by dynalist but now I’ve changed my mind and will dwell into logseq :stuck_out_tongue:

also : calendar view is it possible ?
also, something I miss from dynalist : if I enter let’s say 010121 with a task and a tag for this date (my keyboard is broken i cant do the sign), will this task pop up on my daily notes on this very day ?
Will you sync with google calendar ?

Sorry if there are already answered question

I which the best new years eve to all of you and your families

Diane (ouest of France, learning webdevelopment & playing music)

Bonjour Diane,

I used to be a dynalist user too, now using logseq as my daily driver.
I’ll let the devs reply regarding features and api-related questions.
But I can maybe give you a few tips:

  • for help, click the ? in the bottom right corner of the logseq.com page or go to https://logseq.github.io/page/Changelog and check the sidebar
  • about your daily note/task related question :
    • you can use commands like /scheduled or /deadline to create events and get a reminder on your journal page at the chosen day (you can add #tags if you want)
    • you can write inline : TODO #anytag any text [[a link]] on any page to create a task (tasks related keywords are TODO / DOING / DONE or LATER / NOW ).
      • All your tasks will be automatically shown in the pages [[TODO]] [[DOING]] [[DONE]] [[LATER]] [[NOW]].
      • to access these pages easily, you can manually create a link in your sidebar > CONTENTS section : just write [[TODO]] [[DOING]] [[DONE]] for instance
    • you can also write Queries to see ongoing tasks and overdue tasks in your daily journal page. see here for great examples : https://logseq.github.io/page/queries
      here’s my daily page with some custom css to add emoticons

I added the following queries in my logseq/config.edn - the active, overdue, next 10d, slipping are from user @popsi on the discord channel :

 :default-queries
 {:journals
  [{:title "🔨 NOW"
    :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)]
            [(= ?marker "NOW")]]
    :inputs [:14d :today]
    :result-transform (fn [result]
                        (sort-by (fn [b]
                                   (get b :block/priority "Z")) result))
    :collapsed? false}
	{:title "TODO"
 		:query [:find (pull ?b [*])
        	 :where
         	[?b :block/marker ?marker]
         	[(= "TODO" ?marker)]]
 		:collapsed? false}
   {: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" "TODO"} ?marker)]]
    :inputs [:today :7d-after]
    :collapsed? false}
   
   ;; by popsi ========================
   ;; Tasks made active in last 2 weeks
  {: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}

   ;; Tasks referencing due dates in the past
   {: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}

   ;; Tasks referencing due dates up to 10 days ahead
   {:title "📅 NEXT 10D"
    :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}

   ;; Tasks from last week which are still outstanding (may slip soon!)
   {:title "🟠 SLIPPING (<1W)"
    :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}

   ;; Tasks created more than 1 week ago, less old than 2 months but still outstanding
   {:title "🔴 STALLED (>1W:<2M)"
    :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}
   ]}
  • if you want to refer to a day using [[010121]] you have to tweak your config.edn to set a :date-formatter as explained here : https://logseq.github.io/page/faq#ls-block-5fcd06e0-d7fb-4e63-b7b3-072fe687cdee .
    After the change, you will still have to manually rename existing daily journal pages, so the best practice would be to set the date formatter first on a new repo (and avoid any change later on).

  • note that I would advise using yyyyMMdd or yyyy-MM-dd (iso8601) rather than the french ddMMyy (as french dates will get mixed up when using alphanumeric sorting).

bon courage pour la suite

2 Likes

@cannibalox just posted some tips on help and daily note/task related questions.
I’ll answer the other questions :wink:

adding tag to multiples lines in one time?

You mean adding to multiple blocks, right? It’s not supported yet, but we’ll make sure the future plugins can build this feature.

will you have an api ? I’d like to connect Logseq

Yes, we’ll have an API, we’re still thinking about how to make it easy to use without worrying about the data privacy.

would be absolutely amazing to have a “automatically copy to logseq from clipboard”. I use copyq which is awesome, it’d be even cooler if I could rearrange my clipboard indise my note app

Yes, this is a high priority feature.

pasting images is it coming ?

Yes, we’ll start working on local images support this week.

calendar view is it possible ?

It’ll be started after we fixed some editor bugs and have a stable undo/redo.

Happy holidays to you and your family too!

3 Likes

Hello Tienson,

Thank you for these answers.

adding tag to multiples lines in one time?

You mean adding to multiple blocks, right?
→ yes

Yes, we’ll have an API, we’re still thinking about how to make it easy to use without worrying about the data privacy.

Awesome. I’m collecting a lot of stuff from the web and even though logseq is promising I won’t move until there’s a chrome extension as advanced and useful as this one : Dynalist Highlighter - Chrome Web Store

Yes, (copyq integration) is a high priority feature.

wow, i’m sold!

Yes, we’ll start working on local images support this week.

I’ve seen the implementation and it’s awesome. Please, add an option to “not consider pasted image links in search”, because those big urls are really cluttering the search I think

I can’t wait to see logseq grow !
Best,
Diane

1 Like