Skip to content

Suffix "0" when exporting user data #1485

@2001db8

Description

@2001db8

Hi,

not really a bug but more of an inconvenience ;)

When exporting the user data, every note will be exported as title0.md instead of title.md:

codimd/lib/user/index.js

Lines 92 to 96 in b260093

let suffix = 0
do {
const separator = suffix === 0 ? '' : '-'
filename = basename + separator + suffix + '.md'
suffix++

I do see the need for the separator part to export notes with the same name as title.md and title-1.md (actually right now it's title0.md and title-1.md) but fail to see why notes with unique titles need the suffix "0". As far as I remember this has not been the case with version 1.x

Regards

Jens

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions