> figured, that there isn't really a good workaround. I always want to
> search minified files, and would like to continue to use my normal "ack
> pattern", so would like something I could throw in my .ackrc.
>

Options for your possibly odd use-case to make YOUR default let you use ack
with minified JS -
any one of

   - If you install the non-standalone version of ack, you can just
   monkey-patch  lib/App/Ack/ConfigDefault.pm commenting out the two
   Minified JS lines.
      - if you clone from github, you can upgrade with *git* *pull
      --fast-forward* and keep your changes
      - (Or. If you prefer standalone, you can clone or install the sources
      and follow the README steps to build, and install the ack-standalone as
      ack.)
      - you could also monkeypatch directly in the bin/ack  (likely a copy
      of ack-standalone) , comment out the same 2 lines)
   - (echo "--ignore-ack-defaults"; ack --dump | ack -v  '(?=.*js).*min' |
   perl -plE  's/^(?=\S)/# /;') >* ~/.ackrc  *
   - (or copy contents of ConfigDefault.pm's heredoc into ~/.ackrc,
      commenting out the Minified JS section, and add --ignore-ack-defaults at
      the top;
      this makes *nicer comments* in .ackrc !)

Comment: since you like searching minified long-line files blocked as too
ugly to view by

>
>
> *# minified
> JavaScript--ignore-file=match:/[.-]min[.]js$/--ignore-file=match:/[.]js[.]min$/*
>
you may also want to search the things suppressed by

> *# minified CSS*
> *--ignore-file=match:/[.]min[.]css$/*
> *--ignore-file=match:/[.]css[.]min$/  *
>
so i suggest you consider commenting out those two as well to minimize
surprise, or not, as you prefer.

-- 
You received this message because you are subscribed to the Google Groups "ack 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ack-users/CAAbKA3XOf7f%3DFyDuMKa7MT-SbaQ8N75Y9Tnbcu%3DTPd9AOLnyrg%40mail.gmail.com.

Reply via email to