Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

token expansion before filepath detection #39

Closed
clydegale opened this issue Jan 29, 2019 · 2 comments
Closed

token expansion before filepath detection #39

clydegale opened this issue Jan 29, 2019 · 2 comments

Comments

@clydegale
Copy link

What I'm doing

Creating a new note via the "VSNotes: Create a new Note" option with the following name:
meeting/test meeting

Expected behaviour

As documented I expect that the folder "meeting" is created and inside will be the note with expanded tokens (i.e. a timestamp):
meeting/2019-01-25_11-00_test_meeting

Actual behaviour

Token expansion seem to be happening bevore file path detection, the folder and note that will be created are:
2019-01-25_11-00_meeting/test_meeting

Additional info

VS Code:

Version: 1.30.2 (system setup)
Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
Date: 2019-01-07T22:54:13.295Z
Electron: 2.0.12
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Windows_NT x64 10.0.16299

VS Notes Version: 0.6.0

@wolfhoundjesse
Copy link
Collaborator

wolfhoundjesse commented Jan 30, 2019

The extension is splitting based on the path separator, a back slash in Windows, but you are using a forward slash.

I can reproduce this on Windows 10, but I haven't tested the behavior on Linux.

@clydegale
Copy link
Author

Ah, I see. It is working with backslash. Thank you for your quick response 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants