summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorRokosun <79040025+futureisfoss@users.noreply.github.com>2025-02-28 19:10:40 +0000
committerGitHub <noreply@github.com>2025-02-28 19:10:40 +0000
commit4606e9156a85c89e5113429efec774f299d8e2a4 (patch)
treed50393b5a820d415683bef1f0ef6ab12ea398bbf /.config
parente7c02d972617826149d360b76eece07d89e59c9c (diff)
downloadeibhear-4606e9156a85c89e5113429efec774f299d8e2a4.tar.gz
eibhear-4606e9156a85c89e5113429efec774f299d8e2a4.tar.zst
eibhear-4606e9156a85c89e5113429efec774f299d8e2a4.zip
Improve UI for move/copy in lf (#1438)
* Clear screen before move/copy Quick fix for https://github.com/LukeSmithxyz/voidrice/pull/1437#issuecomment-2430008043 * More UI improvements
Diffstat (limited to '.config')
-rw-r--r--.config/lf/lfrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 5598a30..d877ab6 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -93,7 +93,8 @@ cmd delete ${{
cmd moveto ${{
set -f
- 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
@@ -110,7 +111,8 @@ cmd moveto ${{
cmd copyto ${{
set -f
- 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