Skip to content

[Day One] Journal names with spaces don't work without quotes #17892

@bsoyka

Description

@bsoyka

Extension

https://www.raycast.com/AntonNiklasson/day-one

Raycast Version

1.93.2

macOS Version

15.3.1

Description

Adding an entry when the journal name contains a space character causes an error.

I may be mistaken, as I'm not too familiar with TypeScript and bash, but I believe a quick fix would be to change this line, wrapping ${entry.journal} in quotation marks:

command = `${command} --journal ${entry.journal}`;

Steps To Reproduce

  1. Have a Day One journal with a space character in the title (multiple words).
  2. Open the "Add Entry" command in Raycast.
  3. Fill in all the fields and submit.

Current Behaviour

An error is thrown, saying "Journal does not exist".

Expected Behaviour

The journal entry should be created successfully (unless there are other errors, such as the body text being empty).

As of now, a workaround is to wrap the journal name in quotation marks when entering it into Raycast (i.e. "My Journal" instead of My Journal).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssues related to one of the extensions in the Storeextension: day-oneIssues related to the day-one extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions