lf: add a modified kks-lf2 script to get this working
note: use this to overwrite the default kks-lf script provided by kks
# leave some space at the top and the bottom of the screen
set scrolloff 3
-# use enter for shell commands
-map <enter> shell
-
# make sure trash folder exists
%mkdir -p ~/.trash
map '%' : select-all
# various commands
+map <enter> open
map <esc> unselect
map ~ toggle_preview
map C edit-config
--- /dev/null
+#!/bin/sh
+#
+# open lf in single-pane view with current buffer selected
+#
+# requires:
+# - lf (https://github.com/gokcehan/lf)
+
+# kks get '%val{buffile}' |
+ # xargs -I {} lf -command "set nopreview; set ratios 1" {}
+
+lf -command "set nopreview; set ratios 1" -selection-path "/tmp/lf-chosen-file.XXXX"
+kks edit "$(cat "/tmp/lf-chosen-file.XXXX")"
+