summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlas Mellbourn <klas@mellbourn.net>2021-09-29 22:56:36 +0200
committerAndrew Gallant <jamslam@gmail.com>2023-07-08 18:52:42 -0400
commit7313dca47286f5c71bf720172656cf2c14d8f756 (patch)
tree70e5ed304bdebd1eec7c2d8d143458439c550c61
parent99bf2b01dc261bccc6912ad733fc5f353ac411d5 (diff)
ignore/types: add 'typescript' alias for 'ts'
Closes #2009
-rw-r--r--CHANGELOG.md2
-rw-r--r--crates/ignore/src/default_types.rs1
2 files changed, 2 insertions, 1 deletions
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"]),