Skip to content

Commit

Permalink
docs: add tip to remove status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Nov 10, 2023
1 parent c119522 commit e9a768c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,36 @@ You can change the `<Esc>` of input component from the default `escape` to `clos

To exiting input directly, without entering Vi mode, making it behave like a regular input box.

## No status bar

<img src={useBaseUrl("/img/no-status-bar.jpg")} width="600" />

Save those lines as a file, for example `~/.config/yazi/ui.lua`:

```lua
function Status:render() return {} end

local old_manager_render = Manager.render
function Manager:render(area)
return old_manager_render(self, ui.Rect { x = area.x, y = area.y, w = area.w, h = area.h + 1 })
end
```

Finally include it and adjust the manager layout offset:

```toml
# yazi.toml
[plugins]
preload = [
"~/.config/yazi/ui.lua"
]

# theme.toml
[manager]
folder_offset = [ 1, 0, 0, 0 ]
preview_offset = [ 1, 1, 0, 1 ]
```

## Show symlink in status bar

<img src={useBaseUrl("/img/symlink-in-status.png")} width="600" />
Expand Down
Binary file added static/img/no-status-bar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e9a768c

Please sign in to comment.