Skip to content

Instantly share code, notes, and snippets.

@lukepighetti
Last active January 13, 2025 18:32
Show Gist options
  • Save lukepighetti/8e4a13db5bdcd68a7d83eee19051ab14 to your computer and use it in GitHub Desktop.
Save lukepighetti/8e4a13db5bdcd68a7d83eee19051ab14 to your computer and use it in GitHub Desktop.
Helix – tree file picker... TODAY?!?
[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"]
# touch ~/.local/bin/lf-pick
# chmod +x ~/.local/bin/lf-pick
function lfp(){
local TEMP=$(mktemp)
lf -selection-path=$TEMP
cat $TEMP
}
lfp
@ilosrim
Copy link

ilosrim commented Jan 13, 2025

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