Skip to content

Support tilde (~) expansion in template paths#871

Draft
LasmarKhalifa wants to merge 1 commit intomainfrom
08-05/support-tilde-expansion-in-template-paths
Draft

Support tilde (~) expansion in template paths#871
LasmarKhalifa wants to merge 1 commit intomainfrom
08-05/support-tilde-expansion-in-template-paths

Conversation

@LasmarKhalifa
Copy link
Copy Markdown
Contributor

@LasmarKhalifa LasmarKhalifa commented May 8, 2026

Fixes #663

Paths with a tilde currently do not get expanded in the CogInputManager#Template. This PR fixes that.

Adds File.expand_path candidates to the template path resolver so that ~/foo and ~user/foo resolve correctly.

Rescue block makes sure we don't expand ~user/foo which would result in an error.

Added test coverage

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@LasmarKhalifa LasmarKhalifa changed the title support tilde expansion in template paths Support tilde (~) expansion in template paths May 8, 2026
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.

Support tilde (~) expansion in template paths

1 participant