https://github.com/hoverth/touchtemplate
touch with a template
https://github.com/hoverth/touchtemplate
Last synced: 5 months ago
JSON representation
touch with a template
- Host: GitHub
- URL: https://github.com/hoverth/touchtemplate
- Owner: Hoverth
- License: gpl-3.0
- Created: 2024-11-01T09:20:18.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-01T09:31:48.000Z (7 months ago)
- Last Synced: 2024-12-12T10:45:28.212Z (6 months ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Touch Template
touch, with a template
Available on cargo, with `cargo install touchtemplate` ([Link to crates.io](https://crates.io/crates/touchtemplate)).
Then you can use the `tt` command.This provides the `tt` binary, which looks in `~/Templates` (or whatever
you have `$XDG_TEMPLATE_DIR` set to), and will allow you to touch
(create) files, by copying them and renaming them to whatever you wish.This utility is inspired by KDE's usage of the templates directory when using
the right click menu to "Create New" in a directory.## Usage
```none
touchtemplate ('tt') is a way to create a file using a template
(if the template is in your templates directory, default ~/Templates).Usage: tt
Arguments:
The filename of the template.
The name of the file to create.Options:
-h, --help
Print help (see a summary with '-h')-V, --version
Print version
```## Contributing
All code is GPLv3+ licensed, and by contributing you agree to
license the contributed code under this license.Contributions are welcome for any improvements, especially regarding
optimisations, or platform compatibility.## License
Copyright © 2024 Thomas Dickson and other contributors
This code is license under the GNU GPL v3+. See LICENSE for more details