Comments (3)
from denote.
This is the code from org-journal that does it. It just adds the file to org-agenda-files. Considering that the use case is based on org-journal. restricting this to org-mode & org-agenda seems OK vs. a broader calendar.el / diary approach.
I believe this can be done right now via user-specific emacs lisp. It would certainly be cool to have it out-of-the-box from Denote, especially if it's linked to a specific silo or silos.
(defun org-journal--update-org-agenda-files ()
"Adds the current and future journal files to `org-agenda-files'
containing TODOs, and cleans out past org-journal files."
(when org-journal-enable-agenda-integration
(let ((not-org-journal-agenda-files
(seq-filter
(lambda (fname)
(not (string-match (org-journal--dir-and-file-format->pattern) fname)))
(org-agenda-files)))
(org-journal-agenda-files
(let* ((future (org-journal--read-period 'future))
(beg (car future))
(end (cdr future)))
(setcar (cdr beg) (1- (cadr beg))) ;; Include today; required for `org-journal--search-build-file-list'
(when (< (nth 2 (decode-time (current-time))) org-extend-today-until)
(setq beg (decode-time (apply #'encode-time `(0 59 -1 ,(nth 1 beg) ,(nth 0 beg) ,(nth 2 beg))))
beg (list (nth 4 beg) (nth 3 beg) (nth 5 beg))))
(org-journal--search-build-file-list
(org-journal--calendar-date->time beg)
(org-journal--calendar-date->time end)))))
(org-store-new-agenda-file-list (append not-org-journal-agenda-files
org-journal-agenda-files)))))
`
from denote.
from denote.
Related Issues (20)
- [Suggestion] Getting the id of a denote link at point HOT 7
- rename files errors with wrong-type-argument stringp nil HOT 9
- denote-rename-file does not remove the older file HOT 13
- Notes with multiple attachments HOT 10
- When ~denote-org-capture-specifiers~ don't include a format specificer for a link don't call ~org-get-id-create~ HOT 5
- Suggestion a denote-keyword-append function. HOT 5
- error with denote-files-matching-regexp-prompt HOT 5
- Nested silo interferes with `denote-directory-files` (was: "dblock enhancement add a silo target") HOT 10
- denote-rename-file-title ==> Destination file xxx already exists HOT 13
- Make default file permission configurable HOT 2
- How to make heading with custom_id properties searchable? HOT 1
- Backlinks buffer links not working with nested dirs HOT 1
- `denote-create-note` silently HOT 2
- "No links found" when using `denote-find-link` in denote files inside a silo HOT 10
- When exporting all my notes to Markdown, `denote:` links point to `.org` files HOT 7
- Cannot insert links in org indirect buffer HOT 3
- Only use ASCII in file names
- Exclude keywords while using dblocks HOT 1
- Lisp error: (void-function denote-link-buttonize-buffer) HOT 1
- Feature request : adding an option to list empty or non-empty notes with denote-sort-dired HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from denote.