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

core.summary failed to generate correct path if the workspace contain a - character #1071

Open
2 tasks done
amalgame21 opened this issue Sep 9, 2023 · 3 comments
Open
2 tasks done
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.

Comments

@amalgame21
Copy link

amalgame21 commented Sep 9, 2023

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

NVIM v0.9.1

Neorg setup

require('neorg').setup {
    load = {
	["core.summary"] = {},
        ["core.defaults"] = {},
        ["core.dirman"] = {
            config = {
                workspaces = {
                    work = "~/notes/w-ork",
                }
            }
        }
    }
}

Notice the - in the path of workspace.

Actual behavior

Use :Neorg generate-workspace-summary to generate a summary after adding a new note named "Hello". The corresponding output become:
- {:$/home/user/notes/w-ork/Hello:}[Hello]

Which redirected me to a file with path ~/notes/w-ork/home/user/notes/w-ork/Hello.norg

Expected behavior

The correct corresponding output should be:
- {:$/Hello:}[Hello]

Steps to reproduce

As described in the Actual behavior section.

Potentially conflicting plugins

No response

Other information

Maybe related to #1012

Help

None

Implementation help

No response

@amalgame21 amalgame21 added the bug Issues related to bugs. Please attach a severity, a priority and category with this label. label Sep 9, 2023
@vhyrro
Copy link
Member

vhyrro commented Sep 9, 2023

Right I would assume there's an issue somewhere with lua patterns which are mistreating the - character. I'll let you know if and when I fix it :)

@amalgame21
Copy link
Author

Thanks! Take your time!
Btw I just discovered this plugin few days ago, this is really interesting!
Can't wait for the 6th tutorial on youtube :D

@Anthony-E-B
Copy link

Cannot reproduce on Linux nor Windows with nvim 0.9.1 and latest version of neorg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs. Please attach a severity, a priority and category with this label.
Projects
None yet
Development

No branches or pull requests

3 participants