Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

JonasLeonhard/lf-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation



Description

Custom https://github.com/gokcehan/lf configuration

Status

  • in progress
  • finished
  • no longer continued

Table of contents

General Info

Screenshots

<Lf Ui>

Technologies

lf (https://github.com/gokcehan/lf)

Setup

copy lfrc in ~/.config/lf or

git clone git@github.com:JonasLeonhard/lf-config.git ~/.config/lf

and add

# Use lf to switch directories and bind it to ctrl-f
lfcd () {
    tmp="$(mktemp)"
    lf -last-dir-path="$tmp" "$@"
    if [ -f "$tmp" ]; then
        dir="$(cat "$tmp")"
        rm -f "$tmp"
        [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
    fi
}
bindkey -s '^f' 'lfcd\n'

to your .zshrc to open lf via ctrl-f.

to see the keybindings. Press "?" when lf is opened.

Known Issues / Missing Features


Credits:

For the ctrl-f opening .zshrc (https://gist.github.com/LukeSmithxyz/e62f26e55ea8b0ed41a65912fbebbe52)

Releases

No releases published

Packages

No packages published