A command-line tool to display fancy titles in your terminal with syntax highlighting and theme support.
- 🎨 Syntax highlighting for various file formats
- 🌈 Support for multiple color themes
- 📝 Customizable title templates
- 🔄 Real-time title updates
- 🎯 Multiple output formats (ANSI, HTML, etc.)
- ⚡ Fast and efficient processing
# Clone the repository
git clone https://github.com/pnavais/titular.git
cd titular
# Build with default features
cargo build --release
# Install
cargo install --path .cargo install titular# Display a title with default settings
titular display "Hello, World!"
# Use a specific theme
titular display --theme dracula "Hello, World!"
# Display a file with syntax highlighting
titular display --file example.rs
# List available themes
titular themes
# Create a new title template
titular template create my-templateTitular comes with different feature sets that can be enabled during installation:
minimal: Basic functionality with terminal size detectionapplication: Default feature set including minimal and fetcherfull_application: All features including display capabilitiesdisplay: Syntax highlighting and theme supportdisplay-themes: Extended theme support
To install with specific features:
cargo install titular --features full_applicationTitular supports a variety of themes:
- Catppuccin
- Dracula
- Ayu
- Dark Material
- Darkula
- Enki
- Gruvbox
- Monokai
- Monokai++
- Nord
- OneHalf
- Solarized
Titular can be configured through:
- Command-line arguments
- Configuration file (
~/.config/titular/config.toml) - Environment variables
Example configuration:
[display]
theme = "dracula"
syntax = "rust"
format = "ansi"Contributions are welcome! Please feel free to submit a Pull Request.
-
Add the theme as a git submodule in
assets/themes/:git submodule add <theme-repo-url> assets/themes/<theme-name>
-
Update the build script to include the new theme
-
Submit a pull request with your changes
This project is dual-licensed under both the MIT License and the Apache License 2.0. You may choose either license at your option.
The dual MIT/Apache 2.0 licensing provides:
- Maximum Flexibility: Users can choose which license terms they prefer
- Patent Protection: Apache 2.0 provides explicit patent protection
- Ecosystem Alignment: Aligns with Rust's ecosystem standards
- Compatibility: Covers both GPLv3 compatibility and maximum permissiveness
- Bat - The main source of inspiration for this project, an outstanding cat clone with wings
- Syntect for syntax highlighting
- All theme creators for their amazing color schemes
- The Rust community for their excellent tools and libraries
Pablo Navais - @pnavais
