sharkdp
|
057e4eced1
|
Large refactoring towards a better builder structure
|
2020-04-22 23:55:28 +02:00 |
|
sharkdp
|
34619a2e89
|
Small refactoring, handle invalid UTF-8 filenames
|
2020-04-21 08:57:15 +02:00 |
|
sharkdp
|
1b8ce60054
|
Pass stdin as a generic BufRead, fix stdin tests
|
2020-04-21 08:57:15 +02:00 |
|
sharkdp
|
051dd4ba87
|
Make filename method private
|
2020-04-21 08:57:15 +02:00 |
|
sharkdp
|
2ad1848859
|
Do not take optional as argument
|
2020-04-21 08:57:15 +02:00 |
|
sharkdp
|
90e7d2fe33
|
Rename field name, new constructors
|
2020-04-21 08:57:15 +02:00 |
|
Kyle Criddle
|
04fa84aea7
|
Moved user_provided_filename to be contained within OrdinaryFile struct
|
2020-04-21 08:57:15 +02:00 |
|
sharkdp
|
d4a39f99d2
|
Hide API of InputFileReader
|
2020-03-21 22:21:23 +01:00 |
|
sharkdp
|
ca066bf7cd
|
Run 'cargo fmt'
|
2020-02-28 10:27:06 +01:00 |
|
sharkdp
|
7779d9f622
|
Allow for non-unicode filenames, closes #225
|
2020-02-13 08:25:04 +01:00 |
|
sharkdp
|
9b1b3dda14
|
Only print the header for empty files
Instead of printing
```
───────┬─────────────────────────────────────────────────────────
│ File: some-file
───────┼─────────────────────────────────────────────────────────
───────┴─────────────────────────────────────────────────────────
```
for empty files, bat will now print
```
───────┬─────────────────────────────────────────────────────────
│ File: some-file <EMPTY>
───────┴─────────────────────────────────────────────────────────
```
|
2019-05-15 22:37:03 +02:00 |
|
Daniele Esposti
|
a21ae614e6
|
Migrated to Rust 2018
|
2019-03-09 07:43:41 +01:00 |
|
Reid Wagner
|
10c5f79640
|
Revert "Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter."
This reverts commit 61e888de7f .
|
2019-02-11 20:33:16 +01:00 |
|
Reid Wagner
|
61e888de7f
|
Check result of read_until, and return Error if 0, which indicates EOF was found before delimeter.
|
2019-02-07 07:32:28 +01:00 |
|
ufuji1984
|
4ff360669f
|
add quotes around filename
and make it more concise by using map_err
|
2018-12-11 22:24:52 +01:00 |
|
ufuji1984
|
549e5d7355
|
Report filename if File::open return Err
From issue #441
|
2018-12-11 22:24:52 +01:00 |
|
sharkdp
|
25d96da4a2
|
Add support for UTF-16LE and UTF-16BE
|
2018-10-07 17:49:38 +02:00 |
|
sharkdp
|
f98fc5f06a
|
Simplify access to first line
|
2018-10-07 15:34:37 +02:00 |
|
sharkdp
|
869cf6368c
|
Add possibility to get first line
|
2018-10-07 15:34:37 +02:00 |
|
sharkdp
|
078228deac
|
Add unit test for InputFileReader
|
2018-10-07 15:34:37 +02:00 |
|
sharkdp
|
6d1cc8c2c8
|
Move read_line functionality to inputfile module
|
2018-10-07 15:34:37 +02:00 |
|
sharkdp
|
d5b0502419
|
Move get_reader into inputfile module
|
2018-10-07 15:34:37 +02:00 |
|
sharkdp
|
860f3e9006
|
Move InputFile to separate module
|
2018-10-07 15:34:37 +02:00 |
|