Skip to content

Commit

Permalink
Fixed #89,#93: Add predefines:
Browse files Browse the repository at this point in the history
${relativeFileDirname}
${workspaceFolderBasename}
${file}
  • Loading branch information
telesoho committed Dec 17, 2022
1 parent c4c5667 commit d91f22c
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 3,645 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Launch Extension",
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"request": "launch",
"type": "pwa-extensionHost",
"type": "extensionHost",
"preLaunchTask": "npm: compile"
},
{
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Change Log

## 0.19.4 (December 17, 2022)

- Add ${relativeFileDirname} ${workspaceFolderBasename} ${file} predefines. #89 #93

## 0.19.3 (November 23, 2022)

- Add: ${datetime|format} supported. #91
- Add: ${datetime|format} supported. #91

## 0.19.2 (November 16, 2022)

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ Smartly paste for Markdown.

- Predefined variables

- `${workspaceRoot}` - the path of the folder opened in VS Code
- `${fileWorkspaceFolder}` - - the current opened file's workspace folder
- `${workspaceRoot}` or `${workspaceFolder}` - the path of the folder opened in VS Code
- `${workspaceFolderBasename}` - the name of the folder opened in VS Code without any slashes (/)
- `${fileWorkspaceFolder}` - the current opened file's workspace folder
- `${file}` or `${filePath}` - the current opened file
- `${relativeFileDirname}` - the current opened file's dirname relative to `$fileWorkspaceFolder`
- `${fileBasename}` - the current opened file's base name
- `${fileBasenameNoExtension}` - the current opened file's base name with no file extension
- `${fileExtname}` - the current opened file's extension
Expand Down
Loading

0 comments on commit d91f22c

Please sign in to comment.