8000 Refactor handling of paths and file names · Issue #478 · vimwiki/vimwiki · GitHub
[go: up one dir, main page]

Skip to content

Refactor handling of paths and file names #478

@EinfachToll

Description

@EinfachToll

A constant source of bugs is the sloppy, ad-hoc internal handling of file paths. Currently, paths are represented by strings and manipulated either "manually" using string operations or by using Vim's functions like fnamemodify(). Some edge cases which often go wrong now:

  • path separators can be / or \ or both, depending on usage and platform
  • what about \/?
  • a directory path can end in / or not
  • unix paths can contain '~'
  • Windows is normally case insensitive, Unix isn't
  • etc.

We need a small path manipulating library which handles all the edge cases and hides the internals, so that the programmer isn't tempted to fuddle with strings.

Items to address:

Metadata

Metadata

Assignees

Labels

WindowsWindows specific issuesbuglinkRelated to link and path creation, modification, use [See #478]refLong term run, to use as a reference

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0