• Re: Bug#1006885: ITP: lumin -- pattern match highlighter

    From Adam Borowski@21:1/5 to Stephen Kitt on Mon Mar 7 18:40:01 2022
    On Mon, Mar 07, 2022 at 05:50:43PM +0100, Stephen Kitt wrote:
    * Package name : lumin
    Version : 1.0.0
    * URL : https://github.com/johnkerl/lumin
    Description : pattern match highlighter

    lumin highlights matches to a specified pattern (string or regular expression) in files, using color. This is similar to grep with
    colorized output, but it outputs all lines in the given files, not
    only matching lines.

    .--====[ ~/bin/hl ]
    #!/bin/sh
    sed 's/'"$*"'/\c[[1;33m&\c[[0m/g'
    `----

    This is a new dependency of Miller 6.1.0.


    Meow!>
    --
    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ 'Russkiy voyennyi korabl, idi nakhuy'
    ⢿⡄⠘⠷⠚⠋⠀
    ⠈⠳⣄⠀⠀⠀⠀

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vincent Bernat@21:1/5 to All on Mon Mar 7 20:30:01 2022
    ❦ 7 March 2022 18:33 +01, Adam Borowski:

    lumin highlights matches to a specified pattern (string or regular
    expression) in files, using color. This is similar to grep with
    colorized output, but it outputs all lines in the given files, not
    only matching lines.

    .--====[ ~/bin/hl ]
    #!/bin/sh
    sed 's/'"$*"'/\c[[1;33m&\c[[0m/g'
    `----

    grep --color -C400000000000 pattern

    There are other suggestions here: https://stackoverflow.com/questions/981601/colorized-grep-viewing-the-entire-file-with-highlighted-matches
    --
    Let the data structure the program.
    - The Elements of Programming Style (Kernighan & Plauger)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From M. Zhou@21:1/5 to Vincent Bernat on Wed Mar 9 03:30:01 2022
    Meh... an interesting package name.

    On Mon, 2022-03-07 at 20:29 +0100, Vincent Bernat wrote:
     ❦  7 March 2022 18:33 +01, Adam Borowski:

    lumin highlights matches to a specified pattern (string or
    regular
    expression) in files, using color. This is similar to grep with
    colorized output, but it outputs all lines in the given files,
    not
    only matching lines.

    .--====[ ~/bin/hl ]
    #!/bin/sh
    sed 's/'"$*"'/\c[[1;33m&\c[[0m/g'
    `----

    grep --color -C400000000000 pattern

    There are other suggestions here: https://stackoverflow.com/questions/981601/colorized-grep-viewing-the-entire-file-with-highlighted-matches

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stephen Kitt@21:1/5 to Vincent Bernat on Sat Mar 12 19:40:01 2022
    On Mon, 07 Mar 2022 20:29:12 +0100, Vincent Bernat <bernat@debian.org> wrote:
    ❦ 7 March 2022 18:33 +01, Adam Borowski:
    lumin highlights matches to a specified pattern (string or regular
    expression) in files, using color. This is similar to grep with
    colorized output, but it outputs all lines in the given files, not
    only matching lines.

    .--====[ ~/bin/hl ]
    #!/bin/sh
    sed 's/'"$*"'/\c[[1;33m&\c[[0m/g'
    `----

    grep --color -C400000000000 pattern

    There are other suggestions here: https://stackoverflow.com/questions/981601/colorized-grep-viewing-the-entire-file-with-highlighted-matches

    Thanks, I’m aware that the program itself isn’t all that useful (or at least,
    can be replaced by trivial scripts); it’s been added as a dependency of Miller, which is very useful. I’m planning on suggesting alternatives for Miller itself, but I would like to get the new version of Miller in the
    archive in the meantime!

    Regards,

    Stephen

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEnPVX/hPLkMoq7x0ggNMC9Yhtg5wFAmIs6BUACgkQgNMC9Yht g5zN7w/+PUaaJFp391QdbyOI5hdzJcZCjopsOUw/L0n6yO6F0TPszsMWC9BntXdh dt9Ql+gMy+ZQ7oIgl1nmJh0wbIqWu+IQONQ6OZ0kDeGGBoTxxzOTqfgHTKaLRsNz GwiKRgiOlmeqiidvjnSmV6BCTP3nWArXLv9OpQjWeW3cv2IWcDUmhz/ijSHBbAbN YjdAkj+eGLZMUYN4N7hw5SkGLyM90pYsFeHGtvXPIcaTt1rq3Tk+WsecptlhY5pv MujKKEsYp0mnJ7ICD3FpGt0pCMp0gQ9m02UMOldZ9EmBCwMrmKqF1mJ+8FJWmp2f YrfcYfd9BpyQicv5C7ZtGwIIM1aRAAnEVpKUu8ZoDZdnp2iwNj6K/vU5rbWfqxJq tu+OY6lw2GK0lCncmaJlv+ABQgAhKkU4m1GAd84aVEA5+OLeVgUIeqnnaw6k8Ck1 H6hsF2Yx8ktnQxGLjfGSVQEuUaRmL4LECoZ0afs/uscCOhGijXinNy1TL63sNQ1d +ZxqTBWTBX8EuAVooFhipmyzlbukR2KCHyNAwK9vURKu7/D2vHaWpqyCVPRXYfCs OhYk8tea977zrZlAt0lGyTjoyyVKzuI9st6rY2aOkLfOHEipZlSH7SdfpiTMfpIi haLBp7eMBuhtHAiAR6zJezjg56kKGxG2i75uWl2NVshYzSKAHW8=
    =LliT
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)