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

Error creating files in nested directories #13

Open
IlyasYOY opened this issue Feb 15, 2024 · 0 comments
Open

Error creating files in nested directories #13

IlyasYOY opened this issue Feb 15, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@IlyasYOY
Copy link
Owner

Describe the bug

Cannot Crete a note if the subdirectory doesn't already exist.

To Reproduce

Try to create a daily note without diary dir.

Expected behavior

Plugin creates required required directiries.

Screenshots

Error executing Lua callback: ....local/share/nvim/lazy/plenary.nvim/lua/plenary/path.lua:643: Could not create file: ~/notes/diary/2024-02-14.md
stack traceback:
        [C]: in function 'error'
        ....local/share/nvim/lazy/plenary.nvim/lua/plenary/path.lua:643: in function 'touch'
        ...s/ck/.local/share/nvim/lazy/obs.nvim/lua/obs/journal.lua:98: in function 'today'
        ...s/ck/.local/share/nvim/lazy/obs.nvim/lua/obs/journal.lua:58: in function 'open_daily'
        .local/share/nvim/lazy/obs.nvim/lua/obs/vault.lua:386: in function 'open_daily'
        .local/share/nvim/lazy/obs.nvim/lua/obs/init.lua:61: in function <.local/share/nvim/lazy/obs.nvim/lua/obs/init.lua:60>

Versions

  • OS: macos,
  • OS version: 13.3,
  • NeoVim: 0.9,
  • Version: master.

Additional context

@IlyasYOY IlyasYOY added bug Something isn't working good first issue Good for newcomers labels Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant