Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Add PowerShell completion #184

Merged
merged 4 commits into from Jul 4, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGELOG.md
Expand Up @@ -9,8 +9,10 @@ To publish a new release run `scripts/release` from the project directory.
## [Unreleased]

### Added
- Add PowerShell completions (see [GH-184])
rashil2000 marked this conversation as resolved.
Show resolved Hide resolved
- Support for [WezTerm](https://wezfurlong.org/wezterm/) (see [GH-182]).

[GH-184]: https://github.com/lunaryorn/mdcat/pull/184
[GH-182]: https://github.com/lunaryorn/mdcat/pull/182
rashil2000 marked this conversation as resolved.
Show resolved Hide resolved

## [0.22.4] – 2021-04-15
Expand All @@ -34,7 +36,7 @@ To publish a new release run `scripts/release` from the project directory.
- Replace `reqwest` with `ureq` to fetch images via HTTP/HTTPS (see [GH-168] and [GH-169]);
the latter has considerably less dependencies and builds faster.
It also builds statically out of the box, hence the static musl builds no longer require `curl` to fetch images.

### Removed
- The `reqwest` cargo feature (see [GH-168] and [GH-169]).

Expand All @@ -57,7 +59,7 @@ To publish a new release run `scripts/release` from the project directory.
It makes no attempt to detect whether the Kitty version is compatible or the [`allow_hyperlinks`] setting is enabled.
- `mdcat --version` (but not `mdcat -V`) now informs whether HTTP/HTTPS support is builtin or requires `curl`.
- mdcat now includes a manpage (see [GH-167]).

### Changed
- `mdcat` now asks the controlling terminal for the terminal size and thus correctly detects the terminal size even if standard input, standard output and standard error are all redirected (see [GH-166]).
- `mdcat` no longer requires `kitty icat` to detect the size of kitty windows (see [GH-166]).
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Expand Up @@ -19,7 +19,7 @@ fn gen_completions<P: AsRef<Path>>(out_dir: P) {
let completions = out_dir.as_ref().join("completions");
std::fs::create_dir_all(&completions).expect("Failed to create $OUT_DIR/completions");

for shell in &[Shell::Bash, Shell::Zsh, Shell::Fish] {
for shell in &[Shell::Bash, Shell::Zsh, Shell::Fish, Shell::PowerShell] {
a.gen_completions("mdcat", *shell, &completions);
}
}
Expand Down