1
0
Fork 0

experimental opener changes

This commit is contained in:
Luca Bilke 2024-02-05 16:50:12 +01:00
parent 85f850f36f
commit fbf03c843c
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,11 @@
#!/bin/sh
[ -n "$SCRATCHPAD" ] && set -- -ft "$@"
term=
[ -n "$SCRATCHPAD" ] && { set -- -ft "$@"; term="$TERMCMD -e"; }
# HACK: workaround for an nvim --embed bug
[ "$(rifle -c "$XDG_CONFIG_HOME/lf/rifle.conf" | head -1 | cut -d ':' -f 2)" = "editor" ] && $term vim "$@"
set -- -p0 -c "$XDG_CONFIG_HOME/lf/rifle.conf" "$@"
rifle "$@"