Add org-reschedule-past-to-today as exposed function
- Rename imalison:reschedule-past-to-today to org-reschedule-past-to-today - Keep old name as alias for backwards compatibility - Register function in org-agenda-api-exposed-functions for API access Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -210,7 +210,7 @@ This function finds all incomplete items in the agenda files that are scheduled
|
|||||||
in the past and reschedules them to today. Useful for catching up on tasks that
|
in the past and reschedules them to today. Useful for catching up on tasks that
|
||||||
have slipped past their original scheduled date.
|
have slipped past their original scheduled date.
|
||||||
#+begin_src emacs-lisp :tangle org-config-config.el
|
#+begin_src emacs-lisp :tangle org-config-config.el
|
||||||
(defun imalison:reschedule-past-to-today ()
|
(defun org-reschedule-past-to-today ()
|
||||||
"Reschedule all incomplete items scheduled in the past to today.
|
"Reschedule all incomplete items scheduled in the past to today.
|
||||||
Iterates through all org-agenda files and reschedules any TODO items
|
Iterates through all org-agenda files and reschedules any TODO items
|
||||||
that have a SCHEDULED date before today to the current date."
|
that have a SCHEDULED date before today to the current date."
|
||||||
@@ -229,6 +229,9 @@ that have a SCHEDULED date before today to the current date."
|
|||||||
nil
|
nil
|
||||||
'agenda)
|
'agenda)
|
||||||
(message "Rescheduled %d items to today" rescheduled-count)))
|
(message "Rescheduled %d items to today" rescheduled-count)))
|
||||||
|
|
||||||
|
;; Keep old name as alias for backwards compatibility
|
||||||
|
(defalias 'imalison:reschedule-past-to-today 'org-reschedule-past-to-today)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+RESULTS:
|
#+RESULTS:
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 ZgrTqA uxy91e5hpUs8IsoU5rvCKy+PF+Gltkwb+xW8vSRk4kA
|
||||||
|
74MDGFYuPKnbppuiTwcGepn6oE8c8Ay0UoQiXF7XN+Y
|
||||||
|
-> ssh-ed25519 ZaBdSg xwv1yT/D48uSj5QjR5byLkrxJZHzvGHoBneR5aa1WyU
|
||||||
|
o4Wp0ZSNHVsAVYHob55ixrmQmKLj1PQ+WZQrzxLPvUE
|
||||||
|
-> ssh-ed25519 MHZylw gQERoFSnaGkSfvJ5Qr0qDLQmeJ8NVNhwkqNwPKy6wRc
|
||||||
|
B/jiN2RrcxKKaqh7pCQjdAZia2YATu4UbSrBTdQD8ss
|
||||||
|
-> ssh-ed25519 sIUg6g rfit9bzDAhkcq8jrjPJsvGKB+aNp5riplIZwUhovvyc
|
||||||
|
srC28ARGEoJvGtAYFbxKKmkbrD58A8DPPiWHujeKPOw
|
||||||
|
-> ssh-ed25519 TnanwQ Y9X19uyHyVD0egVZHHisXWkKRoFb8ksa0eJDpuirUi4
|
||||||
|
TZuL4SG9L8xhl87AHiGOOL0aWNTj7HDmIYoucPR41TM
|
||||||
|
-> ssh-rsa gwJx0Q
|
||||||
|
H/flkxw6yooU72jt/bDyBWTP6Z04nfgFPLk/05Cdtxijt0eFzx9B8okOHlzpm9qj
|
||||||
|
MbPieJm5TLb0RUq/cI7U4lW2+n7cbz2Kvsq3SVjTaMTNG9tDM6EOUhzmQQX80mJB
|
||||||
|
rJpzh6jJ9FmvM1bRW8TKCopZHRvZw7Pi4yRrs6OlsDYqiIUWfiLuQ/VcoQy/n7Gy
|
||||||
|
Z4wTr0dp2taHuC2vT3bRqBIwI0wft+zCw27foi4YYcGalM/0zDEtRLVcBnSrpaLF
|
||||||
|
/UdLBbrREhhgsiBu2HiBOz19qgI6zNAeXRDDKOwGNqjkV/Z3SgJxbWjiPhKF9xqC
|
||||||
|
lHTvvEOcOC7MxgRgw5td2g
|
||||||
|
-> ssh-ed25519 YFIoHA SQF11EBeCfix6HiSR6r/MxJmtsLDsvVlEWnVSmSH0V0
|
||||||
|
eHIAIKcAFVhoWQc9sI0tqkmK3Rk1rhd4uXA/0p2VDnc
|
||||||
|
-> ssh-ed25519 KQfiow hBQhdWrjl8TW+yzkfx5f3M6A8+xyI1vqTwAA0vDMjFg
|
||||||
|
3cjFwVmxeng/A2u9lGUt0XPFimThxjhgZvSTgVNdrFE
|
||||||
|
-> ssh-ed25519 kScIxg 4q0rnfUJQq1fnXzTvpiLvY7ODCXSYPMvoc51FOfY3VM
|
||||||
|
JnQ1I49zK3UXzeLieN83jZsF4goaq5QkSZUzOgV64Uw
|
||||||
|
-> ssh-ed25519 HzX1zw 2p9iqLRzEzcHtZ5eqBohMOzRvYqul4u2RHmdYxQUCxk
|
||||||
|
RRPAOrQ2keAOeDG75ySSe6s2lfUJ0bfepZ0uLCTdLH8
|
||||||
|
-> ssh-ed25519 KQfiow nUKl6ZvPkS164fXz7RE0GBfvMRdif9mtGWPB+UQgYDk
|
||||||
|
rWHR6NpUGWhov54X5VJf4f8Ga6NTaRNUcCvRb++Cqu0
|
||||||
|
-> ssh-ed25519 1o2X0w oM34g4ZL0UkWaAEs0rzYb81qBvX2H4Q18T6ZS8Zm5xo
|
||||||
|
zTpflvpGbekX+luNFxRthC9b1l0cy3rltYzKHGExh1M
|
||||||
|
-> ssh-ed25519 KQ5iUA wBql7MK1jkIzF6lRiYUJMjVrILlQvxKj5S7yAVVSYik
|
||||||
|
uddojR1rM18WtPYJpe21QcBh00QCF5dRKlAPYfLDPdU
|
||||||
|
-> ssh-ed25519 AKGkDw aQrsVqIn43+zvXrpoGjtI++wZdYGyaCjDKc+V7HuyEA
|
||||||
|
YPXxC6Q63aJ/9rn1bkwcWNN4RQcwJrCqsVXLY2aKTxw
|
||||||
|
-> ssh-ed25519 0eS5+A vhguy6Rm7fixu0zY5zw371ZXBTc/hg2D69k3qUt1Wj0
|
||||||
|
eC0/4SSjdUSqalC2RDLhl+KhlIqwbeIohRclJ8zFXvk
|
||||||
|
-> ssh-ed25519 9/4Prw lvH70wMeiNfbgRkpsYHCxfR8tuP+zx6Qi3WoUQsNsEE
|
||||||
|
maXo8zvQCwy1ppTgdJcN/B4Ox9d04QBaxkQ9h8Ji9Hk
|
||||||
|
-> ssh-ed25519 gAk3+Q EgQVW7fd4PQgfwy243ai7v4L2ud+7RBwpmlxqUCxKlM
|
||||||
|
FA4IWAYcOScCi4q84p9GmVS/qDnrxk6E4Ul32pZxt2Q
|
||||||
|
-> ssh-ed25519 X6eGtQ ESSnvFVceNeVrV2xBrzMHvOeQjjqjvgUfKozGEB29Sw
|
||||||
|
Qa/2/AM5NiPdSBmWasGUCtTqah39/j8BPtjr5rMJ4WM
|
||||||
|
-> ssh-ed25519 0ma8Cw w4CgZu+CZDOT7LLScIVCSuaxguACOIGP07A3/0fY4zs
|
||||||
|
QQ8XCKyySoVSAYR6FemI56D7gCxXZTQehSyG0Z3dmgg
|
||||||
|
-> ssh-ed25519 Tp0Z1Q fY17H92mll9t3WZXKng3nvUpHUD1uyp02E2j6XN8f1I
|
||||||
|
CTAsN/AZqNTg/2CRUeZD6ayzGdk+WLx/90I9ScmMbxk
|
||||||
|
-> ssh-ed25519 ePNWZQ EYE96SFb6UMUcVL+gEGPyqohHeE/UJ1v/9zEP3II+mU
|
||||||
|
Rmm5Udk0l/Ypj58OteLGEv7YHsfeerKH6Qid+9TD/SA
|
||||||
|
-> ssh-ed25519 hILzzA EkTAGo3S8QM8nGn0SqxThD6Qwi/hVVhy558alsiFHkI
|
||||||
|
ns6NAZwrZVcwRKlli4aWyvusI568nyJFsEQ3zFlE364
|
||||||
|
--- FrUd5euhHy668xPRzKhgpPz/KtsbIApHy9jAPwWYNi8
|
||||||
|
<EFBFBD>䳥<EFBFBD>o<EFBFBD><EFBFBD>o{<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>0$J<><4A><0F>c<EFBFBD><63><EFBFBD><EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD>!<1C>zܓv2{><01>J<EFBFBD><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD>&<26>q<EFBFBD><71>a<EFBFBD>>"<22>!l%<18>Vܴ<>w<EFBFBD><14><>$<24><><EFBFBD>
|
||||||
@@ -249,4 +249,8 @@ Returns nil for non-entry templates or templates that can't be converted."
|
|||||||
;; The org-agenda-api-window-habit.el module is now included in the container,
|
;; The org-agenda-api-window-habit.el module is now included in the container,
|
||||||
;; providing /habit-config and /habit-status endpoints for window-habit integration.
|
;; providing /habit-config and /habit-status endpoints for window-habit integration.
|
||||||
|
|
||||||
|
;; Register exposed functions for remote execution via /call-function endpoint
|
||||||
|
(setq org-agenda-api-exposed-functions
|
||||||
|
'((org-reschedule-past-to-today :name "Reschedule Overdue to Today")))
|
||||||
|
|
||||||
;;; custom-config.el ends here
|
;;; custom-config.el ends here
|
||||||
|
|||||||
Reference in New Issue
Block a user