Skip to content

Conversation

@DylanDevelops
Copy link
Owner

Refines logic to correctly expand both '/...' and '' to the user's home directory when specifying export paths.

Pull Request Checklist

  • I have read and followed the contribution guidelines.
  • My pull request targets the main branch of tmpo.
  • I have tested these changes locally on my machine.

Closes #67

Description

This pull request improves the handling of paths that use the tilde (~) to represent the user's home directory in the ExportCmd function. The update ensures that both ~/ (home directory with subpath) and ~ (home directory only) are correctly resolved.

Path handling improvements:

  • Updated the logic to check for ~/ at the start of exportPath and replace it with the user's home directory, ensuring correct path resolution for subdirectories.
  • Added a separate check for when exportPath is exactly ~, setting it to the user's home directory.

Refines logic to correctly expand both '~/...' and '~' to the user's home directory when specifying export paths.
@DylanDevelops DylanDevelops merged commit 3519551 into main Jan 15, 2026
6 checks passed
@DylanDevelops DylanDevelops deleted the ravel/fix-export-path-bug branch January 15, 2026 08:02
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.

Getting error when trying to export to ~/Downloads via global configuration file

2 participants