Skip to content

Use absolute path when opening new content in editor #1589

@riklopfer

Description

@riklopfer

Currently, when hugo --source="/path/to/hugo/site" new post/test.md --editor="subl" is invoked from anywhere but inside the hugo site directory, it will create the file in the correct place, but the editor will open a non-existent file referenced by the relative path post/test.md

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions