summaryrefslogtreecommitdiff
path: root/config/lf/lfrc
blob: 8606a42b0b8871f6840ed62481c4cdee211f5cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Suleyman's gruvbox themed lf config at "https://git.farajli.net/slcf.git"

# Due to the facts that ueberzug is no longer maintained and adds extra \
# complexity it is not included in the config

# Options
set incsearch
set scrolloff 4 #smooth scrolling

# Key-maps
map <enter> shell
map m push $mkdir<space>
map t push $touch<space>
map D trash
map <c-f> $lf -remote "send $id select \"$(fzf --reverse)\""
map x $setsid mpv "$f" # execute current file (must be executable)

map zb :{{ set sortby natural; set info size; set preview; set ratios 5:2; }}
map zz :{{ set preview; set ratios 1:2:3; }}

# Directory change
map <c-h> cd ~
map <c-p> cd ~/proj
map <c-t> cd ~/tproj
map <c-c> cd ~/.config
map <c-r> cd /tmp
map <c-u> cd /usr/local/bin
map <c-m> cd ~/music
map <c-b> cd ~/books

# Colors
set cursoractivefmt "\033[0;1;7m" #white
# set cursoractivefmt "\033[32;1;7m" #yellowish green
# set cursoractivefmt "\033[33;1;7m" #orange
# set cursoractivefmt "\033[36;1;7m" #green

set cursorparentfmt "\033[0;1;7m"
set tagfmt "\033[32;1;7m"
set rulerfmt "\033[32;1;7m"

set promptfmt "\033[48;1;234m %w/%f"

cmd trash ${{
    mkdir -p ~/.trash
    if [ -z "$fs" ]; then
        mv "$f" ~/.trash
    else
        IFS="$(printf '\n\t')"; mv $fs ~/.trash
    fi
}}