docs: remove obsolete docs

This commit is contained in:
sxyazi 2023-10-11 21:29:50 +08:00
parent df5fd4c964
commit 15c34fed5c
No known key found for this signature in database
4 changed files with 0 additions and 313 deletions

View file

@ -1,207 +0,0 @@
# Keymap
## manager
- escape: Exit visual mode, clear selected, or cancel search.
- quit: Exit the process.
- close: Close the current tab; if it is the last tab, then exit the process.
### Navigation
- arrow
- `n`: Move the cursor up or down by n lines. Use negative values to move up and positive values to move down.
- leave: Go back to the parent directory.
- enter: Enter the child directory.
- back: Go back to the previous directory.
- forward: Go forward to the next directory.
- peek
- `n`: Peek up or down at file contents in the preview. Use negative values to peek up and positive values to peek down.
- cd: Change the current directory.
- `path`: the path to change to.
- `--interactive`: Use an interactive UI to input the path.
### Selection
- select
- `--state=true`: Select the current file.
- `--state=false`: Deselect the current file.
- `--state=none`: Default, toggle the selection state of the current file.
- select_all
- `--state=true`: Select all files.
- `--state=false`: Deselect all files.
- `--state=none`: Default, toggle the selection state of all files.
- visual_mode: Enter visual mode (selection mode).
- `--unset`: Enter visual mode (unset mode).
### Operation
- open: Open the selected files.
- `--interactive`: Open the selected files with an interactive UI to choose the opening method.
- yank: Copy the selected files.
- `--cut`: Cut the selected files.
- paste: Paste the files.
- `--force`: Overwrite the destination file if it exists.
- remove: Move the files to the trash/recycle bin.
- `--force`: Don't show the confirmation dialog, and trash/delete the files directly.
- `--permanently`: Permanently delete the files.
- create: Create a file or directory (ends with `/` for directories).
- rename: Rename a file or directory.
- copy: Copy the path of files or directories that are selected or hovered on.
- `path`: Copy the absolute path.
- `dirname`: Copy the path of the parent directory.
- `filename`: Copy the name of the file.
- `name_without_ext`: Copy the name of the file without the extension.
- shell: Run a shell command.
- `exec`: Optional, command template to be run.
- `--block`: Block the UI until the command finishes.
- `--confirm`: When the template is provided, run it directly, no input UI was shown.
- hidden: Set the visibility of hidden files.
- `show`: Show hidden files.
- `hide`: Hide hidden files.
- `toggle`: Default, toggle the hidden state.
- search
- `rg`: Search files by content using ripgrep.
- `fd`: Search files by name using fd.
- `none`: Default, cancel the ongoing search.
- jump
- `fzf`: Jump to a directory, or reveal a file using fzf.
- `zoxide`: Jump to a directory using zoxide.
- sort
- `by`
- `"alphabetical"`: Sort alphabetically, e.g. `1.md` < `10.md` < `2.md`
- `"created"`: Sort by creation time.
- `"modified"`: Sort by last modified time.
- `"natural"`: Sort naturally, e.g. `1.md` < `2.md` < `10.md`
- `"size"`: Sort by file size.
- `--reverse`: Display files in reverse order.
- `--dir_first`: Display directories first.
### Tabs
- tab_create
- `path`: Create a new tab using the specified path.
- `--current`: Create a new tab using the current path.
- tab_close
- `n`: Close the tab at position n, starting from 0.
- tab_switch
- `n`: Switch to the tab at position n, starting from 0.
- `--relative`: Switch to the tab at a position relative to the current tab. The value of n can be negative when using this parameter.
- tab_swap
- `n`: Swap the current tab with the tab at position n, where negative values move the tab forward, and positive values move it backward.
### Tasks
- tasks_show: Show the task manager.
### Help
- help: Open the help menu.
## tasks
- close: Hide the task manager.
- arrow:
- `-1`: Move the cursor up 1 line.
- `1`: Move the cursor down 1 line.
- inspect: Inspect the task.
- cancel: Cancel the task.
- help: Open the help menu.
## select
- close: Cancel selection.
- `--submit`: Submit the selection.
- arrow
- `n`: Move the cursor up or down n lines. Negative value for up, positive value for down.
- help: Open the help menu.
## input
- close: Cancel input.
- `--submit`: Submit the input.
- escape: Go back the normal mode, or cancel input.
- move: Move the cursor left or right.
- `n`: Move the cursor n characters left or right. Negative value for left, positive value for right.
- `--in-operating`: Move the cursor only if its currently waiting for an operation.
### Normal mode
- insert: Enter insert mode.
- `--append`: Insert after the cursor.
- visual: Enter visual mode.
- backward: Move to the beginning of the previous word.
- forward: Move to the beginning of the next word.
- `--end-of-word`: Move to the end of the next word.
- delete: Delete the selected characters.
- `--cut`: Cut the selected characters into clipboard, instead of only deleting them.
- `--insert`: Delete and enter insert mode.
- yank: Copy the selected characters.
- paste: Paste the copied characters after the cursor.
- `--before`: Paste the copied characters before the cursor.
- undo: Undo the last operation.
- redo: Redo the last operation.
- help: Open the help menu.
### Insert mode
- close: Cancel input.
- `--submit`: Submit the input.
- escape: Cancel insert mode and enter normal mode.
## Help
- close: Hide the help menu.
- escape: Clear the filter, or hide the help menu.
- arrow
- `n`: Move the cursor up or down n lines. Negative value for up, positive value for down.
- filter: Apply a filter for the help items.

View file

@ -1,3 +0,0 @@
# Theme
Just some colors, feel free to modify as you like, following the format in [../preset/theme.toml](../preset/theme.toml).

View file

@ -1,100 +0,0 @@
# Yazi
## manager
- layout: Manager layout by ratio, 3-element array
- `[1, 4, 3]`: 1/8 width for parent, 4/8 width for current, 3/8 width for preview
- sort_by: File sorting method
- `"alphabetical"`: Sort alphabetically, e.g. `1.md` < `10.md` < `2.md`
- `"created"`: Sort by creation time
- `"modified"`: Sort by last modified time
- `"natural"`: Sort naturally, e.g. `1.md` < `2.md` < `10.md`
- `"size"`: Sort by file size
- sort_sensitive: Sort case-sensitively
- `true`: Case-sensitive
- `false`: Case-insensitive
- sort_reverse: Display files in reverse order
- `true`: Reverse order
- `false`: Normal order
- sort_dir_first: Display directories first
- `true`: Directories first
- `false`: Respects `sort_by` and `sort_reverse` only
- show_hidden: Show hidden files
- `true`: Show
- `false`: Do not show
- show_symlink: Show the path of the symlink file point to, after the filename
- `true`: Show
- `false`: Do not show
## preview
- tab_size: Tab width
- max_width: Maximum preview width for images and videos
- max_height: Maximum preview height for images and videos
- cache_dir: The system cache directory is used by default, and the cached files will go away on a reboot automatically. If you want to make it more persistent, you can specify the cache directory manually as an absolute path.
## opener
Configure available openers, for example:
```toml
[opener]
archive = [
{ exec = 'unar "$1"' },
]
text = [
{ exec = 'nvim "$@"', block = true },
]
# ...
```
Available parameters are as follows:
- exec: The command to open the selected files, with the following variables available:
- `$n`: The N-th selected file, starting from 1
- `$@`: All selected files
- `foo`: Literal string to be passed
- block: Open in a blocking manner. After setting this, Yazi will hide into a secondary screen and display the program on the main screen until it exits. During this time, it can receive I/O signals, which is useful for interactive programs.
## open
Set rules for opening specific files, for example:
```toml
[open]
rules = [
{ mime = "text/*", use = "text" },
{ mime = "image/*", use = "image" },
# { mime = "application/json", use = "text" },
{ name = "*.json", use = "text" },
# Multiple openers for a single rule
{ name = "*.html", use = [ "browser", "text" ] },
]
```
Available rule parameters are as follows:
- name: Glob expression for matching the file name. Case insensitive by default, add `\s` to the beginning to make it sensitive.
- mime: Glob expression for matching the MIME type. Case insensitive by default, add `\s` to the beginning to make it sensitive.
- use: Opener name corresponding to the names in the opener section.
## tasks
- micro_workers: Maximum number of concurrent micro-tasks
- macro_workers: Maximum number of concurrent macro-tasks
- bizarre_retry: Maximum number of retries when a bizarre failure occurs

View file

@ -1,3 +0,0 @@
# Configuration
[See ../docs for more information.](../docs)