From 7313dca47286f5c71bf720172656cf2c14d8f756 Mon Sep 17 00:00:00 2001 From: Klas Mellbourn Date: Wed, 29 Sep 2021 22:56:36 +0200 Subject: ignore/types: add 'typescript' alias for 'ts' Closes #2009 --- CHANGELOG.md | 2 +- crates/ignore/src/default_types.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index feef920f..e67e6ac1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ Unreleased changes. Release notes have not yet been written. Feature enhancements: -* Added or improved file type filtering for Ada, DITA, Elixir, Fuchsia, Gentoo, GraphQL, Markdown, Raku, USD, V +* Added or improved file type filtering for Ada, DITA, Elixir, Fuchsia, Gentoo, GraphQL, Markdown, Raku, TypeScript, USD, V * [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195): When `extra-verbose` mode is enabled in zsh, show extra file type info. * [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409): diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 6d0f8824..6288adf9 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -289,6 +289,7 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[ ("ts", &["*.ts", "*.tsx", "*.cts", "*.mts"]), ("twig", &["*.twig"]), ("txt", &["*.txt"]), + ("typescript", &["*.ts", "*.tsx", "*.cts", "*.mts"]), ("typoscript", &["*.typoscript", "*.ts"]), ("usd", &["*.usd", "*.usda", "*.usdc"]), ("v", &["*.v"]), -- cgit v1.2.3