X Tutup
Skip to content

Add FILENAME path placeholder#625

Draft
NoelJacob wants to merge 1 commit intorendercv:mainfrom
NoelJacob:main
Draft

Add FILENAME path placeholder#625
NoelJacob wants to merge 1 commit intorendercv:mainfrom
NoelJacob:main

Conversation

@NoelJacob
Copy link

Add FILENAME placeholder while creating the output file.

Helps when there are multiple CV files in same folder and each with same name and details but different filenames for different purposes.

Copilot AI review requested due to automatic review settings January 2, 2026 13:45
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new FILENAME placeholder that can be used in output file path configurations. The placeholder resolves to the input YAML filename (without extension) with spaces replaced by hyphens, enabling users to differentiate output files when multiple CV YAML files with the same content but different filenames exist in the same directory.

  • Adds FILENAME placeholder to the path resolver that extracts the stem of the input YAML file
  • Updates documentation across schema, user guide, and code comments
  • Includes test coverage for the new placeholder functionality

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/rendercv/renderer/path_resolver.py Implements the FILENAME placeholder by extracting the input file path stem and replacing spaces with hyphens
src/rendercv/schema/models/settings/render_command.py Documents the FILENAME placeholder in the file path placeholders description
tests/renderer/test_path_resolver.py Adds a test case verifying FILENAME placeholder resolves correctly with space-to-hyphen conversion
schema.json Updates JSON schema descriptions for all output path fields (typst_path, pdf_path, markdown_path, html_path, png_path) to include FILENAME placeholder
docs/user_guide/yaml_input_structure/settings.md Adds FILENAME to the list of available placeholders in the user guide

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sinaatalay sinaatalay marked this pull request as draft February 16, 2026 12:04
@sinaatalay
Copy link
Member

Thank you. It looks like tests fail.

@sinaatalay sinaatalay force-pushed the main branch 3 times, most recently from cff31ca to 2b08030 Compare February 17, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup