fix
This commit is contained in:
@@ -54,6 +54,7 @@ window-rule {
|
||||
match app-id="org.gnome.NautilusPreviewer"
|
||||
match app-id="coin"
|
||||
match app-id="wallpaper-carousel"
|
||||
match app-id="wallreel"
|
||||
match app-id="be.alexandervanhee.gradia"
|
||||
match title="^(图片查看器)(.*)$" // QQ
|
||||
open-floating true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@define-color borders_breeze #454859;
|
||||
@define-color borders_breeze #3c3e4e;
|
||||
@define-color content_view_bg_breeze #1e1e2e;
|
||||
@define-color error_color_backdrop_breeze #876790;
|
||||
@define-color error_color_breeze #f38ba8;
|
||||
@@ -7,7 +7,7 @@
|
||||
@define-color insensitive_base_color_breeze #1e1e2e;
|
||||
@define-color insensitive_base_fg_color_breeze #999fb9;
|
||||
@define-color insensitive_bg_color_breeze #1a1a28;
|
||||
@define-color insensitive_borders_breeze #393b4c;
|
||||
@define-color insensitive_borders_breeze #333445;
|
||||
@define-color insensitive_fg_color_breeze #999fb9;
|
||||
@define-color insensitive_selected_bg_color_breeze #1a1a28;
|
||||
@define-color insensitive_selected_fg_color_breeze #999fb9;
|
||||
@@ -74,10 +74,10 @@
|
||||
@define-color theme_view_active_decoration_color_breeze #313244;
|
||||
@define-color theme_view_hover_decoration_color_breeze #313244;
|
||||
@define-color tooltip_background_breeze #1e1e2e;
|
||||
@define-color tooltip_border_breeze #4a4c60;
|
||||
@define-color tooltip_border_breeze #414356;
|
||||
@define-color tooltip_text_breeze #cdd6f4;
|
||||
@define-color unfocused_borders_breeze #363747;
|
||||
@define-color unfocused_insensitive_borders_breeze #393b4c;
|
||||
@define-color unfocused_borders_breeze #323242;
|
||||
@define-color unfocused_insensitive_borders_breeze #333445;
|
||||
@define-color warning_color_backdrop_breeze #87848f;
|
||||
@define-color warning_color_breeze #f9e2af;
|
||||
@define-color warning_color_insensitive_backdrop_breeze #b7a788;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@define-color borders_breeze #454859;
|
||||
@define-color borders_breeze #3c3e4e;
|
||||
@define-color content_view_bg_breeze #1e1e2e;
|
||||
@define-color error_color_backdrop_breeze #876790;
|
||||
@define-color error_color_breeze #f38ba8;
|
||||
@@ -7,7 +7,7 @@
|
||||
@define-color insensitive_base_color_breeze #1e1e2e;
|
||||
@define-color insensitive_base_fg_color_breeze #999fb9;
|
||||
@define-color insensitive_bg_color_breeze #1a1a28;
|
||||
@define-color insensitive_borders_breeze #393b4c;
|
||||
@define-color insensitive_borders_breeze #333445;
|
||||
@define-color insensitive_fg_color_breeze #999fb9;
|
||||
@define-color insensitive_selected_bg_color_breeze #1a1a28;
|
||||
@define-color insensitive_selected_fg_color_breeze #999fb9;
|
||||
@@ -74,10 +74,10 @@
|
||||
@define-color theme_view_active_decoration_color_breeze #313244;
|
||||
@define-color theme_view_hover_decoration_color_breeze #313244;
|
||||
@define-color tooltip_background_breeze #1e1e2e;
|
||||
@define-color tooltip_border_breeze #4a4c60;
|
||||
@define-color tooltip_border_breeze #414356;
|
||||
@define-color tooltip_text_breeze #cdd6f4;
|
||||
@define-color unfocused_borders_breeze #363747;
|
||||
@define-color unfocused_insensitive_borders_breeze #393b4c;
|
||||
@define-color unfocused_borders_breeze #323242;
|
||||
@define-color unfocused_insensitive_borders_breeze #333445;
|
||||
@define-color warning_color_backdrop_breeze #87848f;
|
||||
@define-color warning_color_breeze #f9e2af;
|
||||
@define-color warning_color_insensitive_backdrop_breeze #b7a788;
|
||||
|
||||
@@ -105,7 +105,7 @@ _graphics_query() {
|
||||
trap 'stty "$stty_orig"' EXIT
|
||||
stty -echo -icanon min 1 time 0
|
||||
|
||||
printf "%s%s%s" "$ITERM2_QUERY_CODE" "$KGP_QUERY_CODE" "$FENCE_CODE" > /dev/tty
|
||||
printf "%s%s%s" "$ITERM2_QUERY_CODE" "$KGP_QUERY_CODE" "$FENCE_CODE" >/dev/tty
|
||||
|
||||
support_kgp=0
|
||||
support_iterm2=0
|
||||
@@ -139,7 +139,7 @@ _graphics_query() {
|
||||
if [[ "$response" =~ $'\x1b'\[\?([0-9;]*)c ]]; then
|
||||
params="${BASH_REMATCH[1]}"
|
||||
|
||||
IFS=';' read -ra codes <<< "$params"
|
||||
IFS=';' read -ra codes <<<"$params"
|
||||
|
||||
for code in "${codes[@]}"; do
|
||||
if [[ "$code" == "4" ]]; then
|
||||
@@ -176,9 +176,11 @@ _check_graphics_support() {
|
||||
result=$(_graphics_query)
|
||||
if [[ "$result" == *"kitty"* ]]; then
|
||||
SUPPORT_ICAT=1
|
||||
elif [[ "$result" == *"sixels"* ]]; then
|
||||
fi
|
||||
if [[ "$result" == *"sixels"* ]]; then
|
||||
SUPPORT_SIXEL=1
|
||||
elif [[ "$result" == *"iterm"* ]]; then
|
||||
fi
|
||||
if [[ "$result" == *"iterm"* ]]; then
|
||||
SUPPORT_ITERM2=1
|
||||
fi
|
||||
}
|
||||
@@ -327,7 +329,6 @@ _preview_file() {
|
||||
}
|
||||
export -f _preview_file
|
||||
|
||||
|
||||
preview() {
|
||||
_clear_preview
|
||||
|
||||
@@ -400,16 +401,16 @@ export -f add_num
|
||||
# Action when confirmed
|
||||
|
||||
copy_selection() {
|
||||
local input="$1"
|
||||
local input="$1"
|
||||
local content
|
||||
content=$(echo -n "$input" | awk "{print \$3}")
|
||||
|
||||
if [[ "$content" == "[URL]"* ]]; then
|
||||
if [[ "$content" == "[URL]"* ]]; then
|
||||
echo -n "$input" | cliphist decode | wl-copy --type text/uri-list
|
||||
|
||||
else
|
||||
else
|
||||
echo -n "$input" | cliphist decode | wl-copy
|
||||
fi
|
||||
fi
|
||||
|
||||
echo -n "$input" | cliphist delete || true
|
||||
}
|
||||
@@ -449,4 +450,4 @@ $RELOAD_CMD | fzf \
|
||||
--preview-window=down:60%,wrap \
|
||||
--preview "preview {}" \
|
||||
--bind "enter:execute-silent(bash -c 'copy_selection \"\$1\"' -- {})+accept" \
|
||||
>/dev/null || [ $? -eq 141 ]
|
||||
>/dev/null || [ $? -eq 141 ]
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:git"
|
||||
rev = "88990a6"
|
||||
rev = "b224ddf"
|
||||
hash = "270915fa8282a19908449530ff66f7e2"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:smart-enter"
|
||||
rev = "88990a6"
|
||||
hash = "56fdabc96fc1f4d53c96eb884b02a5be"
|
||||
rev = "b224ddf"
|
||||
hash = "187cc58ba7ac3befd49c342129e6f1b6"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "h-hg/yamb"
|
||||
|
||||
@@ -21,7 +21,7 @@ desc = "Enter the child directory, or open the file"
|
||||
|
||||
## Advanced
|
||||
|
||||
By default, `--hovered` is passed to the [`open`][open] command, make the behavior consistent with [`enter`][enter] avoiding accidental triggers,
|
||||
By default, `--hovered` is passed to the [`open`][open] action, make the behavior consistent with [`enter`][enter] avoiding accidental triggers,
|
||||
which means both will only target the currently hovered file.
|
||||
|
||||
If you still want `open` to target multiple selected files, add this to your `~/.config/yazi/init.lua`:
|
||||
|
||||
Reference in New Issue
Block a user