aboutsummaryrefslogtreecommitdiff
path: root/i3-sensible-pager
AgeCommit message (Collapse)Author
2022-09-06i3-sensible-pager: sanitize LESS environment variable (#5111)bodea
When an error is encountered such as "The configured command for this shortcut could not be run successfully", the "show errors" button on i3-nagbar doesn't work if $PAGER is less, and $LESS contains either the -E or -F flag (the window pops up, but immediately disappears). Strip these flags from the LESS environment variable before invoking $pager.
2015-11-30Quote the variables in i3-sensible-* correctlyTobias Bucher
Previously, the variables $EDITOR, $PAGER, $TERMINAL and $VISUAL got shell-expanded twice before executing them.
2015-07-14Added 'pg' to i3-sensible-pagerPopeLevi
Added 'pg' to the list of pagers in i3-sensible-pager
2014-10-23Use command -v (built-in) instead of which(1) (Thanks val)Michael Stapelberg
fixes #1380
2011-12-29update i3-sensible-* (Thanks Han)Michael Stapelberg
2011-11-19Also check for empty $PAGER/$VISUAL/$EDITOR in i3-sensible-{editor,pager}Michael Stapelberg
2011-09-25Introduce the i3-sensible-{pager,editor,terminal} scriptsMichael Stapelberg
The former two provide fallbacks in case $PAGER or $EDITOR is not set (which might be more common than you think, because they have to be set in ~/.xsession, not in the shell configuration!) while the latter tries to launch a terminal emulator. The scripts are most prominently used in i3-nagbar, which alerts the user when the configuration is broken for some reason. Also, i3-sensible-terminal is used in the default configuration. This commit does not rely on the shell supporting ${PAGER:-less} anymore, which is not the case for 'fish'.