Last active
January 13, 2025 18:32
-
-
Save lukepighetti/8e4a13db5bdcd68a7d83eee19051ab14 to your computer and use it in GitHub Desktop.
Helix – tree file picker... TODAY?!?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[keys.normal] | |
C-f = [":new", ":insert-output lf-pick", ":theme default", "select_all", "split_selection_on_newline", "goto_file", "goto_last_modified_file", ":buffer-close!", ":theme tokyonight_storm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# touch ~/.local/bin/lf-pick | |
# chmod +x ~/.local/bin/lf-pick | |
function lfp(){ | |
local TEMP=$(mktemp) | |
lf -selection-path=$TEMP | |
cat $TEMP | |
} | |
lfp |
i just installed lf for the first time. Looks cool. but how do we set/use keymaps? I notice v selects everything; ENTER gives me a message that it is not mapped. Should this be in ~/.config/lf? What is the basic requirement to get this working?
does this work with yazi?
I got this message in ubuntu:
Open file failed: IrregularFile
----------------
no last modified buffer
How can I fix this?!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to set the current working directory with this as well?