Skip to content

Commit

Permalink
Update editor-command to 1.0.0
Browse files Browse the repository at this point in the history
This replaces shellish_parse with shell-words, which was already in our dep tree so this eliminates one dep at least.
  • Loading branch information
LucasPickering committed Dec 27, 2024
1 parent 54cc76e commit 19bead4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
12 changes: 3 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ chrono = {workspace = true}
cli-clipboard = "0.4.0"
crossterm = {workspace = true, features = ["bracketed-paste", "windows", "events", "event-stream"]}
derive_more = {workspace = true, features = ["debug", "deref", "deref_mut", "display", "from"]}
editor-command = "0.1.0"
editor-command = "1.0.0"
futures = {workspace = true}
indexmap = {workspace = true}
itertools = {workspace = true}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/api/configuration/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Slumber supports passing additional arguments to the editor. For example, if you
editor: code --wait
```
The command will be parsed like a shell command (although a shell is never actually invoked). For exact details on parsing behavior, see [shellish_parse](https://docs.rs/shellish_parse/latest/shellish_parse/index.html).
The command will be parsed like a shell command (although a shell is never actually invoked). For exact details on parsing behavior, see [shell-words](https://docs.rs/shell-words/1.1.0/shell_words/fn.split.html).
## Paging
Expand All @@ -27,7 +27,7 @@ You can open your response bodies in a separate file browser if you want additio
pager: bat
```

> The pager command uses the same format as the `editor` field. The command is parsed with [shellish_parse](https://docs.rs/shellish_parse/latest/shellish_parse/index.html), then a temporary file path is passed as the final argument.
> The pager command uses the same format as the `editor` field. The command is parsed with [shell-words](https://docs.rs/shell-words/1.1.0/shell_words/fn.split.html), then a temporary file path is passed as the final argument.

To open a body in the pager, use the actions menu keybinding (`x` by default, see [input bindings](./input_bindings.md)), and select `View Body`.

Expand Down

0 comments on commit 19bead4

Please sign in to comment.