diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-11 20:05:37 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-11 20:05:37 +0900 |
| commit | 21fc9a25c360146a43bcc10520e68916f5698cc3 (patch) | |
| tree | 3814db2631c8b99b6a33faf76c5d3ff90cc45339 /ar/.config | |
| parent | 1988fb99ce600507a86d3cc1cf7427a74bf0ea56 (diff) | |
modified lf/lfrc
Diffstat (limited to 'ar/.config')
| -rw-r--r-- | ar/.config/lf/lfrc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ar/.config/lf/lfrc b/ar/.config/lf/lfrc index c88b1f1..0d866eb 100644 --- a/ar/.config/lf/lfrc +++ b/ar/.config/lf/lfrc @@ -110,6 +110,8 @@ cmd mkdir %{{ cmd touch %{{ IFS=" " file="$*" + dir="${file%/*}" + [ "$dir" != "$file" ] && mkdir -p -- "$dir" touch -- "$file" file="$(printf '%s' "$file" | sed 's/\\/\\\\/g;s/"/\\"/g')" lf -remote "send $id :select \"$file\"; \$\$EDITOR \"$file\"" |
