From b7f2d796c98d6c6e8d8b4763ce44e1d32baa6bc4 Mon Sep 17 00:00:00 2001 From: Rokosun <79040025+futureisfoss@users.noreply.github.com> Date: Tue, 22 Oct 2024 19:21:45 +0000 Subject: [PATCH 1/2] Clear screen before move/copy Quick fix for https://github.com/LukeSmithxyz/voidrice/pull/1437#issuecomment-2430008043 --- .config/lf/lfrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 5598a30761..a27c7e0cd9 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -93,6 +93,7 @@ cmd delete ${{ cmd moveto ${{ set -f + clear dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --prompt 'Move to where? ' | sed 's|~|$HOME|') [ -z "$dest" ] && exit destpath=$(eval printf '%s' \"$dest\") @@ -110,6 +111,7 @@ cmd moveto ${{ cmd copyto ${{ set -f + clear dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --prompt 'Copy to where? ' | sed 's|~|$HOME|') [ -z "$dest" ] && exit destpath=$(eval printf '%s' \"$dest\") From dbf4769b554fcc37665999eddb1672b645276b31 Mon Sep 17 00:00:00 2001 From: Rokosun <79040025+futureisfoss@users.noreply.github.com> Date: Wed, 23 Oct 2024 09:53:39 +0000 Subject: [PATCH 2/2] More UI improvements --- .config/lf/lfrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index a27c7e0cd9..d877ab6716 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -93,8 +93,8 @@ cmd delete ${{ cmd moveto ${{ set -f - clear - dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --prompt 'Move to where? ' | sed 's|~|$HOME|') + clear; tput cup $(($(tput lines)/3)) + dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --layout=reverse --height 40% --prompt 'Move to where? ' | sed 's|~|$HOME|') [ -z "$dest" ] && exit destpath=$(eval printf '%s' \"$dest\") clear; tput cup $(($(tput lines)/3)); tput bold @@ -111,8 +111,8 @@ cmd moveto ${{ cmd copyto ${{ set -f - clear - dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --prompt 'Copy to where? ' | sed 's|~|$HOME|') + clear; tput cup $(($(tput lines)/3)) + dest=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs" | fzf --layout=reverse --height 40% --prompt 'Copy to where? ' | sed 's|~|$HOME|') [ -z "$dest" ] && exit destpath=$(eval printf '%s' \"$dest\") clear; tput cup $(($(tput lines)/3)); tput bold