Merge branch 'main' of ssh://git.trivernis.net:22321/Trivernis/dotfiles-silo

main
Julius Riegel 7 months ago
commit 26db3fe460

@ -239,7 +239,7 @@ evince-previewer
evince-thumbnailer evince-thumbnailer
#evolution - see #3647 #evolution - see #3647
exfalso exfalso
exiftool # exiftool
falkon falkon
fbreader fbreader
feedreader feedreader
@ -762,7 +762,7 @@ sound-juicer
spectral spectral
spotify spotify
sqlitebrowser sqlitebrowser
ssh # ssh
# ssh-agent - problems on Arch with Fish shell (#1568) # ssh-agent - problems on Arch with Fish shell (#1568)
standardnotes-desktop standardnotes-desktop
start-tor-browser start-tor-browser

@ -11,9 +11,9 @@ export def `main import` [
--tag-origin # tag with origin folder name --tag-origin # tag with origin folder name
] { ] {
print "Importing" print "Importing"
if ("moved.csv" | path exists) == false { # if ("moved.csv" | path exists) == false {
"source,destination\n" | save moved.csv # "source,destination\n" | save moved.csv
} # }
let entries = ( glob $"($src | str trim --right --char '/')/**/*" let entries = ( glob $"($src | str trim --right --char '/')/**/*"
| each { try { ls -l $in } catch {|e| print_line -e $"Failed to get metadata of ($e)"; []} } | each { try { ls -l $in } catch {|e| print_line -e $"Failed to get metadata of ($e)"; []} }
| where { ($in | length) > 0 } | where { ($in | length) > 0 }
@ -90,7 +90,7 @@ def parse_exif_timestamp [timestamp: string, offset?: any] {
def archive-cp [src: string, dst: string, --link, --tag] { def archive-cp [src: string, dst: string, --link, --tag] {
rsync -X -U -p -t -g -o -u --info=ALL $src $dst rsync -X -U -p -t -g -o -u --info=ALL $src $dst
$"($src),($dst)\n" | save -a moved.csv # $"($src),($dst)\n" | save -a moved.csv
if $tag { if $tag {
xattr -w user.xdg.tags ($src | path parse | get parent | path parse | get stem) $dst xattr -w user.xdg.tags ($src | path parse | get parent | path parse | get stem) $dst

Loading…
Cancel
Save