nushell/crates/nu-command/src
Tobias 2e23d4d734
fix issue 6602 (broken highlighting in find) (#6604)
* fix issue 6602 (broken highlighting in find)

Find uses highlight_search_string to see where the string was found. The problem was that the style would just "append" to the existing haystack (including the ANSI escape codes of LS_COLORS).

This first strips the ANSI escape codes out of the haystack before formatting the
output string.

* update formatting
2022-09-23 07:11:33 -05:00
..
bits add bits ror and bits rol commands (#6224) 2022-08-05 15:40:01 +02:00
bytes Test command names and search terms for redundancy (#6380) 2022-08-24 11:16:47 +02:00
charting add quantile column (#5583) 2022-05-18 20:47:26 -05:00
conversions convert string duration to named duration (#6406) 2022-08-24 14:45:51 -05:00
core_commands fix issue 6602 (broken highlighting in find) (#6604) 2022-09-23 07:11:33 -05:00
database Apply clippy fix for rust 1.63.0 (#6576) 2022-09-17 12:10:32 -05:00
dataframe Apply clippy fix for rust 1.63.0 (#6576) 2022-09-17 12:10:32 -05:00
date Fix the span of "invalid time zone" (#6411) 2022-08-25 13:21:54 +02:00
deprecated Rename all?, any? and empty? (#6464) 2022-09-05 16:41:06 +02:00
env Require static path for source-env (#6526) 2022-09-08 23:41:49 +03:00
experimental Test command names and search terms for redundancy (#6380) 2022-08-24 11:16:47 +02:00
filesystem Reinstate -a short form of save --append (#6575) 2022-09-17 07:02:17 -05:00
filters Improve uniq documentation (#6580) 2022-09-18 08:24:27 -07:00
formats Fix scoped overlay use not finding a module (#6474) 2022-09-04 18:36:42 +03:00
generators implement seq char command to generate single character sequence (#5453) 2022-05-06 10:40:02 -05:00
hash feat: add --binary(-b) option to hash commands (#5885) 2022-06-26 06:50:56 -05:00
math Revert "Add support for optional list stream output formatting (#6325)" (#6454) 2022-08-31 18:09:40 -05:00
misc add history session command (#6587) 2022-09-19 14:30:04 -05:00
network Test command names and search terms for redundancy (#6380) 2022-08-24 11:16:47 +02:00
path let path split keeps 'C:\' together (#6485) 2022-09-04 23:32:09 -07:00
platform str collect => str join (#6531) 2022-09-11 11:48:27 +03:00
random update some dependencies (#6009) 2022-07-11 11:18:06 -05:00
shells Refactor shell listing related code (#6262) 2022-08-08 06:31:24 -05:00
strings str collect => str join (#6531) 2022-09-11 11:48:27 +03:00
system Revert "Try again: in unix like system, set foreground process while running external command (#6273)" (#6542) 2022-09-11 15:14:58 -05:00
viewers Use stripped path for lscolors to get style (#6561) 2022-09-15 05:34:47 -05:00
default_context.rs add history session command (#6587) 2022-09-19 14:30:04 -05:00
example_test.rs str collect => str join (#6531) 2022-09-11 11:48:27 +03:00
lib.rs Add bits not command (#6143) 2022-07-30 11:25:44 +02:00
sort_utils.rs Make sort logic available outside sort-by (#5893) 2022-06-27 13:36:59 -04:00