Skip to content

Instantly share code, notes, and snippets.

@timurguseynov
Forked from gabydd/config.toml
Created October 20, 2023 19:08
Show Gist options
  • Save timurguseynov/18fa7cb540089ad7f72e1f6e3ee97f93 to your computer and use it in GitHub Desktop.
Save timurguseynov/18fa7cb540089ad7f72e1f6e3ee97f93 to your computer and use it in GitHub Desktop.
helix lf
[keys.normal]
C-f = [":new", ":insert-output lf-pick", "split_selection_on_newline", "goto_file", "goto_last_modification", "goto_last_modified_file", ":buffer-close!", ":theme nord", ":theme default"]
# replace the default after theme with the theme you use
# open 1 with the open command (l and <left> to open) or more with (<space> to select) then quit
# all opened files will be opened in helix
# touch ~/.local/bin/lf-pick
# chmod +x ~/.local/bin/lf-pick
function lfp(){
local TEMP=$(mktemp)
lf -selection-path=$TEMP
echo >> $TEMP
while read -r line
do
echo "$line"
done < "$TEMP"
}
lfp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment