From 2a7d1d80c0a71895185e58a9e1f0a7e58c70ac1c Mon Sep 17 00:00:00 2001 From: qwjyh Date: Mon, 28 Oct 2024 17:20:55 +0900 Subject: [PATCH] new(lf): lfrc --- bin/install.ps1 | 3 +++ dotfiles/lf/lfrc | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 dotfiles/lf/lfrc diff --git a/bin/install.ps1 b/bin/install.ps1 index 2991261..be17a41 100644 --- a/bin/install.ps1 +++ b/bin/install.ps1 @@ -77,4 +77,7 @@ New-Item -ItemType SymbolicLink -Path ~\.config\wezterm\wezterm.lua -Target (Res # julia mkdir ~\.config\julia\config New-Item -ItemType SymbolicLink -Path ~\.julia\config\startup.jl -Target (Resolve-Path .\dotfiles\startup_windows.jl) -Force +# lf +mkdir $env:LOCALAPPDATA\lf +New-Item -ItemType SymbolicLink -Path $env:LOCALAPPDATA\lf\lfrc -Target (Resolve-Path .\dotfiles\lf\lfrc) -Force diff --git a/dotfiles/lf/lfrc b/dotfiles/lf/lfrc new file mode 100644 index 0000000..15b8558 --- /dev/null +++ b/dotfiles/lf/lfrc @@ -0,0 +1,23 @@ +cmap cmd-menu-complete +cmap cmd-menu-complete-back + +## https://github.com/gokcehan/lf/wiki/Integrations#eza +#cmd on-select &{{ +# lf -remote "send $id set statfmt \"$(eza -ld --color=always "$f" | sed 's/\\/\\\\/g;s/"/\\"/g')\"" +#}} +# +#cmd git_branch ${{ +# git branch | fzf | xargs git checkout +# pwd_shell="$(pwd | sed 's/\\/\\\\/g;s/"/\\"/g')" +# lf -remote "send $id updir; cd \"$pwd_shell\"" +#}} +#map gb :git_branch +#map gp $clear; git pull --rebase || true; echo "press ENTER"; read ENTER +#map gs $clear; git status; echo "press ENTER"; read ENTER +#map gl $clear; git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit +# +#cmd on-cd &{{ +# fmt="$(STARSHIP_SHELL= starship prompt | sed 's/\\/\\\\/g;s/"/\\"/g')" +# lf -remote "send $id set promptfmt \"$fmt\"" +#}} +