From 0970b963a1926394351bf4bdbdda8c12e106b1bf Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sat, 25 Jul 2020 10:49:37 -0500 Subject: [PATCH] bin/ack: ack v3.4.0 --- bin/ack | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bin/ack b/bin/ack index 4a5c174..0af126e 100755 --- a/bin/ack +++ b/bin/ack @@ -15,7 +15,7 @@ package main; use strict; use warnings; -our $VERSION = 'v3.3.1'; # Check https://beyondgrep.com/ for updates +our $VERSION = 'v3.4.0'; # Check https://beyondgrep.com/ for updates use 5.010001; @@ -322,7 +322,11 @@ sub file_loop_c { if ( !$opt_l || $matches_for_this_file > 0 ) { if ( $opt_show_filename ) { - App::Ack::say( $file->name, ':', $matches_for_this_file ); + my $display_filename = $file->name; + if ( $opt_color ) { + $display_filename = Term::ANSIColor::colored($display_filename, $ENV{ACK_COLOR_FILENAME}); + } + App::Ack::say( $display_filename, ':', $matches_for_this_file ); } else { App::Ack::say( $matches_for_this_file ); @@ -2462,7 +2466,7 @@ use strict; our $VERSION; our $COPYRIGHT; BEGIN { - $VERSION = 'v3.3.1'; # Check https://beyondgrep.com/ for updates + $VERSION = 'v3.4.0'; # Check https://beyondgrep.com/ for updates $COPYRIGHT = 'Copyright 2005-2020 Andy Lester.'; } our $STANDALONE = 0; @@ -3562,6 +3566,10 @@ sub _options_block { # http//template-toolkit.org/ --type-add=ttml:ext:tt,tt2,ttml +# TOML +# https://toml.io/ +--type-add=toml:ext:toml + # Typescript # https://www.typescriptlang.org/ --type-add=ts:ext:ts,tsx -- 2.43.0