Commit graph

97 commits

Author SHA1 Message Date
Danilo Bargen
04e61080d2 Upgrade reqwest
This reduces the dependency tree from 333 to 188 entries, mostly because
some reqwest features were disabled :)
2020-02-28 00:20:37 +01:00
Jesús Trinidad Díaz Ramírez
055758dba8
Fix clippy warnings (#101) 2020-02-06 15:43:00 +01:00
Danilo Bargen
22255bf80c
Merge pull request #99 from dbrgn/github-actions
CI: Switch to GitHub Actions
2020-01-22 23:55:19 +01:00
Danilo Bargen
bcdfd5e9a8 Disable pager feature on Windows 2020-01-22 23:44:27 +01:00
Danilo Bargen
23d7301b53
Merge pull request #95 from Plommonsorbet/render_as_markdown_option
Add -m / --markdown option for raw rendering
2020-01-22 23:06:03 +01:00
Isak Johansson
6719acb4f2 Add -m / --markdown option for raw rendering
New option to render as markdown, not with ANSI escape codes.
This is useful for when you want to open it up in a pager which doesn't
support ANSI escape codes by default. In my use case it allows me to
open it inside vim without having to use an addon to convert ANSI escape
codes to colours.
2020-01-22 22:54:11 +01:00
Hugo Locurcio
0d00e60af0 Tweak the outdated cache warning message (#97)
This makes it display in yellow (instead of red) as it's
more of a *warning* message than an *error* message.
2020-01-07 09:16:40 +01:00
Bruno Heridet
94c0e99693 Fix typo in error message for flag_seed_config (#91) 2019-10-29 13:54:06 +01:00
Danilo Bargen
74c37193e3 Use non-deprecated trim functions 2019-10-04 01:18:36 +02:00
Danilo Bargen
7460cdac6d Remove unused import 2019-10-04 01:18:36 +02:00
Korrat
7f8cbb01e5 Suppress empty lines for compact output 2019-10-03 11:55:07 +02:00
Korrat
a9f2a4c132 Add config field for compact output 2019-10-03 11:47:20 +02:00
Danilo Bargen
4304e2e610 Paging: Fix bug that I introduced during merge 2019-03-11 11:12:28 +01:00
Danilo Bargen
5215493720 Don't override display config when styles are disabled 2019-03-11 11:12:28 +01:00
Danilo Bargen
410e96ef7f Ensure that all config keys are optional
Without this change, a config without a [display] section
would fail to parse.
2019-03-11 11:12:22 +01:00
jdvr
0879116a45 Add pager support 2019-03-11 10:52:12 +01:00
Gabriel Martinez
495c3e97d9 Support colors on Windows using ansi_term
We try to enable ANSI color support on Windows using the new APIs.
If that succeeds, we print colors as usual. If it fails, we disable
styles completely.
2019-02-09 21:44:10 -08:00
Jason Liquorish
265ed66d7d Add Windows support 2019-02-05 09:32:13 -08:00
Jonathan Dahan
91c7a412f0 Add support for spaces in commands (#75)
For example "git commit".

Fixes #74.
2019-01-14 09:28:48 +01:00
Danilo Bargen
9548f1dd1b
More clippy pedantism! (#70) 2018-12-07 12:25:25 +01:00
Danilo Bargen
f5e081ab68
Rust 2018 (#69) 2018-12-07 11:42:39 +01:00
Ivan Smirnov
f3cabddd0d Add (back) support for proxies (#68)
Fixes #65
2018-11-22 16:09:54 +01:00
Jan Christian Gruenhage
db2fe596ca Move from curl to reqwest
Fixes #60
2018-11-19 10:53:44 +01:00
Danilo Bargen
e73261542c
OS detection: Treat BSDs as "osx" (#58)
Since macOS is also a BSD under the hood, this will probably yield
better results.
2018-10-28 22:09:56 +01:00
Danilo Bargen
1dc3e0c8c4
Print detected OS with -v / --version (#57) 2018-10-28 22:09:44 +01:00
Danilo Bargen
bd7ee937de
Fix logging initialization (#56) 2018-10-28 21:52:55 +01:00
Danilo Bargen
f1988a645b Fix loading of configfile
- Don't require config file to exist for `--config-path` flag
- Make `--config-path` option pass-through
- Add a test for the `--config-path` flag
2018-10-22 18:03:49 +02:00
Danilo Bargen
6fcb1e17de Impl Display for TealdeerError 2018-10-22 18:03:07 +02:00
Danilo Bargen
e2d61e3ef2 Change wording of outdated cache message 2018-10-22 17:48:20 +02:00
equal-l2
78195a2589 Apply clippy suggestions 2018-10-21 14:49:25 +02:00
equal-l2
ac9db25691 Run rustfmt 2018-10-21 14:49:01 +02:00
Jonathan Dahan
8784b55ba8 Add --quiet flag to surpress non-error output (#48) 2018-09-18 21:12:21 +02:00
Danilo Bargen
f21e885d85 Syntax config path -> config path 2018-09-16 00:41:58 +02:00
Danilo Bargen
1f6e7404a1 Define defaults for config fields
This allows the user to omit the fields when creating a config file.
2018-09-16 00:41:58 +02:00
Danilo Bargen
7621bb107e Change default styling
Make it a bit more colorful, like the previous style
2018-09-16 00:41:58 +02:00
Danilo Bargen
8771db1e73 Rename "highlight" style to "command_name" 2018-09-16 00:41:58 +02:00
Lukas Bergdoll
e8aa36beb3 Avoid overwriting existing config with --seed-config 2018-09-16 00:41:53 +02:00
Lukas Bergdoll
0c0b8d8f57 Generalize config
Else indentation
Serde rename
Generalize config, rename and make style member
2018-09-16 00:41:53 +02:00
Lukas Bergdoll
66b8a3daca Add syntax config support 2018-09-16 00:40:25 +02:00
Danilo Bargen
96b5a7637f Update dependencies 2018-02-11 01:44:03 +01:00
Danilo Bargen
7941fbc727 Bump copyright year 2018-02-11 00:58:53 +01:00
anderejd
6fdf14df63 Move to Serde and upgrade all dependencies (#35)
- Do cargo upgrade --all
- Resolve build errors by moving from rustc-serialize to serde
2017-12-23 01:59:42 +01:00
Danilo Bargen
324b6939bd Add back support for old format
Implement version detection for reverse compatibility.
2016-11-20 23:11:34 +01:00
Danilo Bargen
27b8e7f363 Detect and store format version 2016-11-20 22:38:01 +01:00
Danilo Bargen
dfcb8e4857 Support new title format 2016-11-20 22:35:29 +01:00
Danilo Bargen
00512fdc7b Mostly port to new format
Titles are not handled properly yet.

See discussion at https://github.com/tldr-pages/tldr/pull/958
2016-11-12 13:34:15 +01:00
Danilo Bargen
9e868cb728 Upgrade curl to 0.3 2016-08-01 12:20:41 +02:00
Severen Redwood
aab4220029 Rename everything named tldr to tealdeer (#30) 2016-04-19 10:15:24 +02:00
Severen Redwood
26b8f519c4 Use rust-xdg for cache creation (#29)
* Add rust-xdg as a dependency
* Use rust-xdg to create the cache directory

Closes #10.
2016-04-18 18:40:28 +02:00
Danilo Bargen
6398f6594f Rename project (#26)
* Change name to "tealdeer"
* Rename repository as well
* Add logo
2016-04-16 10:20:16 +02:00