Skip to content

Make org-journal-new-entry honor the full timestamp and not only the day #438

Description

@lhernanz

Is your feature request related to a problem? Please describe.
Sometimes I create entries in some other file and I want to create a link in the journal when clocking out. But I want the entries to be place at the start of the event, not at the end, therefore I want to be able to create entries at specific points in the past.

Describe the solution you'd like
Currently, org-journal-new-entry already supports a time parameter to create entries and specific points in the past. Unfortunately, only the day component of the time parameter is honored and the entry is created at the current time. If you are creating an entry of the same date, the time parameter does not have any practical effect (except in the corner case that you are extending the day)

Describe alternatives you've considered
Implementing this change should be straightforward, at least of the case of the same day where no day extension is needed. You just need to add the time parameter to the following line

(unless (eq (current-column) 0) (insert "\n"))
and probably
;; “time” is yesterday with org-extend-today-until,

As these lines are in the middle of a function, it is difficult to get the desired behavior without redefining the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions