feat: Add yazi config
This commit is contained in:
parent
fc6a4dea97
commit
7cacef1705
20 changed files with 505 additions and 808 deletions
|
|
@ -12,8 +12,8 @@ GPG_TTY=$(tty)
|
|||
PATH=$PATH:$HOME/.local/bin
|
||||
TEXMFHOME=$HOME/.texmf
|
||||
PATH=/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$HOME/.local/bin:$HOME/.cargo/bin:$PATH
|
||||
EDITOR=neovide
|
||||
SUDO_EDITOR=neovide
|
||||
EDITOR="neovide --novsync --nofork"
|
||||
SUDO_EDITOR="neovide --novsync --nofork"
|
||||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
||||
LD_LIBRARY_PATH=/usr/local/lib
|
||||
SCRIPTS=$HOME/.config/scripts
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
Generated with Gradience
|
||||
|
||||
Issues caused by theming should be reported to Gradience repository, and not to upstream
|
||||
|
||||
https://github.com/GradienceTeam/Gradience
|
||||
*/
|
||||
|
||||
@define-color accent_color #a9b1d6;
|
||||
@define-color accent_bg_color #a9b1d6;
|
||||
@define-color accent_fg_color rgba(0, 0, 0, 0.87);
|
||||
|
|
@ -31,6 +39,14 @@
|
|||
@define-color popover_fg_color #c0caf5;
|
||||
@define-color shade_color rgba(0, 0, 0, 0.36);
|
||||
@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);
|
||||
@define-color secondary_sidebar_backdrop_color #1a1b26;
|
||||
@define-color secondary_sidebar_shade_color #000000;
|
||||
@define-color sidebar_backdrop_color #1a1b26;
|
||||
@define-color sidebar_shade_color #000000;
|
||||
@define-color secondary_sidebar_bg_color #1a1b26;
|
||||
@define-color secondary_sidebar_fg_color #c0caf5;
|
||||
@define-color sidebar_bg_color #1a1b26;
|
||||
@define-color sidebar_fg_color #c0caf5;
|
||||
@define-color blue_1 #99c1f1;
|
||||
@define-color blue_2 #62a0ea;
|
||||
@define-color blue_3 #3584e4;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
Generated with Gradience
|
||||
|
||||
Issues caused by theming should be reported to Gradience repository, and not to upstream
|
||||
|
||||
https://github.com/GradienceTeam/Gradience
|
||||
*/
|
||||
|
||||
@define-color accent_color #a9b1d6;
|
||||
@define-color accent_bg_color #a9b1d6;
|
||||
@define-color accent_fg_color rgba(0, 0, 0, 0.87);
|
||||
|
|
@ -31,6 +39,12 @@
|
|||
@define-color popover_fg_color #c0caf5;
|
||||
@define-color shade_color rgba(0, 0, 0, 0.36);
|
||||
@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);
|
||||
@define-color secondary_sidebar_backdrop_color #1a1b26;
|
||||
@define-color secondary_sidebar_shade_color #000000;
|
||||
@define-color sidebar_backdrop_color #1a1b26;
|
||||
@define-color sidebar_shade_color #c0caf5;
|
||||
@define-color secondary_sidebar_bg_color #1a1b26;
|
||||
@define-color secondary_sidebar_fg_color #c0caf5;
|
||||
@define-color blue_1 #99c1f1;
|
||||
@define-color blue_2 #62a0ea;
|
||||
@define-color blue_3 #3584e4;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
Generated with Gradience
|
||||
|
||||
Issues caused by theming should be reported to Gradience repository, and not to upstream
|
||||
|
||||
https://github.com/GradienceTeam/Gradience
|
||||
*/
|
||||
|
||||
@define-color accent_color #a9b1d6;
|
||||
@define-color accent_bg_color #a9b1d6;
|
||||
@define-color accent_fg_color rgba(0, 0, 0, 0.87);
|
||||
|
|
@ -31,6 +39,14 @@
|
|||
@define-color popover_fg_color #c0caf5;
|
||||
@define-color shade_color rgba(0, 0, 0, 0.36);
|
||||
@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);
|
||||
@define-color secondary_sidebar_backdrop_color #1a1b26;
|
||||
@define-color secondary_sidebar_shade_color #000000;
|
||||
@define-color sidebar_backdrop_color #1a1b26;
|
||||
@define-color sidebar_shade_color #000000;
|
||||
@define-color secondary_sidebar_bg_color #1a1b26;
|
||||
@define-color secondary_sidebar_fg_color #c0caf5;
|
||||
@define-color sidebar_bg_color #1a1b26;
|
||||
@define-color sidebar_fg_color #c0caf5;
|
||||
@define-color blue_1 #99c1f1;
|
||||
@define-color blue_2 #62a0ea;
|
||||
@define-color blue_3 #3584e4;
|
||||
|
|
|
|||
|
|
@ -1,3 +1,11 @@
|
|||
/*
|
||||
Generated with Gradience
|
||||
|
||||
Issues caused by theming should be reported to Gradience repository, and not to upstream
|
||||
|
||||
https://github.com/GradienceTeam/Gradience
|
||||
*/
|
||||
|
||||
@define-color accent_color #a9b1d6;
|
||||
@define-color accent_bg_color #a9b1d6;
|
||||
@define-color accent_fg_color rgba(0, 0, 0, 0.87);
|
||||
|
|
@ -31,6 +39,12 @@
|
|||
@define-color popover_fg_color #c0caf5;
|
||||
@define-color shade_color rgba(0, 0, 0, 0.36);
|
||||
@define-color scrollbar_outline_color rgba(0, 0, 0, 0.5);
|
||||
@define-color secondary_sidebar_backdrop_color #1a1b26;
|
||||
@define-color secondary_sidebar_shade_color #000000;
|
||||
@define-color sidebar_backdrop_color #1a1b26;
|
||||
@define-color sidebar_shade_color #c0caf5;
|
||||
@define-color secondary_sidebar_bg_color #1a1b26;
|
||||
@define-color secondary_sidebar_fg_color #c0caf5;
|
||||
@define-color blue_1 #99c1f1;
|
||||
@define-color blue_2 #62a0ea;
|
||||
@define-color blue_3 #3584e4;
|
||||
|
|
@ -76,3 +90,11 @@
|
|||
@define-color dark_3 #3d3846;
|
||||
@define-color dark_4 #241f31;
|
||||
@define-color dark_5 #000000;
|
||||
/*
|
||||
Generated with Gradience
|
||||
|
||||
Issues caused by theming should be reported to Gradience repository, and not to upstream
|
||||
|
||||
https://github.com/GradienceTeam/Gradience
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
xdg_open = true
|
||||
[preview]
|
||||
max_preview_size = 50000097152
|
||||
preview_shown_hook_script = "~/.config/joshuto/on_preview_shown"
|
||||
preview_removed_hook_script = "~/.config/joshuto/on_preview_removed"
|
||||
|
|
@ -1,165 +0,0 @@
|
|||
[default_view]
|
||||
|
||||
keymap = [
|
||||
{ keys = [ "escape" ], command = "escape" },
|
||||
{ keys = [ "ctrl+t" ], command = "new_tab" },
|
||||
{ keys = [ "alt+t" ], command = "new_tab --cursor" },
|
||||
{ keys = [ "T" ], command = "new_tab --current" },
|
||||
{ keys = [ "W" ], command = "close_tab" },
|
||||
{ keys = [ "ctrl+w" ], command = "close_tab" },
|
||||
{ keys = [ "q" ], command = "close_tab" },
|
||||
{ keys = [ "Q" ], command = "quit --output-current-directory" },
|
||||
|
||||
{ keys = [ "R" ], command = "reload_dirlist" },
|
||||
{ keys = [ "z", "h" ], command = "toggle_hidden" },
|
||||
{ keys = [ "ctrl+h" ], command = "toggle_hidden" },
|
||||
{ keys = [ "\t" ], command = "tab_switch 1" },
|
||||
{ keys = [ "backtab" ], command = "tab_switch -1" },
|
||||
|
||||
{ keys = [ "alt+1" ], command = "tab_switch_index 1" },
|
||||
{ keys = [ "alt+2" ], command = "tab_switch_index 2" },
|
||||
{ keys = [ "alt+3" ], command = "tab_switch_index 3" },
|
||||
{ keys = [ "alt+4" ], command = "tab_switch_index 4" },
|
||||
{ keys = [ "alt+5" ], command = "tab_switch_index 5" },
|
||||
|
||||
{ keys = [ "1" ], command = "numbered_command 1" },
|
||||
{ keys = [ "2" ], command = "numbered_command 2" },
|
||||
{ keys = [ "3" ], command = "numbered_command 3" },
|
||||
{ keys = [ "4" ], command = "numbered_command 4" },
|
||||
{ keys = [ "5" ], command = "numbered_command 5" },
|
||||
{ keys = [ "6" ], command = "numbered_command 6" },
|
||||
{ keys = [ "7" ], command = "numbered_command 7" },
|
||||
{ keys = [ "8" ], command = "numbered_command 8" },
|
||||
{ keys = [ "9" ], command = "numbered_command 9" },
|
||||
|
||||
# arrow keys
|
||||
{ keys = [ "arrow_up" ], command = "cursor_move_up" },
|
||||
{ keys = [ "arrow_down" ], command = "cursor_move_down" },
|
||||
{ keys = [ "arrow_left" ], command = "cd .." },
|
||||
{ keys = [ "arrow_right" ], command = "open" },
|
||||
{ keys = [ "\n" ], command = "open" },
|
||||
{ keys = [ "home" ], command = "cursor_move_home" },
|
||||
{ keys = [ "end" ], command = "cursor_move_end" },
|
||||
{ keys = [ "page_up" ], command = "cursor_move_page_up" },
|
||||
{ keys = [ "page_down" ], command = "cursor_move_page_down" },
|
||||
{ keys = [ "ctrl+u" ], command = "cursor_move_page_up 0.5" },
|
||||
{ keys = [ "ctrl+d" ], command = "cursor_move_page_down 0.5" },
|
||||
|
||||
# vim-like keybindings
|
||||
{ keys = [ "k" ], command = "cursor_move_down" },
|
||||
{ keys = [ "l" ], command = "cursor_move_up" },
|
||||
{ keys = [ "j" ], command = "cd .." },
|
||||
{ keys = [ ";" ], command = "open" },
|
||||
{ keys = [ "g", "g" ], command = "cursor_move_home" },
|
||||
{ keys = [ "G" ], command = "cursor_move_end" },
|
||||
{ keys = [ "r" ], command = "open_with" },
|
||||
|
||||
{ keys = [ "H" ], command = "cursor_move_page_home" },
|
||||
{ keys = [ "L" ], command = "cursor_move_page_middle" },
|
||||
{ keys = [ "M" ], command = "cursor_move_page_end" },
|
||||
|
||||
{ keys = [ "[" ], command = "parent_cursor_move_up" },
|
||||
{ keys = [ "]" ], command = "parent_cursor_move_down" },
|
||||
|
||||
{ keys = [ "c", "d" ], command = ":cd " },
|
||||
{ keys = [ "d", "d" ], command = "cut_files" },
|
||||
{ keys = [ "y", "y" ], command = "copy_files" },
|
||||
{ keys = [ "y", "n" ], command = "copy_filename" },
|
||||
{ keys = [ "y", "." ], command = "copy_filename_without_extension" },
|
||||
{ keys = [ "y", "p" ], command = "copy_filepath" },
|
||||
{ keys = [ "y", "d" ], command = "copy_dirpath" },
|
||||
|
||||
{ keys = [ "p", "l" ], command = "symlink_files --relative=false" },
|
||||
{ keys = [ "p", "L" ], command = "symlink_files --relative=true" },
|
||||
|
||||
{ keys = [ "delete" ], command = "delete_files" },
|
||||
{ keys = [ "d", "D" ], command = "delete_files" },
|
||||
|
||||
{ keys = [ "p", "p" ], command = "paste_files" },
|
||||
{ keys = [ "p", "o" ], command = "paste_files --overwrite=true" },
|
||||
|
||||
{ keys = [ "a" ], command = "rename_append" },
|
||||
{ keys = [ "A" ], command = "rename_prepend" },
|
||||
|
||||
{ keys = [ "f", "t" ], command = ":touch " },
|
||||
|
||||
{ keys = [ " " ], command = "select --toggle=true" },
|
||||
{ keys = [ "t" ], command = "select --all=true --toggle=true" },
|
||||
{ keys = [ "V" ], command = "toggle_visual"},
|
||||
|
||||
{ keys = [ "w" ], command = "show_tasks --exit-key=w" },
|
||||
{ keys = [ "b", "b" ], command = "bulk_rename" },
|
||||
{ keys = [ "=" ], command = "set_mode" },
|
||||
|
||||
{ keys = [ ":" ], command = ":" },
|
||||
{ keys = [ ";" ], command = ":" },
|
||||
|
||||
{ keys = [ "'" ], command = ":shell " },
|
||||
{ keys = [ "m", "k" ], command = ":mkdir " },
|
||||
{ keys = [ "c", "w" ], command = ":rename " },
|
||||
|
||||
{ keys = [ "/" ], command = ":search " },
|
||||
{ keys = [ "|" ], command = ":search_inc " },
|
||||
{ keys = [ "\\" ], command = ":search_glob " },
|
||||
{ keys = [ "S" ], command = "search_fzf" },
|
||||
{ keys = [ "C" ], command = "subdir_fzf" },
|
||||
|
||||
{ keys = [ "n" ], command = "search_next" },
|
||||
{ keys = [ "N" ], command = "search_prev" },
|
||||
|
||||
{ keys = [ "s", "r" ], command = "sort reverse" },
|
||||
{ keys = [ "s", "l" ], command = "sort lexical" },
|
||||
{ keys = [ "s", "m" ], command = "sort mtime" },
|
||||
{ keys = [ "s", "n" ], command = "sort natural" },
|
||||
{ keys = [ "s", "s" ], command = "sort size" },
|
||||
{ keys = [ "s", "e" ], command = "sort ext" },
|
||||
|
||||
{ keys = [ "m", "s" ], command = "linemode size" },
|
||||
{ keys = [ "m", "m" ], command = "linemode mtime" },
|
||||
{ keys = [ "m", "M" ], command = "linemode sizemtime" },
|
||||
|
||||
{ keys = [ "g", "r" ], command = "cd /" },
|
||||
{ keys = [ "g", "c" ], command = "cd ~/.config" },
|
||||
{ keys = [ "g", "d" ], command = "cd ~/Downloads" },
|
||||
{ keys = [ "g", "e" ], command = "cd /etc" },
|
||||
{ keys = [ "g", "h" ], command = "cd ~/" },
|
||||
{ keys = [ "?" ], command = "help" }
|
||||
]
|
||||
|
||||
[task_view]
|
||||
|
||||
keymap = [
|
||||
# arrow keys
|
||||
{ keys = [ "arrow_up" ], command = "cursor_move_up" },
|
||||
{ keys = [ "arrow_down" ], command = "cursor_move_down" },
|
||||
{ keys = [ "home" ], command = "cursor_move_home" },
|
||||
{ keys = [ "end" ], command = "cursor_move_end" },
|
||||
|
||||
# vim-like keybindings
|
||||
{ keys = [ "j" ], command = "cursor_move_down" },
|
||||
{ keys = [ "k" ], command = "cursor_move_up" },
|
||||
{ keys = [ "g", "g" ], command = "cursor_move_home" },
|
||||
{ keys = [ "G" ], command = "cursor_move_end" },
|
||||
|
||||
{ keys = [ "w" ], command = "show_tasks" },
|
||||
{ keys = [ "escape" ], command = "show_tasks" },
|
||||
]
|
||||
|
||||
[help_view]
|
||||
|
||||
keymap = [
|
||||
# arrow keys
|
||||
{ keys = [ "arrow_up" ], command = "cursor_move_up" },
|
||||
{ keys = [ "arrow_down" ], command = "cursor_move_down" },
|
||||
{ keys = [ "home" ], command = "cursor_move_home" },
|
||||
{ keys = [ "end" ], command = "cursor_move_end" },
|
||||
|
||||
# vim-like keybindings
|
||||
{ keys = [ "j" ], command = "cursor_move_down" },
|
||||
{ keys = [ "k" ], command = "cursor_move_up" },
|
||||
{ keys = [ "g", "g" ], command = "cursor_move_home" },
|
||||
{ keys = [ "G" ], command = "cursor_move_end" },
|
||||
|
||||
{ keys = [ "w" ], command = "show_tasks" },
|
||||
{ keys = [ "escape" ], command = "show_tasks" },
|
||||
]
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
2023-04-08 23:31:08 - Neovide panicked with the message 'Could not setup setting notifier for refresh_rate_idle: Error sending request 'nvim_command''. (File: src/error_handling.rs; Line: 5, Column: 5)
|
||||
0: <unknown>
|
||||
1: <unknown>
|
||||
2: <unknown>
|
||||
3: <unknown>
|
||||
4: <unknown>
|
||||
5: <unknown>
|
||||
6: <unknown>
|
||||
7: <unknown>
|
||||
8: <unknown>
|
||||
9: <unknown>
|
||||
10: <unknown>
|
||||
11: <unknown>
|
||||
12: <unknown>
|
||||
13: <unknown>
|
||||
14: <unknown>
|
||||
15: <unknown>
|
||||
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
kitty +kitten icat \
|
||||
--transfer-mode=file \
|
||||
--clear 2>/dev/null
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
FILE_PATH="$1" # Full path of the previewed file
|
||||
PREVIEW_X_COORD="$2" # x coordinate of upper left cell of preview area
|
||||
PREVIEW_Y_COORD="$3" # y coordinate of upper left cell of preview area
|
||||
PREVIEW_WIDTH="$4" # Width of the preview pane (number of fitting characters)
|
||||
PREVIEW_HEIGHT="$5" # Height of the preview pane (number of fitting characters)
|
||||
|
||||
TMP_FILE="$HOME/.cache/joshuto/thumbcache.png"
|
||||
|
||||
mimetype=$(file --mime-type -Lb "$FILE_PATH")
|
||||
|
||||
function image {
|
||||
kitty +kitten icat \
|
||||
--transfer-mode=file \
|
||||
--clear 2>/dev/null
|
||||
kitty +kitten icat \
|
||||
--transfer-mode=file \
|
||||
--place "${PREVIEW_WIDTH}x${PREVIEW_HEIGHT}@${PREVIEW_X_COORD}x${PREVIEW_Y_COORD}" \
|
||||
"$1" 2>/dev/null
|
||||
}
|
||||
|
||||
case "$mimetype" in
|
||||
image/*)
|
||||
image "${FILE_PATH}"
|
||||
;;
|
||||
*)
|
||||
kitty +kitten icat \
|
||||
--transfer-mode=file \
|
||||
--clear 2>/dev/null
|
||||
;;
|
||||
esac
|
||||
|
|
@ -1,202 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
# ranger supports enhanced previews. If the option "use_preview_script"
|
||||
# is set to True and this file exists, this script will be called and its
|
||||
# output is displayed in ranger. ANSI color codes are supported.
|
||||
|
||||
# NOTES: This script is considered a configuration file. If you upgrade
|
||||
# ranger, it will be left untouched. (You must update it yourself.)
|
||||
# Also, ranger disables STDIN here, so interactive scripts won't work properly
|
||||
|
||||
# Meanings of exit codes:
|
||||
# code | meaning | action of ranger
|
||||
# -----+------------+-------------------------------------------
|
||||
# 0 | success | success. display stdout as preview
|
||||
# 1 | no preview | failure. display no preview at all
|
||||
# 2 | plain text | display the plain content of the file
|
||||
# 3 | fix width | success. Don't reload when width changes
|
||||
# 4 | fix height | success. Don't reload when height changes
|
||||
# 5 | fix both | success. Don't ever reload
|
||||
# 6 | image | success. display the image $cached points to as an image preview
|
||||
# 7 | image | success. display the file directly as an image
|
||||
|
||||
# Meaningful aliases for arguments:
|
||||
path="$1" # Full path of the selected file
|
||||
width="$2" # Width of the preview pane (number of fitting characters)
|
||||
height="$3" # Height of the preview pane (number of fitting characters)
|
||||
cached="$4" # Path that should be used to cache image previews
|
||||
preview_images="$5" # "True" if image previews are enabled, "False" otherwise.
|
||||
x_coord=0
|
||||
y_coord=0
|
||||
cache_path=""
|
||||
|
||||
while [ "$#" -gt 0 ]; do
|
||||
case "$1" in
|
||||
"--path")
|
||||
shift
|
||||
path="$1"
|
||||
;;
|
||||
"--preview-width")
|
||||
shift
|
||||
width="$1"
|
||||
;;
|
||||
"--preview-height")
|
||||
shift
|
||||
height="$1"
|
||||
;;
|
||||
"--x-coord")
|
||||
shift
|
||||
x_coord="$1"
|
||||
;;
|
||||
"--y-coord")
|
||||
shift
|
||||
y_coord="$1"
|
||||
;;
|
||||
"--preview-images")
|
||||
shift
|
||||
preview_images="$1"
|
||||
;;
|
||||
"--image-cache")
|
||||
shift
|
||||
cache_path="$1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
|
||||
maxln=200 # Stop after $maxln lines. Can be used like ls | head -n $maxln
|
||||
|
||||
# Find out something about the file:
|
||||
mimetype=$(file --mime-type -Lb "$path")
|
||||
extension=$(/bin/echo "${path##*.}" | awk '{print tolower($0)}')
|
||||
realpath=$(realpath "$path")
|
||||
|
||||
# Functions:
|
||||
# runs a command and saves its output into $output. Useful if you need
|
||||
# the return value AND want to use the output in a pipe
|
||||
try() { output=$(eval '"$@"'); }
|
||||
|
||||
# writes the output of the previously used "try" command
|
||||
dump() { /bin/echo "$output"; }
|
||||
|
||||
# a common post-processing function used after most commands
|
||||
trim() { head -n "$maxln"; }
|
||||
|
||||
# wraps highlight to treat exit code 141 (killed by SIGPIPE) as success
|
||||
safepipe() { "$@"; test $? = 0 -o $? = 141; }
|
||||
|
||||
tmsu_tag_list() {
|
||||
taglist=`tmsu tags -n never -1 "$path"`
|
||||
result=$?
|
||||
if [ $result -eq 0 ]; then
|
||||
if [ -z "$taglist" ]; then
|
||||
echo "No Tags"
|
||||
else
|
||||
taglist=`echo "$taglist" | sed 's/^/ • /'`
|
||||
echo "Tags:"
|
||||
echo "$taglist"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
# case "$mimetype" in
|
||||
# image/* | video/* | audio/*)
|
||||
# image_output="Tags:\n `tmsu tags -n never -1 "$path" | sed 's/^/ • /'`"
|
||||
# echo -e "$image_output"
|
||||
# esac
|
||||
|
||||
# Image previews, if enabled in ranger.
|
||||
if [ "$preview_images" = "True" ]; then
|
||||
case "$mimetype" in
|
||||
# Image previews for SVG files, disabled by default.
|
||||
###image/svg+xml)
|
||||
### convert "$path" "$cached" && exit 6 || exit 1;;
|
||||
# Image previews for image files. w3mimgdisplay will be called for all
|
||||
# image files (unless overriden as above), but might fail for
|
||||
# unsupported types.
|
||||
image/*)
|
||||
exit 7;;
|
||||
# Image preview for video, disabled by default.:
|
||||
###video/*)
|
||||
### ffmpegthumbnailer -i "$path" -o "$cached" -s 0 && exit 6 || exit 1;;
|
||||
esac
|
||||
fi
|
||||
|
||||
case "$extension" in
|
||||
# Archive extensions:
|
||||
a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
|
||||
rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
|
||||
try als "$path" && { dump | trim; exit 0; }
|
||||
try acat "$path" && { dump | trim; exit 3; }
|
||||
try bsdtar -lf "$path" && { dump | trim; exit 0; }
|
||||
exit 1;;
|
||||
rar)
|
||||
# avoid password prompt by providing empty password
|
||||
try unrar -p- lt "$path" && { dump | trim; exit 0; } || exit 1;;
|
||||
7z)
|
||||
# avoid password prompt by providing empty password
|
||||
try 7z -p l "$path" && { dump | trim; exit 0; } || exit 1;;
|
||||
# PDF documents:
|
||||
pdf)
|
||||
try pdftotext -l 10 -nopgbrk -q "$path" - && \
|
||||
{ dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
|
||||
# BitTorrent Files
|
||||
torrent)
|
||||
try transmission-show "$path" && { dump | trim; exit 5; } || exit 1;;
|
||||
# ODT Files
|
||||
odt|ods|odp|sxw)
|
||||
try odt2txt "$path" && { dump | trim; exit 5; } || exit 1;;
|
||||
# HTML Pages:
|
||||
htm|html|xhtml)
|
||||
try w3m -dump "$path" && { dump | trim | fmt -s -w $width; exit 4; }
|
||||
try lynx -dump "$path" && { dump | trim | fmt -s -w $width; exit 4; }
|
||||
try elinks -dump "$path" && { dump | trim | fmt -s -w $width; exit 4; }
|
||||
;; # fall back to highlight/cat if the text browsers fail
|
||||
esac
|
||||
|
||||
case "$mimetype" in
|
||||
# Syntax highlight for text files:
|
||||
text/* | */xml | */json)
|
||||
if [ "$(tput colors)" -ge 256 ]; then
|
||||
pygmentize_format=terminal256
|
||||
highlight_format=xterm256
|
||||
else
|
||||
pygmentize_format=terminal
|
||||
highlight_format=ansi
|
||||
fi
|
||||
#try safepipe highlight --out-format=${highlight_format} "$path" && { dump | trim; exit 5; }
|
||||
#try safepipe pygmentize -f ${pygmentize_format} "$path" && { dump | trim; exit 5; }
|
||||
try safepipe bat -pp --color always "$path" && { dump | trim; exit 5; }
|
||||
cat "$path"
|
||||
exit 2;;
|
||||
image/png | image/jpeg | image/gif)
|
||||
dimension="Size `exiftool "$path" | grep '^Image Size' | awk '{print $4}'`"
|
||||
tags=$(tmsu_tag_list)
|
||||
echo "$realpath"
|
||||
echo "$dimension"
|
||||
echo "$tags"
|
||||
meta_file="$(get_preview_meta_file $path)"
|
||||
let y_offset=`printf "${tags}" | sed -n '=' | wc -l`+3
|
||||
echo "y-offset $y_offset" > "$meta_file"
|
||||
exit 4
|
||||
;;
|
||||
image/*)
|
||||
tags=$(tmsu_tag_list)
|
||||
echo "$tags"
|
||||
echo "$realpath"
|
||||
exit 4
|
||||
#img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1
|
||||
;;
|
||||
# Display information about media files:
|
||||
video/* | audio/*)
|
||||
tags=$(tmsu_tag_list)
|
||||
echo "$tags"
|
||||
echo "$realpath"
|
||||
exiftool "$path" && exit 5
|
||||
# Use sed to remove spaces so the output fits into the narrow window
|
||||
try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;;
|
||||
esac
|
||||
|
||||
exit 1
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
[selection]
|
||||
fg = "light_yellow"
|
||||
bold = true
|
||||
|
||||
[visual_mode_selection]
|
||||
fg = "light_red"
|
||||
bold = true
|
||||
|
||||
[selection.prefix]
|
||||
prefix = " "
|
||||
size = 2
|
||||
|
||||
[executable]
|
||||
fg = "light_green"
|
||||
bold = true
|
||||
|
||||
[regular]
|
||||
fg = "white"
|
||||
|
||||
[directory]
|
||||
fg = "light_blue"
|
||||
bold = true
|
||||
|
||||
[link]
|
||||
fg = "cyan"
|
||||
bold = true
|
||||
|
||||
[link_invalid]
|
||||
fg = "red"
|
||||
bold = true
|
||||
|
||||
[socket]
|
||||
fg = "light_magenta"
|
||||
bold = true
|
||||
|
||||
[ext]
|
||||
|
||||
bmp.fg = "yellow"
|
||||
gif.fg = "yellow"
|
||||
heic.fg = "yellow"
|
||||
jpg.fg = "yellow"
|
||||
jpeg.fg = "yellow"
|
||||
pgm.fg = "yellow"
|
||||
png.fg = "yellow"
|
||||
ppm.fg = "yellow"
|
||||
svg.fg = "yellow"
|
||||
|
||||
wav.fg = "magenta"
|
||||
flac.fg = "magenta"
|
||||
mp3.fg = "magenta"
|
||||
amr.fg = "magenta"
|
||||
|
||||
avi.fg = "magenta"
|
||||
flv.fg = "magenta"
|
||||
m3u.fg = "magenta"
|
||||
m4a.fg = "magenta"
|
||||
m4v.fg = "magenta"
|
||||
mkv.fg = "magenta"
|
||||
mov.fg = "magenta"
|
||||
mp4.fg = "magenta"
|
||||
mpg.fg = "magenta"
|
||||
rmvb.fg = "magenta"
|
||||
webm.fg = "magenta"
|
||||
wmv.fg = "magenta"
|
||||
|
||||
7z.fg = "red"
|
||||
bz2.fg = "red"
|
||||
gz.fg = "red"
|
||||
rar.fg = "red"
|
||||
tar.fg = "red"
|
||||
tgz.fg = "red"
|
||||
xz.fg = "red"
|
||||
zip.fg = "red"
|
||||
64
mimeapps.list
Normal file
64
mimeapps.list
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
[Default Applications]
|
||||
x-scheme-handler/http=firefox.desktop
|
||||
x-scheme-handler/https=firefox.desktop
|
||||
x-scheme-handler/chrome=firefox.desktop
|
||||
text/html=firefox.desktop
|
||||
application/x-extension-htm=firefox.desktop
|
||||
application/x-extension-html=firefox.desktop
|
||||
application/x-extension-shtml=firefox.desktop
|
||||
application/xhtml+xml=firefox.desktop
|
||||
application/x-extension-xhtml=firefox.desktop
|
||||
application/x-extension-xht=firefox.desktop
|
||||
x-scheme-handler/mailto=userapp-Thunderbird-UUM0S1.desktop
|
||||
message/rfc822=userapp-Thunderbird-UUM0S1.desktop
|
||||
x-scheme-handler/mid=userapp-Thunderbird-UUM0S1.desktop
|
||||
x-scheme-handler/webcal=userapp-Thunderbird-5EC1S1.desktop
|
||||
text/calendar=userapp-Thunderbird-5EC1S1.desktop
|
||||
application/x-extension-ics=userapp-Thunderbird-5EC1S1.desktop
|
||||
x-scheme-handler/webcals=userapp-Thunderbird-5EC1S1.desktop
|
||||
image/jpeg=swappy.desktop
|
||||
image/png=swappy.desktop
|
||||
text/markdown=neovide.desktop
|
||||
text/x-tex=neovide.desktop
|
||||
text/x-csrc=neovide.desktop
|
||||
text/x-chdr=neovide.desktop
|
||||
text/x-c++src=neovide.desktop
|
||||
text/x-cmake=neovide.desktop
|
||||
application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop
|
||||
text/x-python=nvim.desktop
|
||||
image/svg+xml=org.inkscape.Inkscape.desktop
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation=libreoffice-impress.desktop
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop
|
||||
text/csv=libreoffice-calc.desktop
|
||||
application/pdf=org.pwmt.zathura.desktop
|
||||
|
||||
[Added Associations]
|
||||
x-scheme-handler/http=firefox.desktop;
|
||||
x-scheme-handler/https=firefox.desktop;
|
||||
x-scheme-handler/chrome=firefox.desktop;
|
||||
text/html=firefox.desktop;
|
||||
application/x-extension-htm=firefox.desktop;
|
||||
application/x-extension-html=firefox.desktop;
|
||||
application/x-extension-shtml=firefox.desktop;
|
||||
application/xhtml+xml=firefox.desktop;
|
||||
application/x-extension-xhtml=firefox.desktop;
|
||||
application/x-extension-xht=firefox.desktop;
|
||||
application/pdf=org.gnome.Evince.desktop;org.pwmt.zathura.desktop;
|
||||
x-scheme-handler/mailto=userapp-Thunderbird-UUM0S1.desktop;
|
||||
x-scheme-handler/mid=userapp-Thunderbird-UUM0S1.desktop;
|
||||
x-scheme-handler/webcal=userapp-Thunderbird-5EC1S1.desktop;
|
||||
x-scheme-handler/webcals=userapp-Thunderbird-5EC1S1.desktop;
|
||||
application/gzip=com.github.xournalpp.xournalpp.desktop;
|
||||
image/png=com.github.maoschanz.drawing.desktop;swappy.desktop;
|
||||
text/markdown=firefox.desktop;neovide.desktop;
|
||||
text/x-tex=neovide.desktop;
|
||||
text/x-csrc=neovide.desktop;
|
||||
text/x-chdr=neovide.desktop;
|
||||
text/x-c++src=neovide.desktop;
|
||||
text/x-cmake=neovide.desktop;
|
||||
application/vnd.oasis.opendocument.spreadsheet=libreoffice-calc.desktop;
|
||||
text/x-python=nvim.desktop;
|
||||
image/svg+xml=krita_svg.desktop;org.inkscape.Inkscape.desktop;
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation=libreoffice-impress.desktop;
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;
|
||||
text/csv=libreoffice-calc.desktop;
|
||||
|
|
@ -19,13 +19,10 @@ local file_pattern = "*.typst"
|
|||
|
||||
local colorSnippet = s(
|
||||
"tx-",
|
||||
fmt(
|
||||
[[ #text({1})[{2}] ]],
|
||||
{
|
||||
fmt([[ #text({1})[{2}] ]], {
|
||||
i(1, "color"),
|
||||
i(2, "text"),
|
||||
}
|
||||
)
|
||||
})
|
||||
)
|
||||
table.insert(snippets, colorSnippet)
|
||||
|
||||
|
|
@ -89,5 +86,41 @@ local codeSnippet = s(
|
|||
)
|
||||
)
|
||||
table.insert(snippets, codeSnippet)
|
||||
|
||||
local patternSnippet = s(
|
||||
"pattern-",
|
||||
fmt(
|
||||
[[
|
||||
#subsection([{1}])
|
||||
#set text(size: 14pt)
|
||||
|
||||
Problem | {2}
|
||||
Context | {3}
|
||||
Participants :
|
||||
- {4}
|
||||
#set text(size: 11pt)
|
||||
// images
|
||||
{5}
|
||||
|
||||
#columns(2, [
|
||||
#text(green)[Benefits]
|
||||
- {6}
|
||||
#colbreak()
|
||||
#text(red)[Liabilities]
|
||||
- {7}
|
||||
])
|
||||
]],
|
||||
{
|
||||
i(1, "pattern"),
|
||||
i(2, "problem"),
|
||||
i(3, "context"),
|
||||
i(4, ""),
|
||||
i(5, ""),
|
||||
i(6, ""),
|
||||
i(7, ""),
|
||||
}
|
||||
)
|
||||
)
|
||||
table.insert(snippets, patternSnippet)
|
||||
------------------------------------------------- snippets end
|
||||
return snippets, autosnippets
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[ColorScheme]
|
||||
active_colors=#ffc0caf5, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ffc0caf5, #ffc0caf5, #ffc0caf5, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ffc0caf5, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ffc0caf5, #ffc0caf5
|
||||
disabled_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d
|
||||
inactive_colors=#ff6d728d, #ff1a1b26, #ff373949, #ff2b2c3b, #ff1a1b26, #ff2b2c3b, #ff6d728d, #ff6d728d, #ff6d728d, #ff1a1b26, #ff1a1b26, #19000000, #ff2b2c3b, #ff6d728d, #ff3584e4, #ff1b6acb, #ff1a1b26, #ff242530, #ff1a1b26, #ff6d728d, #ff6d728d
|
||||
active_colors=#ffc0caf5, #ff1a1b26, #ffffffff, #ffcacaca, #ff9f9f9f, #ffb8b8b8, #ffc0caf5, #ffffffff, #ffc0caf5, #ff1a1b26, #ff1a1b26, #ff767676, #ffa9b1d6, #dd000000, #ff0000ff, #ffff00ff, #fff7f7f7, #ff000000, #ffffffdc, #ff000000, #80000000
|
||||
disabled_colors=#ffbebebe, #ff1a1b26, #ffffffff, #ffcacaca, #ffbebebe, #ffb8b8b8, #ffbebebe, #ffffffff, #ffbebebe, #ffefefef, #ff1a1b26, #ffb1b1b1, #ff919191, #ffffffff, #ff0000ff, #ffff00ff, #fff7f7f7, #ff000000, #ffffffdc, #ff000000, #80000000
|
||||
inactive_colors=#ffc0caf5, #ff1a1b26, #ffffffff, #ffcacaca, #ff9f9f9f, #ffb8b8b8, #ffc0caf5, #ffffffff, #ffc0caf5, #ff1a1b26, #ff1a1b26, #ff767676, #ff308cc6, #ffffffff, #ff0000ff, #ffff00ff, #fff7f7f7, #ff000000, #ffffffdc, #ff000000, #80000000
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\0\0\0\0\0\0\0\fv\0\0\x2\x10\0
|
|||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x2\x82\0\0\x1\xf2\0\0\0\0\0\0\0\0\0\0\x2\x82\0\0\x1\xf2\0\0\0\x2\x2\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\x2\x82\0\0\x1\xf2)
|
||||
|
||||
[SettingsWindow]
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\n\0\0\0\0\0\0\0\rK\0\0\x5\x61\0\0\0\0\0\0\0\0\0\0\x3K\0\0\x5\x61\0\0\0\0\x2\0\0\0\rp\0\0\n\0\0\0\0\0\0\0\rK\0\0\x5\x61)
|
||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x4\xe3\0\0\x3l\0\0\0\0\0\0\0\0\0\0\x3K\0\0\x5\x61\0\0\0\0\x2\0\0\0\rp\0\0\0\0\0\0\0\0\0\0\x4\xe3\0\0\x3l)
|
||||
|
||||
[Troubleshooting]
|
||||
force_raster_widgets=1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
ar.xjuan.Cambalache
|
||||
Browser
|
||||
com.github.GradienceTeam.Gradience
|
||||
com.github.GradienceTeam.Gradience.Devel
|
||||
com.github.tchx84.Flatseal
|
||||
Games
|
||||
com.lakoliu.Furtherance
|
||||
|
|
@ -9,7 +8,6 @@ com.rustdesk.RustDesk
|
|||
com.usebottles.bottles
|
||||
com.valvesoftware.Steam.Utility.gamescope
|
||||
de.haeckerfelix.Fragments
|
||||
de.shorsh.discord-screenaudio
|
||||
im.fluffychat.Fluffychat
|
||||
io.github.Foldex.AdwSteamGtk
|
||||
io.github.lainsce.Colorway
|
||||
|
|
@ -32,7 +30,7 @@ org.freedesktop.Platform.GStreamer.gstreamer-vaapi
|
|||
org.freedesktop.Platform.ffmpeg-full
|
||||
org.freedesktop.Platform.ffmpeg_full.i386
|
||||
org.freedesktop.Platform.openh264
|
||||
org.freedesktop.Platform.openh264
|
||||
Application
|
||||
Application
|
||||
Application
|
||||
Application
|
||||
|
|
@ -41,9 +39,8 @@ Software
|
|||
Software
|
||||
Library
|
||||
Gtk
|
||||
Gtk
|
||||
theme
|
||||
theme
|
||||
Application
|
||||
Application
|
||||
Application
|
||||
org.winehq.Wine.DLLs.dxvk
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ acl
|
|||
acorn
|
||||
acpid
|
||||
adobe-source-code-pro-fonts
|
||||
adw-gtk-theme
|
||||
adw-gtk3
|
||||
adwaita-color-schemes
|
||||
adwaita-cursors
|
||||
|
|
@ -117,6 +118,7 @@ cairo
|
|||
cairomm
|
||||
cairomm-1.16
|
||||
calf
|
||||
cambalache-git
|
||||
cantarell-fonts
|
||||
capstone
|
||||
carapace-bin
|
||||
|
|
@ -181,6 +183,7 @@ device-mapper
|
|||
dfu-programmer
|
||||
dfu-util
|
||||
diffutils
|
||||
discord-screenaudio
|
||||
djvulibre
|
||||
dkms
|
||||
dmidecode
|
||||
|
|
@ -288,7 +291,6 @@ geocode-glib
|
|||
geocode-glib-2
|
||||
geocode-glib-common
|
||||
gettext
|
||||
ghc-libs
|
||||
ghostscript
|
||||
giflib
|
||||
gimp
|
||||
|
|
@ -385,6 +387,7 @@ gtksourceview5
|
|||
gts
|
||||
gucharmap
|
||||
guile
|
||||
gumbo-parser
|
||||
gupnp
|
||||
gupnp-dlna
|
||||
gupnp-igd
|
||||
|
|
@ -393,287 +396,6 @@ gvfs-smb
|
|||
gzip
|
||||
harfbuzz
|
||||
harfbuzz-icu
|
||||
haskell-aeson
|
||||
haskell-aeson-pretty
|
||||
haskell-annotated-wl-pprint
|
||||
haskell-ansi-terminal
|
||||
haskell-ansi-wl-pprint
|
||||
haskell-appar
|
||||
haskell-asn1-encoding
|
||||
haskell-asn1-parse
|
||||
haskell-asn1-types
|
||||
haskell-assoc
|
||||
haskell-async
|
||||
haskell-attoparsec
|
||||
haskell-attoparsec-iso8601
|
||||
haskell-auto-update
|
||||
haskell-base-compat
|
||||
haskell-base-compat-batteries
|
||||
haskell-base-orphans
|
||||
haskell-base-unicode-symbols
|
||||
haskell-base16-bytestring
|
||||
haskell-base64
|
||||
haskell-base64-bytestring
|
||||
haskell-basement
|
||||
haskell-bifunctors
|
||||
haskell-bitvec
|
||||
haskell-blaze-builder
|
||||
haskell-blaze-html
|
||||
haskell-blaze-markup
|
||||
haskell-boring
|
||||
haskell-bsb-http-chunked
|
||||
haskell-byteable
|
||||
haskell-byteorder
|
||||
haskell-call-stack
|
||||
haskell-casa-client
|
||||
haskell-casa-types
|
||||
haskell-case-insensitive
|
||||
haskell-cereal
|
||||
haskell-citeproc
|
||||
haskell-clock
|
||||
haskell-cmdargs
|
||||
haskell-colour
|
||||
haskell-commonmark
|
||||
haskell-commonmark-extensions
|
||||
haskell-commonmark-pandoc
|
||||
haskell-comonad
|
||||
haskell-conduit
|
||||
haskell-conduit-extra
|
||||
haskell-connection
|
||||
haskell-constraints
|
||||
haskell-contravariant
|
||||
haskell-cookie
|
||||
haskell-cryptohash-sha256
|
||||
haskell-crypton
|
||||
haskell-crypton-conduit
|
||||
haskell-crypton-connection
|
||||
haskell-crypton-x509
|
||||
haskell-crypton-x509-store
|
||||
haskell-crypton-x509-system
|
||||
haskell-crypton-x509-validation
|
||||
haskell-cryptonite
|
||||
haskell-cryptonite-conduit
|
||||
haskell-data-array-byte
|
||||
haskell-data-default
|
||||
haskell-data-default-class
|
||||
haskell-data-default-instances-containers
|
||||
haskell-data-default-instances-dlist
|
||||
haskell-data-default-instances-old-locale
|
||||
haskell-data-fix
|
||||
haskell-dec
|
||||
haskell-digest
|
||||
haskell-distributive
|
||||
haskell-dlist
|
||||
haskell-doclayout
|
||||
haskell-doctemplates
|
||||
haskell-easy-file
|
||||
haskell-echo
|
||||
haskell-ed25519
|
||||
haskell-emojis
|
||||
haskell-enclosed-exceptions
|
||||
haskell-erf
|
||||
haskell-extra
|
||||
haskell-fast-logger
|
||||
haskell-file-embed
|
||||
haskell-filelock
|
||||
haskell-foldable1-classes-compat
|
||||
haskell-fsnotify0.3
|
||||
haskell-generic-deriving
|
||||
haskell-generically
|
||||
haskell-ghc-bignum-orphans
|
||||
haskell-githash
|
||||
haskell-glob
|
||||
haskell-gridtables
|
||||
haskell-hackage-security
|
||||
haskell-haddock-library
|
||||
haskell-hashable
|
||||
haskell-hi-file-parser
|
||||
haskell-hinotify
|
||||
haskell-hourglass
|
||||
haskell-hpack
|
||||
haskell-hslua
|
||||
haskell-hslua-aeson
|
||||
haskell-hslua-classes
|
||||
haskell-hslua-core
|
||||
haskell-hslua-list
|
||||
haskell-hslua-marshalling
|
||||
haskell-hslua-module-doclayout
|
||||
haskell-hslua-module-path
|
||||
haskell-hslua-module-system
|
||||
haskell-hslua-module-text
|
||||
haskell-hslua-module-version
|
||||
haskell-hslua-module-zip
|
||||
haskell-hslua-objectorientation
|
||||
haskell-hslua-packaging
|
||||
haskell-hslua-repl
|
||||
haskell-hslua-typing
|
||||
haskell-http-api-data
|
||||
haskell-http-client
|
||||
haskell-http-client-tls
|
||||
haskell-http-conduit
|
||||
haskell-http-date
|
||||
haskell-http-download
|
||||
haskell-http-media
|
||||
haskell-http-types
|
||||
haskell-http2
|
||||
haskell-hunit
|
||||
haskell-indexed-traversable
|
||||
haskell-indexed-traversable-instances
|
||||
haskell-infer-license
|
||||
haskell-integer-logarithms
|
||||
haskell-iproute
|
||||
haskell-ipynb
|
||||
haskell-isocline
|
||||
haskell-jira-wiki-markup
|
||||
haskell-juicypixels
|
||||
haskell-lexer
|
||||
haskell-libyaml
|
||||
haskell-lift-type
|
||||
haskell-lifted-async
|
||||
haskell-lifted-base
|
||||
haskell-lpeg
|
||||
haskell-lua
|
||||
haskell-lukko
|
||||
haskell-megaparsec
|
||||
haskell-memory
|
||||
haskell-microlens
|
||||
haskell-microlens-mtl
|
||||
haskell-microlens-th
|
||||
haskell-mime-types
|
||||
haskell-mintty
|
||||
haskell-mmorph
|
||||
haskell-monad-control
|
||||
haskell-monad-logger
|
||||
haskell-monad-loops
|
||||
haskell-mono-traversable
|
||||
haskell-mustache
|
||||
haskell-neat-interpolation
|
||||
haskell-network
|
||||
haskell-network-byte-order
|
||||
haskell-network-uri
|
||||
haskell-old-locale
|
||||
haskell-old-time
|
||||
haskell-onetuple
|
||||
haskell-only
|
||||
haskell-open-browser
|
||||
haskell-optparse-applicative
|
||||
haskell-optparse-generic
|
||||
haskell-optparse-simple
|
||||
haskell-pandoc
|
||||
haskell-pandoc-lua-engine
|
||||
haskell-pandoc-lua-marshal
|
||||
haskell-pandoc-server
|
||||
haskell-pandoc-types
|
||||
haskell-pantry
|
||||
haskell-parser-combinators
|
||||
haskell-path
|
||||
haskell-path-io
|
||||
haskell-path-pieces
|
||||
haskell-pem
|
||||
haskell-persistent
|
||||
haskell-persistent-sqlite
|
||||
haskell-pretty-show
|
||||
haskell-primitive
|
||||
haskell-project-template
|
||||
haskell-psqueues
|
||||
haskell-quickcheck
|
||||
haskell-random
|
||||
haskell-recv
|
||||
haskell-resource-pool
|
||||
haskell-resourcet
|
||||
haskell-retry
|
||||
haskell-rio
|
||||
haskell-rio-orphans
|
||||
haskell-rio-prettyprint
|
||||
haskell-safe
|
||||
haskell-safe-exceptions
|
||||
haskell-scientific
|
||||
haskell-semialign
|
||||
haskell-semigroupoids
|
||||
haskell-servant
|
||||
haskell-servant-server
|
||||
haskell-sha
|
||||
haskell-shelly
|
||||
haskell-silently
|
||||
haskell-simple-sendfile
|
||||
haskell-singleton-bool
|
||||
haskell-skylighting
|
||||
haskell-skylighting-core
|
||||
haskell-skylighting-format-ansi
|
||||
haskell-skylighting-format-blaze-html
|
||||
haskell-skylighting-format-context
|
||||
haskell-skylighting-format-latex
|
||||
haskell-socks
|
||||
haskell-some
|
||||
haskell-sop-core
|
||||
haskell-split
|
||||
haskell-splitmix
|
||||
haskell-statevar
|
||||
haskell-stm-chans
|
||||
haskell-streaming-commons
|
||||
haskell-strict
|
||||
haskell-string-conversions
|
||||
haskell-syb
|
||||
haskell-system-filepath
|
||||
haskell-tagged
|
||||
haskell-tagsoup
|
||||
haskell-tar
|
||||
haskell-tar-conduit
|
||||
haskell-temporary
|
||||
haskell-texmath
|
||||
haskell-text-conversions
|
||||
haskell-text-icu
|
||||
haskell-text-metrics
|
||||
haskell-text-short
|
||||
haskell-th-abstraction
|
||||
haskell-th-compat
|
||||
haskell-th-expand-syns
|
||||
haskell-th-lift
|
||||
haskell-th-lift-instances
|
||||
haskell-th-reify-many
|
||||
haskell-these
|
||||
haskell-time-compat
|
||||
haskell-time-manager
|
||||
haskell-tls
|
||||
haskell-transformers-base
|
||||
haskell-transformers-compat
|
||||
haskell-type-equality
|
||||
haskell-typed-process
|
||||
haskell-typst-symbols
|
||||
haskell-unicode-collation
|
||||
haskell-unicode-data
|
||||
haskell-unicode-transforms
|
||||
haskell-uniplate
|
||||
haskell-unix-compat
|
||||
haskell-unix-time
|
||||
haskell-unliftio
|
||||
haskell-unliftio-core
|
||||
haskell-unordered-containers
|
||||
haskell-utf8-string
|
||||
haskell-uuid-types
|
||||
haskell-vault
|
||||
haskell-vector
|
||||
haskell-vector-algorithms
|
||||
haskell-vector-stream
|
||||
haskell-void
|
||||
haskell-wai
|
||||
haskell-wai-app-static
|
||||
haskell-wai-cors
|
||||
haskell-wai-extra
|
||||
haskell-wai-logger
|
||||
haskell-warp
|
||||
haskell-witherable
|
||||
haskell-word8
|
||||
haskell-x509
|
||||
haskell-x509-store
|
||||
haskell-x509-system
|
||||
haskell-x509-validation
|
||||
haskell-xml
|
||||
haskell-xml-conduit
|
||||
haskell-xml-types
|
||||
haskell-yaml
|
||||
haskell-zip-archive
|
||||
haskell-zlib
|
||||
hdf5
|
||||
helix
|
||||
hicolor-icon-theme
|
||||
|
|
@ -682,7 +404,6 @@ highway
|
|||
hplip
|
||||
hsa-rocr
|
||||
hsakmt-roct
|
||||
hslua-cli
|
||||
http-parser
|
||||
hunspell
|
||||
hunspell-en_us
|
||||
|
|
@ -1067,6 +788,7 @@ libixion
|
|||
libjpeg-turbo
|
||||
libjxl
|
||||
libkate
|
||||
libkdcraw
|
||||
libkexiv2
|
||||
libksba
|
||||
libkscreen
|
||||
|
|
@ -1104,6 +826,7 @@ libmpeg2
|
|||
libmspack
|
||||
libmspub
|
||||
libmtp
|
||||
libmupdf
|
||||
libmwaw
|
||||
libmypaint
|
||||
libmysofa
|
||||
|
|
@ -1174,6 +897,7 @@ librsvg
|
|||
librsync
|
||||
libsamplerate
|
||||
libsasl
|
||||
libsass
|
||||
libsbsms
|
||||
libseccomp
|
||||
libsecret
|
||||
|
|
@ -1217,6 +941,7 @@ libtorrent
|
|||
libtpms
|
||||
libtraceevent
|
||||
libtracefs
|
||||
libunibreak
|
||||
libunistring
|
||||
libunwind
|
||||
libupnp
|
||||
|
|
@ -1319,7 +1044,6 @@ lsb-release
|
|||
lsd
|
||||
lsof
|
||||
lua
|
||||
lua-lpeg
|
||||
lua51
|
||||
lua51-lpeg
|
||||
luajit
|
||||
|
|
@ -1459,7 +1183,6 @@ pacman-mirrorlist
|
|||
pahole
|
||||
pam
|
||||
pambase
|
||||
pandoc-cli
|
||||
pango
|
||||
pangomm
|
||||
pangomm-2.48
|
||||
|
|
@ -1605,7 +1328,7 @@ pixman
|
|||
pkcs11-helper
|
||||
pkgconf
|
||||
plantuml
|
||||
plasma-framework
|
||||
plasma-framework5
|
||||
plasma-integration
|
||||
plasma-workspace
|
||||
playerctl
|
||||
|
|
@ -1921,6 +1644,7 @@ rustdesk
|
|||
rustup
|
||||
s2n-tls
|
||||
samba
|
||||
sassc
|
||||
sbc
|
||||
scdoc
|
||||
scour
|
||||
|
|
@ -1967,11 +1691,9 @@ sqlcipher
|
|||
sqlite
|
||||
sratom
|
||||
srt
|
||||
stack
|
||||
starship
|
||||
startup-notification
|
||||
steam
|
||||
steamcmd
|
||||
stoken
|
||||
sudo
|
||||
suil
|
||||
|
|
@ -2149,9 +1871,11 @@ yaml-cpp
|
|||
yarn
|
||||
yasm
|
||||
yay
|
||||
yazi
|
||||
youtube-dl
|
||||
yt-dlp
|
||||
zathura
|
||||
zathura-pdf-mupdf
|
||||
zbar
|
||||
zenith
|
||||
zenity
|
||||
|
|
|
|||
233
yazi/keymap.toml
Normal file
233
yazi/keymap.toml
Normal file
|
|
@ -0,0 +1,233 @@
|
|||
[manager]
|
||||
|
||||
keymap = [
|
||||
{ on = [ "<Esc>" ], exec = "escape", desc = "Exit visual mode, clear selected, or cancel search" },
|
||||
{ on = [ "q" ], exec = "quit", desc = "Exit the process" },
|
||||
{ on = [ "Q" ], exec = "quit --no-cwd-file", desc = "Exit the process without writing cwd-file" },
|
||||
{ on = [ "<C-q>" ], exec = "close", desc = "Close the current tab, or quit if it is last tab" },
|
||||
{ on = [ "<C-z>" ], exec = "suspend", desc = "Suspend the process" },
|
||||
|
||||
# Navigation
|
||||
{ on = [ "l" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "k" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
{ on = [ "L" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
||||
{ on = [ "K" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
||||
|
||||
{ on = [ "<C-u>" ], exec = "arrow -50%", desc = "Move cursor up half page" },
|
||||
{ on = [ "<C-d>" ], exec = "arrow 50%", desc = "Move cursor down half page" },
|
||||
{ on = [ "<C-b>" ], exec = "arrow -100%", desc = "Move cursor up one page" },
|
||||
{ on = [ "<C-f>" ], exec = "arrow 100%", desc = "Move cursor down one page" },
|
||||
|
||||
{ on = [ "j" ], exec = "leave", desc = "Go back to the parent directory" },
|
||||
{ on = [ ";" ], exec = "enter", desc = "Enter the child directory" },
|
||||
|
||||
{ on = [ "J" ], exec = "back", desc = "Go back to the previous directory" },
|
||||
{ on = [ "P" ], exec = "forward", desc = "Go forward to the next directory" },
|
||||
|
||||
{ on = [ "<C-k>" ], exec = "peek -5", desc = "Peek up 5 units in the preview" },
|
||||
{ on = [ "<C-j>" ], exec = "peek 5", desc = "Peek down 5 units in the preview" },
|
||||
|
||||
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
{ on = [ "<Left>" ], exec = "leave", desc = "Go back to the parent directory" },
|
||||
{ on = [ "<Right>" ], exec = "enter", desc = "Enter the child directory" },
|
||||
|
||||
{ on = [ "g", "g" ], exec = "arrow -99999999", desc = "Move cursor to the top" },
|
||||
{ on = [ "G" ], exec = "arrow 99999999", desc = "Move cursor to the bottom" },
|
||||
|
||||
# Selection
|
||||
{ on = [ "<Space>" ], exec = [ "select --state=none", "arrow 1" ], desc = "Toggle the current selection state" },
|
||||
{ on = [ "v" ], exec = "visual_mode", desc = "Enter visual mode (selection mode)" },
|
||||
{ on = [ "V" ], exec = "visual_mode --unset", desc = "Enter visual mode (unset mode)" },
|
||||
{ on = [ "<C-a>" ], exec = "select_all --state=true", desc = "Select all files" },
|
||||
{ on = [ "<C-r>" ], exec = "select_all --state=none", desc = "Inverse selection of all files" },
|
||||
|
||||
# Operation
|
||||
{ on = [ "o" ], exec = "open", desc = "Open the selected files" },
|
||||
{ on = [ "O" ], exec = "open --interactive", desc = "Open the selected files interactively" },
|
||||
{ on = [ "<Enter>" ], exec = "open", desc = "Open the selected files" },
|
||||
{ on = [ "<C-Enter>" ], exec = "open --interactive", desc = "Open the selected files interactively" }, # It's cool if you're using a terminal that supports CSI u
|
||||
{ on = [ "y" ], exec = "yank", desc = "Copy the selected files" },
|
||||
{ on = [ "x" ], exec = "yank --cut", desc = "Cut the selected files" },
|
||||
{ on = [ "p" ], exec = "paste", desc = "Paste the files" },
|
||||
{ on = [ "P" ], exec = "paste --force", desc = "Paste the files (overwrite if the destination exists)" },
|
||||
{ on = [ "-" ], exec = "link", desc = "Symlink the absolute path of files" },
|
||||
{ on = [ "_" ], exec = "link --relative", desc = "Symlink the relative path of files" },
|
||||
{ on = [ "d" ], exec = "remove", desc = "Move the files to the trash" },
|
||||
{ on = [ "D" ], exec = "remove --permanently", desc = "Permanently delete the files" },
|
||||
{ on = [ "a" ], exec = "create", desc = "Create a file or directory (ends with / for directories)" },
|
||||
{ on = [ "r" ], exec = "rename", desc = "Rename a file or directory" },
|
||||
{ on = [ ";" ], exec = "shell", desc = "Run a shell command" },
|
||||
{ on = [ ":" ], exec = "shell --block", desc = "Run a shell command (block the UI until the command finishes)" },
|
||||
{ on = [ "." ], exec = "hidden toggle", desc = "Toggle the visibility of hidden files" },
|
||||
{ on = [ "s" ], exec = "search fd", desc = "Search files by name using fd" },
|
||||
{ on = [ "S" ], exec = "search rg", desc = "Search files by content using ripgrep" },
|
||||
{ on = [ "<C-s>" ], exec = "search none", desc = "Cancel the ongoing search" },
|
||||
{ on = [ "z" ], exec = "jump zoxide", desc = "Jump to a directory using zoxide" },
|
||||
{ on = [ "Z" ], exec = "jump fzf", desc = "Jump to a directory, or reveal a file using fzf" },
|
||||
|
||||
# Copy
|
||||
{ on = [ "c", "c" ], exec = "copy path", desc = "Copy the absolute path" },
|
||||
{ on = [ "c", "d" ], exec = "copy dirname", desc = "Copy the path of the parent directory" },
|
||||
{ on = [ "c", "f" ], exec = "copy filename", desc = "Copy the name of the file" },
|
||||
{ on = [ "c", "n" ], exec = "copy name_without_ext", desc = "Copy the name of the file without the extension" },
|
||||
|
||||
# Find
|
||||
{ on = [ "/" ], exec = "find --smart" },
|
||||
{ on = [ "?" ], exec = "find --previous --smart" },
|
||||
{ on = [ "n" ], exec = "find_arrow" },
|
||||
{ on = [ "N" ], exec = "find_arrow --previous" },
|
||||
|
||||
# Sorting
|
||||
{ on = [ ",", "a" ], exec = "sort alphabetical --dir_first", desc = "Sort alphabetically" },
|
||||
{ on = [ ",", "A" ], exec = "sort alphabetical --reverse --dir_first", desc = "Sort alphabetically (reverse)" },
|
||||
{ on = [ ",", "c" ], exec = "sort created --dir_first", desc = "Sort by creation time" },
|
||||
{ on = [ ",", "C" ], exec = "sort created --reverse --dir_first", desc = "Sort by creation time (reverse)" },
|
||||
{ on = [ ",", "m" ], exec = "sort modified --dir_first", desc = "Sort by modified time" },
|
||||
{ on = [ ",", "M" ], exec = "sort modified --reverse --dir_first", desc = "Sort by modified time (reverse)" },
|
||||
{ on = [ ",", "n" ], exec = "sort natural --dir_first", desc = "Sort naturally" },
|
||||
{ on = [ ",", "N" ], exec = "sort natural --reverse --dir_first", desc = "Sort naturally (reverse)" },
|
||||
{ on = [ ",", "s" ], exec = "sort size --dir_first", desc = "Sort by size" },
|
||||
{ on = [ ",", "S" ], exec = "sort size --reverse --dir_first", desc = "Sort by size (reverse)" },
|
||||
|
||||
# Tabs
|
||||
{ on = [ "t" ], exec = "tab_create --current", desc = "Create a new tab using the current path" },
|
||||
|
||||
{ on = [ "1" ], exec = "tab_switch 0", desc = "Switch to the first tab" },
|
||||
{ on = [ "2" ], exec = "tab_switch 1", desc = "Switch to the second tab" },
|
||||
{ on = [ "3" ], exec = "tab_switch 2", desc = "Switch to the third tab" },
|
||||
{ on = [ "4" ], exec = "tab_switch 3", desc = "Switch to the fourth tab" },
|
||||
{ on = [ "5" ], exec = "tab_switch 4", desc = "Switch to the fifth tab" },
|
||||
{ on = [ "6" ], exec = "tab_switch 5", desc = "Switch to the sixth tab" },
|
||||
{ on = [ "7" ], exec = "tab_switch 6", desc = "Switch to the seventh tab" },
|
||||
{ on = [ "8" ], exec = "tab_switch 7", desc = "Switch to the eighth tab" },
|
||||
{ on = [ "9" ], exec = "tab_switch 8", desc = "Switch to the ninth tab" },
|
||||
|
||||
{ on = [ "[" ], exec = "tab_switch -1 --relative", desc = "Switch to the previous tab" },
|
||||
{ on = [ "]" ], exec = "tab_switch 1 --relative", desc = "Switch to the next tab" },
|
||||
|
||||
{ on = [ "{" ], exec = "tab_swap -1", desc = "Swap the current tab with the previous tab" },
|
||||
{ on = [ "}" ], exec = "tab_swap 1", desc = "Swap the current tab with the next tab" },
|
||||
|
||||
# Tasks
|
||||
{ on = [ "w" ], exec = "tasks_show", desc = "Show the tasks manager" },
|
||||
|
||||
# Goto
|
||||
{ on = [ "g", "h" ], exec = "cd ~", desc = "Go to the home directory" },
|
||||
{ on = [ "g", "c" ], exec = "cd ~/.config", desc = "Go to the config directory" },
|
||||
{ on = [ "g", "d" ], exec = "cd ~/Downloads", desc = "Go to the downloads directory" },
|
||||
{ on = [ "g", "t" ], exec = "cd /tmp", desc = "Go to the temporary directory" },
|
||||
{ on = [ "g", "<Space>" ], exec = "cd --interactive", desc = "Go to a directory interactively" },
|
||||
|
||||
# Help
|
||||
{ on = [ "~" ], exec = "help", desc = "Open help" },
|
||||
]
|
||||
|
||||
[tasks]
|
||||
|
||||
keymap = [
|
||||
{ on = [ "<Esc>" ], exec = "close", desc = "Hide the task manager" },
|
||||
{ on = [ "<C-q>" ], exec = "close", desc = "Hide the task manager" },
|
||||
{ on = [ "w" ], exec = "close", desc = "Hide the task manager" },
|
||||
|
||||
{ on = [ "k" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "j" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
{ on = [ "<Enter>" ], exec = "inspect", desc = "Inspect the task" },
|
||||
{ on = [ "x" ], exec = "cancel", desc = "Cancel the task" },
|
||||
|
||||
{ on = [ "~" ], exec = "help", desc = "Open help" }
|
||||
]
|
||||
|
||||
[select]
|
||||
|
||||
keymap = [
|
||||
{ on = [ "<C-q>" ], exec = "close", desc = "Cancel selection" },
|
||||
{ on = [ "<Esc>" ], exec = "close", desc = "Cancel selection" },
|
||||
{ on = [ "<Enter>" ], exec = "close --submit", desc = "Submit the selection" },
|
||||
|
||||
{ on = [ "k" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "j" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
||||
{ on = [ "J" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
||||
|
||||
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
{ on = [ "~" ], exec = "help", desc = "Open help" }
|
||||
]
|
||||
|
||||
[input]
|
||||
|
||||
keymap = [
|
||||
{ on = [ "<C-q>" ], exec = "close", desc = "Cancel input" },
|
||||
{ on = [ "<Enter>" ], exec = "close --submit", desc = "Submit the input" },
|
||||
{ on = [ "<Esc>" ], exec = "escape", desc = "Go back the normal mode, or cancel input" },
|
||||
|
||||
# Mode
|
||||
{ on = [ "i" ], exec = "insert", desc = "Enter insert mode" },
|
||||
{ on = [ "a" ], exec = "insert --append", desc = "Enter append mode" },
|
||||
{ on = [ "v" ], exec = "visual", desc = "Enter visual mode" },
|
||||
{ on = [ "V" ], exec = [ "move -999", "visual", "move 999" ], desc = "Enter visual mode and select all" },
|
||||
|
||||
# Navigation
|
||||
{ on = [ "h" ], exec = "move -1", desc = "Move cursor left" },
|
||||
{ on = [ "l" ], exec = "move 1", desc = "Move cursor right" },
|
||||
|
||||
{ on = [ "0" ], exec = "move -999", desc = "Move to the BOL" },
|
||||
{ on = [ "$" ], exec = "move 999", desc = "Move to the EOL" },
|
||||
{ on = [ "I" ], exec = [ "move -999", "insert" ], desc = "Move to the BOL, and enter insert mode" },
|
||||
{ on = [ "A" ], exec = [ "move 999", "insert --append" ], desc = "Move to the EOL, and enter append mode" },
|
||||
|
||||
{ on = [ "<Left>" ], exec = "move -1", desc = "Move cursor left" },
|
||||
{ on = [ "<Right>" ], exec = "move 1", desc = "Move cursor right" },
|
||||
|
||||
{ on = [ "b" ], exec = "backward", desc = "Move to the beginning of the previous word" },
|
||||
{ on = [ "w" ], exec = "forward", desc = "Move to the beginning of the next word" },
|
||||
{ on = [ "e" ], exec = "forward --end-of-word", desc = "Move to the end of the next word" },
|
||||
|
||||
# Deletion
|
||||
{ on = [ "d" ], exec = "delete --cut", desc = "Cut the selected characters" },
|
||||
{ on = [ "D" ], exec = [ "delete --cut", "move 999" ], desc = "Cut until the EOL" },
|
||||
{ on = [ "c" ], exec = "delete --cut --insert", desc = "Cut the selected characters, and enter insert mode" },
|
||||
{ on = [ "C" ], exec = [ "delete --cut --insert", "move 999" ], desc = "Cut until the EOL, and enter insert mode" },
|
||||
{ on = [ "x" ], exec = [ "delete --cut", "move 1 --in-operating" ], desc = "Cut the current character" },
|
||||
|
||||
# Yank/Paste
|
||||
{ on = [ "y" ], exec = "yank", desc = "Copy the selected characters" },
|
||||
{ on = [ "p" ], exec = "paste", desc = "Paste the copied characters after the cursor" },
|
||||
{ on = [ "P" ], exec = "paste --before", desc = "Paste the copied characters before the cursor" },
|
||||
|
||||
# Undo/Redo
|
||||
{ on = [ "u" ], exec = "undo", desc = "Undo the last operation" },
|
||||
{ on = [ "<C-r>" ], exec = "redo", desc = "Redo the last operation" },
|
||||
|
||||
# Help
|
||||
{ on = [ "~" ], exec = "help", desc = "Open help" }
|
||||
]
|
||||
|
||||
[help]
|
||||
|
||||
keymap = [
|
||||
{ on = [ "<Esc>" ], exec = "escape", desc = "Clear the filter, or hide the help" },
|
||||
{ on = [ "q" ], exec = "close", desc = "Exit the process" },
|
||||
{ on = [ "<C-q>" ], exec = "close", desc = "Hide the help" },
|
||||
|
||||
# Navigation
|
||||
{ on = [ "k" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "j" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
||||
{ on = [ "J" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
||||
|
||||
{ on = [ "<Up>" ], exec = "arrow -1", desc = "Move cursor up" },
|
||||
{ on = [ "<Down>" ], exec = "arrow 1", desc = "Move cursor down" },
|
||||
|
||||
# Filtering
|
||||
{ on = [ "/" ], exec = "filter", desc = "Apply a filter for the help items" },
|
||||
]
|
||||
78
yazi/yazi.toml
Normal file
78
yazi/yazi.toml
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
[manager]
|
||||
layout = [ 1, 4, 3 ]
|
||||
sort_by = "modified"
|
||||
sort_sensitive = true
|
||||
sort_reverse = true
|
||||
sort_dir_first = true
|
||||
show_hidden = false
|
||||
show_symlink = true
|
||||
|
||||
[preview]
|
||||
tab_size = 2
|
||||
max_width = 600
|
||||
max_height = 900
|
||||
cache_dir = ""
|
||||
|
||||
[opener]
|
||||
folder = [
|
||||
{ exec = 'open -R "$@"', orphan = true, display_name = "Reveal in Finder" },
|
||||
{ exec = '$EDITOR "$@"', orphan = true },
|
||||
]
|
||||
archive = [
|
||||
{ exec = 'unar "$1"', display_name = "Extract here" },
|
||||
]
|
||||
text = [
|
||||
{ exec = '$EDITOR "$@"', orphan = true },
|
||||
]
|
||||
image = [
|
||||
{ exec = 'imv "$@"', orphan = true, display_name = "Open" },
|
||||
{ exec = '''exiftool "$1"; echo "Press enter to exit"; read''', block = true, display_name = "Show EXIF" },
|
||||
]
|
||||
pdf = [
|
||||
{ exec = 'zathura "$@"', orphan = true, display_name = "Open" },
|
||||
]
|
||||
video = [
|
||||
{ exec = 'mpv "$@"', orphan = true },
|
||||
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, display_name = "Show media info" },
|
||||
]
|
||||
audio = [
|
||||
{ exec = 'xdg-open "$@"', orphan = true },
|
||||
{ exec = '''mediainfo "$1"; echo "Press enter to exit"; read''', block = true, display_name = "Show media info" },
|
||||
]
|
||||
fallback = [
|
||||
{ exec = 'xdg-open "$@"', orphan = true, display_name = "Open" },
|
||||
{ exec = 'xdg-open -R "$@"', orphan = true, display_name = "Reveal in Finder" },
|
||||
]
|
||||
|
||||
[open]
|
||||
rules = [
|
||||
{ name = "*/", use = "folder" },
|
||||
|
||||
{ mime = "text/*", use = "text" },
|
||||
{ mime = "image/*", use = "image" },
|
||||
{ mime = "application/pdf", use = "pdf" },
|
||||
{ mime = "video/*", use = "video" },
|
||||
{ mime = "audio/*", use = "audio" },
|
||||
{ mime = "inode/x-empty", use = "text" },
|
||||
|
||||
{ mime = "application/json", use = "text" },
|
||||
{ mime = "*/javascript", use = "text" },
|
||||
|
||||
{ mime = "application/zip", use = "archive" },
|
||||
{ mime = "application/gzip", use = "archive" },
|
||||
{ mime = "application/x-tar", use = "archive" },
|
||||
{ mime = "application/x-bzip", use = "archive" },
|
||||
{ mime = "application/x-bzip2", use = "archive" },
|
||||
{ mime = "application/x-7z-compressed", use = "archive" },
|
||||
{ mime = "application/x-rar", use = "archive" },
|
||||
|
||||
{ mime = "*", use = "fallback" },
|
||||
]
|
||||
|
||||
[tasks]
|
||||
micro_workers = 5
|
||||
macro_workers = 10
|
||||
bizarre_retry = 5
|
||||
|
||||
[log]
|
||||
enabled = false
|
||||
Loading…
Add table
Add a link
Reference in a new issue