Skip to content

Releases: f440/locopy

v0.1.0

Choose a tag to compare

@f440 f440 released this 22 Jun 05:00

🚀 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 %variable to {{variable}} format
  • Line numbers now provided as separate startLine and endLine variables
  • All existing custom formats need to be updated (see migration guide below)

✨ New Features

  • Handlebars templating engine for powerful format customization
  • Helper functions: replace for regex replacement, encodeURIComponent for 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

Choose a tag to compare

@f440 f440 released this 21 Jun 04:06

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

Choose a tag to compare

@f440 f440 released this 21 Jun 04:02

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

Choose a tag to compare

@f440 f440 released this 21 Jun 03:57

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

Choose a tag to compare

@f440 f440 released this 21 Jun 03:32

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

Choose a tag to compare

@f440 f440 released this 21 Jun 03:28

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

Choose a tag to compare

@f440 f440 released this 21 Jun 03:22

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

Choose a tag to compare

@f440 f440 released this 21 Jun 02:53

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))

Features

  • Commands appear in Command Palette under "Locopy:" category
  • Workspace-aware relative path calculation
  • Proper handling of multi-line selections ending at line start