Fixed imv tracker to work with long path (no base64 wrapping)

This commit is contained in:
Neptune 2020-10-11 13:11:57 +02:00
parent c31fd2a535
commit 33f64098bf
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Defined in /tmp/fish.fXim7R/manga.fish @ line 2
# Defined in /tmp/fish.X1QV4d/manga.fish @ line 2
function manga
set -l imv_tracker $HOME/.cache/imv/(pwd | base64)
set -l imv_tracker $HOME/.cache/imv/(echo $PWD | base64 -w0)
if test -f "$imv_tracker"
and test -r "$imv_tracker"
imv -r . -n (grep '[[:digit:]]' "$imv_tracker")

View file

@ -12,7 +12,7 @@ scaling_mode = none
background = 1F1F21
title_text = $(xdotool getactivewindow set_window --name "[ $imv_current_index / $imv_file_count ] : $(echo "${PWD##*/}")"; echo "$imv_current_index" > ~/.cache/imv/$(echo "$PWD" | base64) )
title_text = $(xdotool getactivewindow set_window --name "[ $imv_current_index / $imv_file_count ] : $(echo "${PWD##*/}")"; echo "$imv_current_index" > ~/.cache/imv/$(echo $PWD | base64 -w0) )
initial_pan = 0 0