Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No blank entry for today in Journals view with latest feat/db (non-db mode) #187

Open
1 of 2 tasks
garyo opened this issue Dec 14, 2024 · 5 comments
Open
1 of 2 tasks
Assignees
Labels
can't reproduce Can't reproduce. Issue will be closed if reply is not received

Comments

@garyo
Copy link

garyo commented Dec 14, 2024

Search first

  • I searched and no similar issues were found

What Happened?

I updated to the self-built nightly last night, loaded both my big 1000+ note non-db graphs, all looks pretty good. BUT: the default page, and what you get when you click "Journals" on the left, no longer shows an entry for today! There's no place to type today's journal. I have a calendar extension, so I can go to today there and type.
In addition (probably related?) in one of my graphs, my journal for today is now saved as DSS/pages/2024___12___13, Fri.md rather than DSS/journals/2024_12_13.md.
I'm not sure about the etiquette of submitting logseq bugs against self-built nightlies... ?

Reproduce the Bug

Build feat/db branch, SHA 7c7540e2d, on MacOS.
Run it
Click Journals on left sidebar
Notice no blank entry for today, no place to type today's journal.

Expected Behavior

Should behave like the shipped version, with a blank entry for today at the top of the screen

Files

No response

Browser, Desktop or Mobile Platform Information

MacOS 15.1.1, M1 Macbook Pro
Version says 0.10.10, self-built from feat/db SHA 7c7540e2d (Dec 13, 2024).

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
@tiensonqin tiensonqin self-assigned this Dec 15, 2024
@tiensonqin tiensonqin added the can't reproduce Can't reproduce. Issue will be closed if reply is not received label Dec 15, 2024
@tiensonqin
Copy link
Contributor

@garyo Hi! I can't reproduce this bug with the latest commit, can you give it another try?

@garyo
Copy link
Author

garyo commented Dec 15, 2024

After rebuilding with SHA 277096d45 it was still happening for me, so I removed my ~/.logseq folder and my ~/Logseq Notes/Personal/logseq and restarted (still broken) and then reindexed all, and now it does show me a blank entry at the top of the Journal page.

I note that I have a global config.edn in ~/.logseq/config as well as per-graph configs, and a few plugins. I suppose I'll have to try restoring bits of my config at a time to see what breaks it.

@tiensonqin
Copy link
Contributor

@garyo Thank you for giving it another try, I'll leave this issue open for now.
Let me know if you reencounter it.

@garyo
Copy link
Author

garyo commented Dec 15, 2024

I'm now seeing other weird things like my standard journal TODO queries not showing up, tags getting hidden until I click into the block, and odd spacing. Sorry but I think I need to revert to the standard build for now, have to get other things done. I'll try nightlies from this branch again in the future.

@garyo
Copy link
Author

garyo commented Dec 19, 2024

In case it's helpful, here's my global and local config.edn files:

;;; Global logseq config for Gary Oberbrunner
{:meta/version 1

 ;; Currently, we support either "Markdown" or "Org".
 ;; This can overwrite your global preference so that
 ;; maybe your personal preferred format is Org but you'd
 ;; need to use Markdown for some projects.
 ;; :preferred-format ""

 ;; Preferred workflow style.
 ;; Value is either ":now" for NOW/LATER style,
 ;; or ":todo" for TODO/DOING style.
 :preferred-workflow :todo

 ;; The app will ignore those directories or files.
 ;; E.g. :hidden ["/archived" "/test.md" "../assets/archived"]
 :hidden []

 ;; When creating the new journal page, the app will use your template if there is one.
 ;; You only need to input your template name here.
 :default-templates
 {:journals ""}

 ;; Whether to enable hover on tooltip preview feature
 ;; Default is true, you can also toggle this via setting page
 :ui/enable-tooltip? true

 ;; Enable Block timestamp
 :feature/enable-block-timestamps? false

 ;; Enable remove accents when searching.
 ;; After toggle this option, please remember to rebuild your search index by press (cmd+c cmd+s).
 :feature/enable-search-remove-accents? true

 ;; Disable Built-in Scheduled and deadline Query
 ;; :feature/disable-scheduled-and-deadline-query? true

 ;; Specify the date on which the week starts.
 ;; Goes from 0 to 6 (Monday to Sunday), default to 6
 :start-of-week 6

 ;; Specify a custom CSS import
 ;; This option take precedence over your local `logseq/custom.css` file
 ;; You may find a list of awesome logseq themes here:
 ;; https://github.com/logseq/awesome-logseq#css-themes
 ;; My custom theme -- Ctrl/⌘-R to reload
 ;;; Not working 100% with 0.9.0 and later
 ;;;; :custom-css-url "@import url('https://storage.googleapis.com/logseq-themes/oberbrunner-logseq-theme.css');"

 ;; Set Bullet indentation when exporting
 ;; default option: tab
 ;; Possible options are for `:sidebar` are
 ;; 1. `:eight-spaces` as eight spaces
 ;; 2. `:four-spaces` as four spaces
 ;; 3. `:two-spaces` as two spaces
 ;; :export/bullet-indentation :tab


 ;; When :all-pages-public? true, export repo would export all pages within that repo.
 ;; Regardless of whether you've set any page to public or not.
 ;; Example:
 ;; :publishing/all-pages-public? true

 ;; Specify default home page and sidebar status for Logseq
 ;; If not specified, Logseq default opens journals page on startup
 ;; value for `:page` is name of page
 ;; Possible options for `:sidebar` are
 ;; 1. `"Contents"` to open up `Contents` in sidebar by default
 ;; 2. `page name` to open up some page in sidebar
 ;; 3. Or multiple pages in an array ["Contents" "Page A" "Page B"]
 ;; If `:sidebar` is not set, sidebar will be hidden
 ;; Example:
 ;; 1. Setup page "Changelog" as home page and "Contents" in sidebar
 ;; :default-home {:page "Changelog", :sidebar "Contents"}
 ;; 2. Setup page "Jun 3rd, 2021" as home page without sidebar
 ;; :default-home {:page "Jun 3rd, 2021"}
 ;; 3. Setup page "home" as home page with multiple pages in sidebar
 ;; :default-home {:page "home" :sidebar ["page a" "page b"]}

 ;; Tell logseq to use a specific folder in the repo as a default location for notes
 ;; if not specified, notes are stored in `pages` directory
 ;; :pages-directory "your-directory"

 ;; Tell logseq to use a specific folder in the repo as a default location for journals
 ;; if not specified, journals are stored in `journals` directory
 ;; :journals-directory "your-directory"

 ;; Set this to true will convert
 ;; `[[Grant Ideas]]` to `[[file:./grant_ideas.org][Grant Ideas]]` for org-mode
 ;; For more, see https://github.com/logseq/logseq/issues/672
 ;; :org-mode/insert-file-link? true

 ;; If you prefer to use the file name as the page title
 ;; instead of the first heading's title
 ;; the only option for now is `file`
 ;; :page-name-order "file"

 ;; Setup custom shortcuts under `:shortcuts` key
 ;; Syntax:
 ;; 1. `+` means keys pressing simultaneously. eg: `ctrl+shift+a`
 ;; 2. ` ` empty space between keys represents key chords. eg: `t s` means press `s` follow by `t`
 ;; 3. `mod` means `Ctrl` for Windows/Linux  and `Command` for Mac
 ;; 4. use `false` to disable particular shortcut
 ;; 4. you can define multiple bindings for one action, eg `["ctrl+j" "down"]`
 ;; full list of configurable shortcuts are available below:
 ;; https://github.com/logseq/logseq/blob/master/src/main/frontend/modules/shortcut/config.cljs
 ;; Example:
 ;; :shortcuts
 ;; {:editor/new-block       "enter"
 ;;  :editor/new-line        "shift+enter"
 ;;  :editor/insert-link     "mod+shift+k"
 ;;  :editor/hightlight       false
 ;;  :ui/toggle-settings     "t s"
 ;;  :editor/up              ["ctrl+k" "up"]
 ;;  :editor/down            ["ctrl+j" "down"]
 ;;  :editor/left            ["ctrl+h" "left"]
 ;;  :editor/right           ["ctrl+l" "right"]}
:shortcuts
 {
  ;; Basics
  :go/search                                "mod+s" ;;"mod+k"
  :go/search-in-page                        "shift+mod+s" ;;"mod+shift+k"

  :editor/undo                              ["mod+/" "mod+z"] ;;"mod+z"
  :editor/redo                              "shift+mod+/" ;;["shift+mod+z" "mod+y"]
  :editor/copy                              ["mod+c" "alt+w"] ;;"mod+c"
  :editor/copy-embed			    ["shift+mod+e"] ;; ctrl+e default, moved so I can have end-of-line
  :misc/copy                                ["mod+c" "alt+w"] ;;"mod+c"

  ;; Navigation
  ;; :editor/up                                ["mod+p" "up"] ;;"up"
  ;; :editor/down                              ["mod+n" "down"] ;;"down"
  :editor/left                              ["ctrl+b" "left"] ;;"left"
  :editor/right                             ["ctrl+f" "right"] ;;"right"

  ;; :editor/zoom-in                           "mod+right" ;;"alt+right"
  ;; :editor/zoom-out                          "mod+left" ;;"alt+left"

  ;; :editor/collapse-block-children           "mod+up"
  ;; :editor/expand-block-children             "mod+down"
  ;; :editor/toggle-open-blocks                "t o"

  ;; :go/backward                              "mod+open-square-bracket"
  ;; :go/forward                               "mod+close-square-bracket"

  ;; :go/home                                  "g h"
  ;; :go/journals                              "g j"
  ;; :go/all-pages                             "g a"
  ;; :go/graph-view                            "g g"
  ;; :go/flashcards                            "g f"
  ;; :go/tomorrow                              "g t"
  ;; :go/next-journal                          "g n"
  ;; :go/prev-journal                          "g p"
  ;; :go/keyboard-shortcuts                    "g s"
  :ui/open-new-window                       false ;;"mod+n"

  ;; Block editing general
  ;; :editor/backspace                         "backspace"
  ;; :editor/delete                            "delete"

  :editor/indent                            ["alt+right" "tab"]
  :editor/outdent                           ["alt+left" "shift+tab"]

  ;;  :editor/new-block                         "alt+enter" ;;"enter"
  ;; :editor/new-line                          "shift+enter"

  ;; :editor/cycle-todo                        "mod+enter"

  ;; :editor/follow-link                       "mod+c mod+o" ;;"mod+o"
  ;; :editor/open-link-in-sidebar              "mod+shift+o"

  ;; :editor/move-block-up                     "alt+shift+up"
  ;; :editor/move-block-down                   "alt+shift+down"

  :editor/escape-editing                    "mod+g" ;;false

  ;; Block command editing
  ;; :editor/clear-block                       "alt+l"
  :editor/kill-line-before                  "mod+u mod+k" ;;"alt+u"
  :editor/kill-line-after                   "mod+k" ;;"alt+k"

  :editor/beginning-of-block                "ctrl+a" ;;"alt+a"
  :editor/end-of-block                      "ctrl+e" ;;"alt+e"

  :editor/forward-word                      "alt+f"
  :editor/backward-word                     "alt+b"

  ;; :editor/forward-kill-word                 "alt+d"
  :editor/backward-kill-word                "mod+backspace" ;;"alt+w"

  ;; :editor/replace-block-reference-at-point  "mod+shift+r"
  ;; :editor/paste-text-in-one-block-at-point  "mod+shift+v"

  ;; Block selection
  ;; :editor/open-edit                         "enter"
  ;; :editor/select-all-blocks                 "mod+shift+a"
  :editor/select-block-up                   "alt+up" ;;"shift+up"
  :editor/select-block-down                 "alt+down" ;;"shift+down"
  ;; :editor/delete-selection                  ["backspace" "delete"]

  ;; Formatting
  :editor/bold                              false ;;"mod+b"
  :editor/insert-link                       "mod+c mod+l" ;;"mod+l"
  ;; :editor/italics                           "mod+i"
  ;; :editor/highlight                         "mod+shift+h"

  ;; Toggle
  ;; :ui/toggle-help                           "shift+/"
  ;; :ui/toggle-wide-mode                      "t w"
  ;; :ui/toggle-cards                          "t c"
  ;; :ui/toggle-document-mode                  "t d"
  ;; :ui/toggle-brackets                       "mod+c mod+b"
  ;; :ui/toggle-theme                          "t t"
  ;; :ui/toggle-left-sidebar                   "t l"
  ;; :ui/toggle-right-sidebar                  "t r"
  ;; :ui/toggle-settings                       ["t s" "mod+,"]
  ;; :ui/toggle-contents                       "mod+shift+c"

  ;; Others
  ;; :pdf/previous-page                        "alt+p"
  ;; :pdf/next-page                            "alt+n"

  ;; :command/run                              "mod+shift+1"

  ;; :ui/goto-plugins                          "t p"

  ;; :sidebar/clear                            "mod+c mod+c"
  ;; :sidebar/open-today-page                  "alt+shift+j"

  ;; :search/re-index                          "mod+c mod+s"

  ;; :editor/insert-youtube-timestamp          "mod+shift+y"

  :auto-complete/prev                       ["mod+p" "up"] ;;"up"
  :auto-complete/next                       ["mod+n" "down"] ;;"down"
  ;; :auto-complete/complete                   "enter"
  ;; :auto-complete/shift-complete             "shift+enter"

  ;; :date-picker/prev-day                     "left"
  ;; :date-picker/next-day                     "right"
  ;; :date-picker/prev-week                    "up"
  ;; :date-picker/next-week                    "down"
  ;; :date-picker/complete                     "enter"


  ;; :ui/select-theme-color                    "t i"
  ;; :editor/open-file-in-default-app          false
  ;; :editor/open-file-in-directory            false
  ;; :editor/strike-through                    "mod+shift+s"
  ;; :cards/forgotten                          "f"
  ;; :cards/next-card                          "n"
  ;; :cards/recall                             "t"
  ;; :cards/remembered                         "r"
  ;; :cards/toggle-answers                     "s"
  ;; :command-palette/toggle                   "mod+shift+p"
  ;; :command/toggle-favorite                  "mod+shift+f"
  ;; :git/commit                               "c"

  :graph/open "shift+alt+g" ; for compat with plugin that wants this one
 }

 ;; By default, pressing `Enter` in the document mode will create a new line.
 ;; Set this to `true` so that it's the same behaviour as the usual outliner mode.
 :shortcut/doc-mode-enter-for-new-block? false

 ;; Whether to show command doc on hover
 :ui/show-command-doc? true

 ;; Whether to show empty bullets for non-document mode (the default mode)
 :ui/show-empty-bullets? false

 ;; Pre-defined :view function to use in Query
 :query/views
 {:pprint
  (fn [r] [:pre.code (pprint r)])}

 ;; Pre-defined :result-transform function to use in Query
 :query/result-transforms
 {:sort-by-priority
  (fn [result] (sort-by (fn [h] (get h :block/priority "Z")) result))}

 ;; The app will show those queries in today's journal page,
 ;; the "ONGOING" query shows the tasks which are ongoing (DOING),
 ;; the "NEXT" query shows the future (TODO) tasks.
 :default-queries
 {:journals
  [{:title "🔨 **ONGOING NOW**"
    :query [:find (pull ?h [*])
            :where
            [?h :block/marker ?marker]
            [(contains? #{"NOW" "DOING"} ?marker)]
            ]
    :result-transform :sort-by-priority
    :collapsed? false}
   {:title "📅 NEXT"
    :query [:find (pull ?h [*])
            :where
            [?h :block/marker ?marker]
            [(contains? #{"LATER" "TODO"} ?marker)]
            ]
    :result-transform :sort-by-priority
    :collapsed? false}]}

 ;; Add your own commands: strings just insert replacement text
 ;; E.g. [["js" "Javascript"]]
 :commands [
 ]

 ;; Macros replace texts and will make you more productive.
 ;; For example:
 ;; Change the :macros value below to:
 ;; {"poem" "Rose is $1, violet's $2. Life's ordered: Org assists you."}
 ;; input "{{poem red,blue}}"
 ;; becomes
 ;; Rose is red, violet's blue. Life's ordered: Org assists you.
 :macros {
   "cl-gh" "[Colourlab issue $1](https://github.com/Colourlab-Ai/Colourlab/issues/$1)"
   "cl-pr" "[Colourlab PR $1](https://github.com/Colourlab-Ai/Colourlab/pull/$1)"
 }

 :markdown/version 2

 ;; The default level to be opened for the linked references.
 ;; For example, if we have some example blocks like this:
 ;; - a [[page]] (level 1)
 ;;   - b        (level 2)
 ;;     - c      (level 3)
 ;;       - d    (level 4)
 ;;
 ;; With the default value of level 2, `b` will be collapsed.
 ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
 :ref/default-open-blocks-level 2

 :ref/linked-references-collapsed-threshold 50
 :graph/settings {:journal? false, :orphan-pages? false, :builtin-pages? false}

 ;; E.g. "2022/01/06, Thu"
 :journal/page-title-format "yyyy/MM/dd, EEE"
 :ui/show-brackets? false

 ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
 ;; :srs/learning-fraction 0.5

 ;; the initial interval after the first successful review of a card (default 4)
 ;; :srs/initial-interval 4

 ;; hide specific properties for blocks
 ;; E.g. :block-hidden-properties #{:created-at :updated-at}
 ;; :block-hidden-properties #{}

 ;; Enable all your properties to have corresponding pages
 :property-pages/enabled? true

 ;; Properties to exclude from having property pages
 ;; E.g.:property-pages/excludelist #{:duration :author}
 ;; :property-pages/excludelist

 ;; Enables property values to contain a mix of tags, page-refs, special
 ;; punctuation and free-form text.
 ;; Re-index current graph for config to take effect
 :rich-property-values? true

 ;; logbook setup
 ;; :logbook/settings
 ;; {:with-second-support? false ;limit logbook to minutes, seconds will be eliminated
 ;;  :enabled-in-all-blocks true ;display logbook in all blocks after timetracking
 ;;  :enabled-in-timestamped-blocks false ;don't display logbook at all
 ;; }

 ;; Mobile photo uploading setup
 ;; :mobile/photo
 ;; {:allow-editing? true}

 ;; Mobile features options
 ;; Gestures
 ;; :mobile
 ;; {:gestures/disabled-in-block-with-tags ["kanban"]}

 ;; Extra CodeMirror options
 ;; :editor/extra-codemirror-options {:keyMap "emacs" :lineWrapping true}

 ;; ignore #+keyword: for parsing page references in orgmode
 ;; :ignored-page-references-keywords #{"author" "startup"}

 ;; Quick capture templates on mobile for recieving contents from other apps.
 ;; Each template contains three elements {time}, {text} and {url}, which can be auto-expanded
 ;; by received contents from other apps. Note: the {} cannot be omitted.
 ;; - {time}: capture time
 ;; - {text}: text that users selected before sharing.
 ;; - {url}: url or assets path for media files stored in Logseq.
 ;; You can also reorder them, or even only use one or two of them in the template.
 ;; You can also insert or format any text in the template as shown in the following examples.
 ;; :quick-capture-templates
 ;; {:text "[[quick capture]] **{time}**: {text} from {url}"
 ;;  :media "[[quick capture]] **{time}**: {url}"}

 ;; File sync options
 ;; Ignore these files when syncing, regexp is supported.
 ;; :file-sync/ignore-files []

 ;; dwim (do what I mean) for Enter key when editing.
 ;; Context-awareness of Enter key makes editing more easily
 ; :dwim/settings {
 ;   :admonition&src?  true
 ;   :markup?          false
 ;   :block-ref?       true
 ;   :page-ref?        true
 ;   :properties?      true
 ;   :list?            true
 ; }

 }

and local:

{:meta/version 1
 :favorites []
 :mobile/toolbar-stats {:bold {:counts 0}, :brand-youtube {:counts 0}, :checkbox {:counts 0}, :parentheses {:counts 0}, :command {:counts 0}, :calendar {:counts 0}, :paint {:counts 0}, :list {:counts 0}, :link {:counts 0}, :strikethrough {:counts 0}, :code {:counts 0}, :camera {:counts 1}, :rotate {:counts 0}, :tag {:counts 0}, :brackets {:counts 0}, :italic {:counts 0}, :a-b {:counts 0}, :rotate-clockwise {:counts 0}}
 :feature/enable-whiteboards? true
 :file/name-format :triple-lowbar
 :shortcuts {:editor/right ["ctrl+f" "right"], :editor/zoom-out "mod+left", :go/search-in-page "shift+mod+s", :editor/beginning-of-block "ctrl+a", :go/search "mod+s", :editor/kill-line-before "mod+u mod+k", :editor/left ["ctrl+b" "left"], :auto-complete/next ["mod+n" "down"], :editor/select-block-up "alt+up", :editor/select-block-down "alt+down", :auto-complete/prev ["mod+p" "up"], :editor/outdent ["alt+left" "shift+tab"], :editor/copy-embed ["shift+mod+e"], :editor/end-of-block "ctrl+e", :editor/insert-link "mod+c mod+l", :graph/open "shift+alt+g", :editor/indent ["alt+right" "tab"], :editor/copy ["mod+c" "alt+w"], :editor/escape-editing "mod+g", :editor/bold false, :editor/redo "shift+mod+/", :editor/backward-kill-word "mod+backspace", :ui/open-new-window false, :editor/zoom-in "meta+→", :editor/kill-line-after "mod+k", :editor/undo ["mod+/" "mod+z"], :misc/copy ["mod+c" "alt+w"]}
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't reproduce Can't reproduce. Issue will be closed if reply is not received
Projects
None yet
Development

No branches or pull requests

2 participants