summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authorlesnyrumcajs <lesny.rumcajs@gmail.com>2019-03-04 17:18:45 +0100
committerAndrew Gallant <jamslam@gmail.com>2019-04-06 10:35:08 -0400
commit5962abc4655a0f07ece6fc6bd45142e8ee1cab0c (patch)
tree56b1f051f3e803cd24aa2d980c3edcf765756bda /complete
parent1604a18db3d896514e1d536781810642de4b31c1 (diff)
searcher: add option to disable BOM sniffing
This commit adds a new encoding feature where the -E/--encoding flag will now accept a value of 'none'. When given this value, all encoding related machinery is disabled and ripgrep will search the raw bytes of the file, including the BOM if it's present. Closes #1207, Closes #1208
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg2
1 files changed, 1 insertions, 1 deletions
diff --git a/complete/_rg b/complete/_rg
index 2e5c1937..c4a983ac 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -378,7 +378,7 @@ _rg_encodings() {
shift{-,_}jis csshiftjis {,x-}sjis ms_kanji ms932
utf{,-}8 utf-16{,be,le} unicode-1-1-utf-8
windows-{31j,874,949,125{0..8}} dos-874 tis-620 ansi_x3.4-1968
- x-user-defined auto
+ x-user-defined auto none
)
_wanted encodings expl encoding compadd -a "$@" - _encodings