mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Allow $NNN_TERMINAL additional arguments for "preview-tui" plugin
This can be used to start terminal with a custom title and prevent focus switch with i3 window manager.
This commit is contained in:
parent
efd5bc9db1
commit
a7262eb4ee
|
@ -78,6 +78,11 @@
|
||||||
# Windows Terminal users can set "Profile termination behavior" under "Profile > Advanced" settings
|
# Windows Terminal users can set "Profile termination behavior" under "Profile > Advanced" settings
|
||||||
# to automatically close pane on quit when exit code is 0.
|
# to automatically close pane on quit when exit code is 0.
|
||||||
#
|
#
|
||||||
|
# When specifying a different terminal, additional arguments are supported. In particular, you can
|
||||||
|
# append a specific title to the terminal and set it to "nofocus" in your WM config.
|
||||||
|
# E.g for alacritty and i3, you can set $NNN_TERMINAL to 'alacritty --title preview-tui' and add
|
||||||
|
# 'no_focus [title="preview-tui"]' to your i3 config file.
|
||||||
|
#
|
||||||
# Shell: Bash (for environment manipulation through arrays)
|
# Shell: Bash (for environment manipulation through arrays)
|
||||||
# Authors: Todd Yamakawa, Léo Villeveygoux, @Recidiviste, Mario Ortiz Manero, Luuk van Baal, @WanderLanz
|
# Authors: Todd Yamakawa, Léo Villeveygoux, @Recidiviste, Mario Ortiz Manero, Luuk van Baal, @WanderLanz
|
||||||
|
|
||||||
|
@ -185,7 +190,8 @@ EOF
|
||||||
*) if [ -n "$2" ]; then
|
*) if [ -n "$2" ]; then
|
||||||
env "${ENVVARS[@]}" QUICKLOOK=1 "$0" "$1" &
|
env "${ENVVARS[@]}" QUICKLOOK=1 "$0" "$1" &
|
||||||
else
|
else
|
||||||
env "${ENVVARS[@]}" "$NNN_TERMINAL" -e "$0" "$1" &
|
# shellcheck disable=SC2086 # (allow arguments)
|
||||||
|
env "${ENVVARS[@]}" $NNN_TERMINAL -e "$0" "$1" &
|
||||||
fi ;;
|
fi ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue