Releases: sidmishraw/topper
Enhanced intrinsic variables
Added three new intrinsic variables:
-
pathFromRepositoryRoot
- The path of the file from the current workspace (or project) root. For example, if you're working on file/project/dir1/file1.xml
then this will givedir1/file1.xml
. This is a relative path from your workspace's root. -
absFilePath
- This is the absolute path of the file obtained by querying the underlying OS Filesystem. -
repositoryRootPath
- This is the root path of the workspace (or repository or project).
Added license text generation for header.
Merge pull request #12 from sidmishraw/feature/license-generation Added license header text generation.
Added configuration for customizing default header template
In this release, topper introduces a new configuration parameter for customizing the default header template. The default header template is used when a custom header template is not added for a particular language. The earlier versions of topper used a hard-coded default header template, this has been externalized for the user to customize.
One thing to consider is that the language ID used for the default header template has to be default
and it should not be tinkered with!!
1.0.0 First non-alpha or beta-release
Rewrote the code from scratch in TS for better maintainability. Added in features such as data formatting, custom last modified date capture regex, etc.
Fixed the issue [problem about last-modified when press cmd+s #3]
[v0.3.2]
- Fixed the issue problem about last-modified when press cmd+s #3. Now, topper's watcher listens to the
TextDocumentWillSaveEvent
and updates the last-modified field before the document saves.
[v0.3.1] Fixed the issue of Topper capturing templates of "last-modified"
[v0.3.1]
- Fixed the issue of Topper capturing templates of "last-modified". Now, there are strict patterns in place.
v0.3.0: Last modified gets updated automatically
[v0.3.0]
- Fixed issue where the @last-modified field in the header was not getting updated automatically. Now, there is a configuration field topper.lastModified where the users can specify their custom field names for last-modified incase they do not use @last-modified. The default value is @last-modified.
Caveats: The implementation is choppy in some aspects because of limited support from VS Code APIs. Expect a better implementation in the next version.
- Code cleanup.
v0.2.0: Added profile specific keyboard shortcuts
[v0.2.0]
-
Code cleanup.
-
Addition of profile specific shortcuts added to
keybinding.json
of VSCode:
{
"key": "cmd+shift+t 1",
"command": "topper.addTopHeader.personalProfile"
},
{
"key": "shift+cmd+t 2",
"command": "topper.addTopHeader.officeProfile"
}
The first key combination is Command + Shift + T
followed by a 1
or 2
depending on the profile. The user is free to bind any profile to any key combination.
The commandId is of the form topper.addTopHeader.<your-profile-name>
.
v0.1.0
Latest stable from v0.0.3.
Topper v0.0.3
This release has the following changes:
-
Changed the extension's command from
extension.addTopHeader
totopper.addTopHeader
. To make it easier for customized keybinding. -
Code cleanup.