LogSeq Advanced Query - Basics & Tips in less then 10 min

Поділитися
Вставка
  • Опубліковано 7 жов 2024

КОМЕНТАРІ • 49

  • @mcaro5908
    @mcaro5908 2 роки тому +2

    Great video, very appreciated
    I'm new to logseq and have had trouble with clicking on the queries to edit as well but haven't been able to dig up any posts about it
    Thanks for sharing this 🙏

    • @toolsontech
      @toolsontech  2 роки тому

      It's always great to hear it helped someone! Good luck on your logseq journey.

  • @notterboutuyer2781
    @notterboutuyer2781 2 роки тому +3

    it should be [( > ?day ?start )] great explanation and documentation. learned a lot, thx

    • @toolsontech
      @toolsontech  2 роки тому

      Excellent, yeah, comparing the parameters against each other is kind of pointless. Should have created a 181 day old test case to be sure it filters out. :)

  • @alexqwxlea8534
    @alexqwxlea8534 2 роки тому +2

    Well made video, especially the code walk-through, kudos

    • @toolsontech
      @toolsontech  2 роки тому

      Thanks, was a bit on the fence on Blender or using Fusion for this, in the end fusion won out because it was much easier to time to what I was saying being inside my video editor and all

  • @smett4
    @smett4 Рік тому +1

    This helps a lot, thanks~

  • @daveplummermd
    @daveplummermd Рік тому

    This is extremely good introduction...it helped me "breakthrough and understand the basic concepts. Well done!

    • @toolsontech
      @toolsontech  Рік тому

      I'm so glad it was helpful. Anything you would love to see in a followup video?

  • @sindoc42
    @sindoc42 Рік тому +1

    OMG, this is exactly the kind of tutorials we need more of, although the music becomes annoying after a while but I love your energy. Good job!

    • @toolsontech
      @toolsontech  Рік тому +1

      Thanks for the feedback :)
      I get instant nightmares on the music in one of my old video's that was way too loud and haunted me with comments till this day.. Will keep en extra eye on it.

    • @sindoc42
      @sindoc42 Рік тому

      @@toolsontech Yeah. My whole way of working with Logseq got revolutionaized with a few queries with you. Thanks for guiding my meditations in Logseq, which is really what they are, lol.

    • @toolsontech
      @toolsontech  Рік тому +1

      Thats awesome to hear, glad it was helpful!

  • @aditsharda8295
    @aditsharda8295 2 роки тому

    Loved the intro!!! And thanks for this video!

    • @toolsontech
      @toolsontech  2 роки тому

      It was so much fun to make the intro, I will make more in the future but probably move them a bit into the video because it's causes a huge drop at the start of my videos by people that don't realize the informative part comes right after.
      Glad to hear you liked it!

  • @oussamatarhi6454
    @oussamatarhi6454 2 роки тому

    Thanks, that was very helpful 👍

    • @toolsontech
      @toolsontech  2 роки тому +2

      Great to hear, that was the goal. :)

  • @BenjaminLStewart
    @BenjaminLStewart Рік тому

    Thanks for sharing this video. Have you done a video on the latest way to (re)sort property columns in a query table? Looking for an intuitive way to do this...

    • @toolsontech
      @toolsontech  Рік тому +1

      Not yet, I got a couple of queries that use sort but I must be making a mistake somewhere because they don't always follow the strict order that I would think they have. Will probably discuss that once my video on journal queries goes up in a couple of weeks.

  • @ColinBoeh
    @ColinBoeh Рік тому

    Well done, thanks buddy :)

  • @junghanacs
    @junghanacs 2 роки тому

    Great!!! Thanks!!

    • @toolsontech
      @toolsontech  2 роки тому

      Thanks for letting me know I'm on the right track. :)

  • @Vinceroni0706
    @Vinceroni0706 7 місяців тому

    Can you do math operation on page properties? For example I have both a start and of the day property, and I want to have those both as columns in a table plus a third column that computes the difference between both times (thus giving the amount of hours worked).

  • @axelrudolf5491
    @axelrudolf5491 10 місяців тому

    In just a few days (and videos) you become my all leading Logseq Guru and Guide! ;) Really like your videos. But sometimes it is also frustrating! :D You show a really cool concept (like the Task Overview in your Starter Kit), I say "cool stuff! I will adopt it!" just to see a couple of videos later, that you throw everything over the pile just for another, even better concept... :D
    Have you also a video about scheeduled and deadline and how to use them?

    • @toolsontech
      @toolsontech  10 місяців тому +1

      Unfortunately that's the curse of constantly tweaking my systems.
      I do know I talked about scheduled and deadline before, but I believe it was a sub section of one of my older videos. Mostly use scheduled on tasks to remind me about things because they show up in my scheduled tasks query even when I miss a day.
      For repeating tasks I put them all on a single page, so it's easy to cleanup once in a while when all the reminders get too much.

    • @axelrudolf5491
      @axelrudolf5491 10 місяців тому

      @@toolsontech Thank you. Do you know, which video it was? Did you make a video about task scheduling?

    • @toolsontech
      @toolsontech  10 місяців тому

      @@axelrudolf5491 Checking my notes I did talk about it a little bit here ua-cam.com/video/LjcreIpujhM/v-deo.html
      But it's mostly how to use the feature, not really diving in depth on how to apply it.

  • @aditsharda8295
    @aditsharda8295 2 роки тому +1

    Putting queries in config.edn is the way to go back there and edit them again on journal pages.

    • @toolsontech
      @toolsontech  2 роки тому

      You mean as a macro? Or are there other ways to apply the queries like in journal?

    • @aditsharda8295
      @aditsharda8295 2 роки тому

      @@toolsontech Under :default-queries in config.edn. you'll find a sub header called :journals.

  • @LinuxForLife
    @LinuxForLife 2 роки тому +1

    👍

  • @nikhilmaddirala
    @nikhilmaddirala Рік тому +1

    What VS Code extension do you use for formatting the queries? I'm trying "Calva" but it doesn't seem to handle indentation properly (probably due to the fact that the clojure query is nested in a Markdown bullet). Thanks for this amazing tutorial btw!

    • @toolsontech
      @toolsontech  Рік тому

      I usually just copy the query from Logseq into VS Code, that way the bullet isn't there and the syntax highlight works much better. But does come with a bit of hassle compared to just opening the .md file.

  • @raysutton2310
    @raysutton2310 Рік тому +1

    FYI: The DB schema link in the notes appears to be broken.

    • @toolsontech
      @toolsontech  Рік тому

      Thanks for letting me know, not sure what's happening but going to get it fixed soon

  • @sindoc42
    @sindoc42 Рік тому +1

    The last greater than, should actually be a less than, FYI 🙂

  • @muffinberg7960
    @muffinberg7960 2 роки тому +2

    full text search we need full text search.

    • @darwis059
      @darwis059 2 роки тому +1

      Unfortunately Datascript doesn't support full-text search

  • @bond246
    @bond246 Рік тому

    Hello, thanks for your advanced query explanation.
    I really like the idea to write queries with VS Code. What are you doing to use code highlighting with clojure on markdown-files? All extentions i found don't highlight inside .md-file.
    Thanks!

    • @toolsontech
      @toolsontech  Рік тому

      I usually load the clojure file in a seperate file, or specify clojure when making code blocks in markdown
      ```clojure
      Query
      ```
      That works in Logseq and most Markdown processors (like gitlab)

  • @VigilanceTech
    @VigilanceTech Рік тому +1

    At 7:00 I don't have the menu item to edit the page in an external editor. What happened to that?

    • @toolsontech
      @toolsontech  Рік тому

      The external editor option only shows up when you have a single page open. Very often I'm either inside a block or I have the journal view and then it doesn't show. Try going to a page with CTRL+K and then checking the menu

  • @GeniusUnleashed
    @GeniusUnleashed 11 місяців тому

    I'm tryng to do a daily note (that I've created) that auto-populates at 12:01am but the one thing it's currently missing is a daily quote pulled from my quotes. Any suggestion on how to do this?

    • @toolsontech
      @toolsontech  10 місяців тому +1

      Hmm, tricky. There might be a way by running a query with a random sort and getting the top one. I would ask in the Logseq forum as there are a couple of people there that could probably make an example on the fly and we can all copy it :D

    • @GeniusUnleashed
      @GeniusUnleashed 10 місяців тому

      @@toolsontech I have, multiple times, haha. I think it's a lost cause at this point :(

  • @mohamedehab-mf7df
    @mohamedehab-mf7df Місяць тому

    please is it possible for a query to return all images? kind of like a gallery view?
    I use this query but it returns audio files too
    #+BEGIN_QUERY
    {:title "All Images"
    :query [:find (pull ?p [*])
    :where
    [?p :block/content ?content]
    [(clojure.string/includes? ?content "![")]]}
    #+END_QUERY