Skip to content
Discussion options

You must be logged in to vote

Hello @shmcgrath,
I have this keybinding in my config because I constantly kept opening files by accident while navigating through directories (you can obviously remove the print statement 😃):

map l %{{
    if [ -d "$f" ]; then
        lf -remote "send $id open"
    else
        printf "Not a directory"
    fi
}}

To open files I have to press <enter>:

map <enter> open

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shmcgrath
Comment options

@CatsDeservePets
Comment options

Answer selected by shmcgrath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants