Releases: f440/locopy
Release list
v0.1.0
🚀 Handlebars Template System
This is a breaking change release that migrates from simple variable templates to a powerful Handlebars templating system.
⚠️ Breaking Changes
- Template syntax changed from
%variableto{{variable}}format - Line numbers now provided as separate
startLineandendLinevariables - All existing custom formats need to be updated (see migration guide below)
✨ New Features
- Handlebars templating engine for powerful format customization
- Helper functions:
replacefor regex replacement,encodeURIComponentfor URL encoding - Conditional logic support (e.g.,
{{#if endLine}}) - Enhanced error handling for malformed templates
- Comprehensive test suite for template functionality
📋 Migration Guide
Old format (no longer supported):
{
"name": "Path with line",
"format": "%r:%l"
}New format:
{
"name": "Path with line",
"format": "{{relativePath}}:{{startLine}}{{#if endLine}}-{{endLine}}{{/if}}"
}Variable mapping:
%p→{{absolutePath}}%r→{{relativePath}}%n→{{fileName}}%s→{{selectedText}}%l→{{startLine}}{{#if endLine}}-{{endLine}}{{/if}}
🎯 Why This Change?
The new Handlebars system provides much more powerful templating capabilities including conditional logic, helper functions, and better extensibility for future features.
Prepare release v0.0.7
Fixed
- Add .github/ to .vscodeignore to exclude CI/CD files from extension package
- Reduce package size by excluding unnecessary GitHub Actions workflows
This release optimizes the extension package by removing development and CI/CD files that aren't needed by end users.
Prepare release v0.0.6
Changed
- Removed GitHub Discussions reference from CONTRIBUTING.md
- Simplified support channels to focus on GitHub Issues
This release streamlines the support process by focusing on GitHub Issues for a simpler, more maintainable approach.
Prepare release v0.0.5
Changed
- Reordered default formats to prioritize relative path (more common use case)
- Relative path with line number is now the first/default format
- Absolute path with line number is now the second format
This change makes the extension more user-friendly for the common workflow of copying paths for terminal usage and code references.
Prepare release v0.0.4
Added
- Extension icon for better visibility in VS Code Marketplace
This release adds a visual identity to the extension, making it more recognizable and professional in the VS Code Marketplace.
Prepare release v0.0.3
Changed
- Improved CONTRIBUTING.md release process with git push step
- Simplified release workflow by removing draft requirement
This release streamlines the release process and prevents common sync issues that can occur during publishing.
v0.0.2: Add CONTRIBUTING.md and improve documentation
Added
- CONTRIBUTING.md with development setup, guidelines, and release process
- Contributing section in README.md
This release improves the developer experience by providing comprehensive contribution guidelines and making it easier for new contributors to get started with the project.
v0.0.1
Added
- Custom format configuration with template variables
- Template variable system supporting:
%p- Absolute file path%r- Relative path from workspace root%s- Selected text%n- Filename only%l- Line number(s) with smart multi-line detection%%- Escaped % character
- Smart line number detection for single line, multi-line, and cursor-only selections
- Two copy commands:
- "Copy with Format Selection" - Choose from configured formats
- "Copy Quick (First Format)" - Instant copy using first format
- Configurable success notifications (
locopy.showSuccessMessage) - Default format presets:
- Path with line number (
%p:%l) - Relative path with line number (
%r:%l) - Markdown link with selection (
[%s](%r))
- Path with line number (
Features
- Commands appear in Command Palette under "Locopy:" category
- Workspace-aware relative path calculation
- Proper handling of multi-line selections ending at line start