https://github.com/rubixdev/tft
Text file type list and detection similar to that of Neovim
https://github.com/rubixdev/tft
file-type-detection file-types filetypes rust text-editor-library
Last synced: about 1 month ago
JSON representation
Text file type list and detection similar to that of Neovim
- Host: GitHub
- URL: https://github.com/rubixdev/tft
- Owner: RubixDev
- License: gpl-3.0
- Created: 2023-08-01T03:40:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-23T08:50:32.000Z (over 2 years ago)
- Last Synced: 2025-06-24T05:03:34.913Z (9 months ago)
- Topics: file-type-detection, file-types, filetypes, rust, text-editor-library
- Language: Rust
- Homepage: https://crates.io/crates/tft
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `tft`
**T**ext **f**ile **t**ype list and detection similar to that of Neovim
> Note: If viewing this file on [GitHub](https://github.com/RubixDev/tft) or
> [crates.io](https://crates.io/crates/tft), some links might not be working. Go
> to the [docs.rs page](https://docs.rs/tft/) instead, which also additionally
> includes the [Features](#features) section.
## Overview
`tft` mainly provides the [`FileType`] enum and the [`detect`](detect()) and
[`try_detect`] functions. Follow these links for more information.