Fossil SCM

Remove documentation of the --highlight option for the search command. The option was broken, anyway, and is now superseded by the global --color option and the FOSSIL_COLOR environment variable.

florian 2025-04-18 07:20 standard-cli-colors
Commit 5331dfed414a672810077dc3ed384f58c34bbabd35d293cb97a84ab4811e0b7f
1 file changed +3 -5
+3 -5
--- src/search.c
+++ src/search.c
@@ -582,22 +582,20 @@
582582
** * all of the above (-a)
583583
**
584584
** Use options below to select the scope of the search. The
585585
** default is check-in comments only (-c).
586586
**
587
-** Output is colorized if writing to a TTY and if the NO_COLOR environment
588
-** variable is not set. Use the "--highlight 0" option to disable colorization
589
-** or use "--highlight 91" to force it on. Change the argument to --highlight
590
-** to change the color.
587
+** Output is colorized if writing to a TTY and neither the "--color"
588
+** option is set to "never", nor the "NO_COLOR" environment variable
589
+** is set to "1".
591590
**
592591
** Options:
593592
** -a|--all Search everything
594593
** -c|--checkins Search checkin comments
595594
** --docs Search embedded documentation
596595
** --forum Search forum posts
597596
** -h|--bi-help Search built-in help
598
-** --highlight N Used VT100 color N for matching text. 0 means "off".
599597
** -n|--limit N Limit output to N matches
600598
** --technotes Search tech notes
601599
** --tickets Search tickets
602600
** -W|--width WIDTH Set display width to WIDTH columns, 0 for
603601
** unlimited. Defaults to the terminal's width.
604602
--- src/search.c
+++ src/search.c
@@ -582,22 +582,20 @@
582 ** * all of the above (-a)
583 **
584 ** Use options below to select the scope of the search. The
585 ** default is check-in comments only (-c).
586 **
587 ** Output is colorized if writing to a TTY and if the NO_COLOR environment
588 ** variable is not set. Use the "--highlight 0" option to disable colorization
589 ** or use "--highlight 91" to force it on. Change the argument to --highlight
590 ** to change the color.
591 **
592 ** Options:
593 ** -a|--all Search everything
594 ** -c|--checkins Search checkin comments
595 ** --docs Search embedded documentation
596 ** --forum Search forum posts
597 ** -h|--bi-help Search built-in help
598 ** --highlight N Used VT100 color N for matching text. 0 means "off".
599 ** -n|--limit N Limit output to N matches
600 ** --technotes Search tech notes
601 ** --tickets Search tickets
602 ** -W|--width WIDTH Set display width to WIDTH columns, 0 for
603 ** unlimited. Defaults to the terminal's width.
604
--- src/search.c
+++ src/search.c
@@ -582,22 +582,20 @@
582 ** * all of the above (-a)
583 **
584 ** Use options below to select the scope of the search. The
585 ** default is check-in comments only (-c).
586 **
587 ** Output is colorized if writing to a TTY and neither the "--color"
588 ** option is set to "never", nor the "NO_COLOR" environment variable
589 ** is set to "1".
 
590 **
591 ** Options:
592 ** -a|--all Search everything
593 ** -c|--checkins Search checkin comments
594 ** --docs Search embedded documentation
595 ** --forum Search forum posts
596 ** -h|--bi-help Search built-in help
 
597 ** -n|--limit N Limit output to N matches
598 ** --technotes Search tech notes
599 ** --tickets Search tickets
600 ** -W|--width WIDTH Set display width to WIDTH columns, 0 for
601 ** unlimited. Defaults to the terminal's width.
602

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button