Skip to content

Instantly share code, notes, and snippets.

@timurguseynov
Forked from lukepighetti/config.toml
Created October 20, 2023 19:15
Show Gist options
  • Save timurguseynov/32bb11e9569f222d3d1f37197a497590 to your computer and use it in GitHub Desktop.
Save timurguseynov/32bb11e9569f222d3d1f37197a497590 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment