logseq / logseq/logseq

current page dynamic variable template should detect current page while scrolling in journals

Open
#7,196 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

:type/enhancement journals template
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

I have a template that uses the `<% current page %>` dynamic variable. If I go to the journal and scroll down to a date in the past and then instantiate this template, it will replace the dynamic variable with the current date, not with the date that I am actually looking at.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by opening a journal, scrolling to an earlier date, and instantiating a template containing the < current page > dynamic variable. Trace the journal's selected or visible date and the template variable resolution, then verify that the variable uses the date being viewed rather than today's date.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.