einfachIrgendwer0815
7f089ead62
Add option --binary
...
`--binary` allows to specify how to deal with binary content. Current
options are not printing anything or treating the binary data as text.
2024-08-18 10:05:37 +02:00
Ethan P.
70ff93d238
Add --strip-ansi
option
2024-06-16 16:49:07 -07:00
Ethan P
0e4e10edb6
Add --squeeze-limit to specify max number of consecutive empty lines
...
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
2024-02-24 13:51:06 +01:00
Ethan P
c36ed32816
Add --squeeze/-s option
...
Co-authored-by: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com>
2024-02-24 13:51:00 +01:00
Oliver looney
9239b125b1
added a flag to config for setting terminal title
2024-01-27 14:14:40 +00:00
Anomalocaridid
e32ad0b048
Add $LESSOPEN
and $LESSCLOSE
support ( #2444 )
2023-09-02 08:48:26 +02:00
einfachIrgendwer0815
8f99a78cf1
Print non-printable characters using caret notation ( #2443 )
...
When the new flag is set, non-printable characters are printed using caret notation.
2023-03-14 22:21:30 +01:00
Marcin Puc
863d9cacd0
Add various other code refactorings
2021-09-12 15:50:10 +02:00
Martin Nordholts
25fa577cd0
Make 'build-assets' an optional capability for application
...
Also structure features a bit more clever to avoid duplication of
feature dependency declarations.
2021-08-17 10:58:21 +02:00
Martin Nordholts
b040efff79
Support a hidden arg --no-custom-assets that skips loading assets from the cache
2021-07-29 08:27:02 +02:00
Ethan P
f874c8e4db
Use less binary specified in bat config for --diagnostic
2021-02-16 09:11:27 +01:00
sharkdp
23afc8e90c
Skip non-file inputs when using --diff
2020-04-24 16:12:38 +02:00
sharkdp
82e7786e74
Implementation of 'bat --diff'
...
This adds a new `--diff` option that can be used to only show lines
close to Git changes (added/removed/modified lines). The amount of
additional context can be controlled with `--diff-context=N`.
closes #23
2020-04-24 09:57:57 +02:00
sharkdp
8961f7aef8
Move PagingMode to separate module
2020-04-22 23:55:28 +02:00
sharkdp
a8f759c080
Rename wrap => wrapping
2020-04-22 23:55:28 +02:00
sharkdp
26c951fec4
Fix warnings, sort imports, input from string
2020-04-22 23:55:28 +02:00
sharkdp
590960f7f5
Completely refactor 'input' module
2020-04-22 23:55:28 +02:00
sharkdp
f8d0956893
Rename InputFile => Input
2020-04-22 23:55:28 +02:00
sharkdp
1dc328ad49
Separate inputs from config
2020-04-22 23:55:28 +02:00
sharkdp
057e4eced1
Large refactoring towards a better builder structure
2020-04-22 23:55:28 +02:00
sharkdp
d5a31dc2ec
Remove commented-out code
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
David Tolnay
42e3825daf
Updates for review of PR 899
2020-03-31 09:27:56 +02:00
David Tolnay
014d754588
Move paging support behind a feature
2020-03-31 09:27:56 +02:00
Kyle Criddle
131d113ff5
Merge branch 'fix_654_stdin_filename' of github.com:neuronull/bat into fix_654_stdin_filename
2020-03-24 19:14:07 -06:00
Kyle Criddle
38178fedf4
Merge branch 'master' into fix_654_stdin_filename
2020-03-24 19:08:43 -06:00
Kyle Criddle
8adce9fae8
Implement --file-name<name> option
...
- can specify filename to be displayed when printing.
- useful for when piping data from STDIN
Closes #654
2020-03-22 11:10:27 +01:00
sharkdp
bd8a13dbc9
Initial implementation of glob-based syntax mapping
2020-03-22 11:02:51 +01:00
sharkdp
bb0a3d586e
Simplify public API module structure
2020-03-21 22:21:23 +01:00
sharkdp
84ba323b1c
Rename output component to 'style compinent', move wrap to separate module
2020-03-21 22:21:23 +01:00
sharkdp
9b8ddb24d1
move Config struct to separate file
2020-03-21 22:21:23 +01:00
Fahmi Akbar Wildana
a2ee753b25
Move config.rs into src/bin/bat/
2019-10-20 21:43:51 +02:00
Daniele Esposti
82f14121bd
Applied linter fixes
2019-03-09 07:43:41 +01:00
Daniele Esposti
a21ae614e6
Migrated to Rust 2018
2019-03-09 07:43:41 +01:00
Ricky
558134f6c8
Changed to unwrap methods, added integration tests
2018-11-04 11:19:49 +01:00
Ricky
1dd57e6d7e
Ran rust fmt
2018-11-04 11:19:49 +01:00
Ricky
20ba84d1fa
Added in environment variable and the result is a file check in config.rs
2018-11-04 11:19:49 +01:00
sharkdp
8dc7e2efa3
Add --config-file option
2018-10-17 23:08:37 +02:00
sharkdp
5bff4548be
Add BAT_OPTS environment variable
2018-10-16 22:09:15 +02:00
sharkdp
866b9e16a8
Add error handling
2018-10-16 22:09:15 +02:00
sharkdp
c19c704a43
Add more tests
2018-10-16 22:09:15 +02:00
sharkdp
693bd5929d
Add possibility for spaces on a single line
2018-10-16 22:09:15 +02:00
sharkdp
8275b0436d
Add simple configuration file
...
This allows users to create simple configuration file
(`~/.config/bat/config` on Linux) that has the following format:
```bash
--flag1
--flag2
--option1=value1
# lines beginning with '#' are ignored
--option2=value2
# empty lines and trailing whitespace are also ignored
--option3=value3
```
2018-10-16 22:09:15 +02:00