Skip to content

Commit

Permalink
docs: add diff.yazi to resources page
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Jun 27, 2024
1 parent 97d74cd commit 4f7c7e2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Bookmarks:
File actions:

- [chmod.yazi](https://github.com/yazi-rs/plugins/tree/main/chmod.yazi) - Execute `chmod` on the selected files to change their mode.
- [diff.yazi](https://github.com/yazi-rs/plugins/tree/main/diff.yazi) - Diff the selected file with the hovered file, create a living patch, and copy it to the clipboard.

`filter` enhancements:

Expand Down
16 changes: 16 additions & 0 deletions docs/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,29 @@ Moved to https://github.com/yazi-rs/plugins/tree/main/full-border.yazi

Add this keybinding to your `keymap.toml`:

<Tabs>
<TabItem value="unix" label="Unix" default>

```toml
[[manager.prepend_keymap]]
on = [ "<C-s>" ]
run = 'shell "$SHELL" --block --confirm'
desc = "Open shell here"
```

</TabItem>
<TabItem value="windows" label="Windows">

```toml
[[manager.prepend_keymap]]
on = [ "<C-s>" ]
run = 'shell "powershell.exe" --block --confirm'
desc = "Open PowerShell here"
```

</TabItem>
</Tabs>

## Close input by once <kbd>Esc</kbd> press {#close-input-by-esc}

You can change the <kbd>Esc</kbd> of input component from the default `escape` to `close` command, in your `keymap.toml`:
Expand Down

0 comments on commit 4f7c7e2

Please sign in to comment.