mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
* usr/bin/byobu-status-detail, usr/lib/byobu/.constants,
usr/share/byobu/keybindings/f-keys.tmux: - set a BYOBU_PAGER environment variable - use BYOBU_PAGER in places we need a pager
This commit is contained in:
parent
165d9b79a1
commit
3b13ef5a38
4 changed files with 7 additions and 3 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -29,6 +29,10 @@ byobu (4.47) unreleased; urgency=low
|
|||
usr/share/byobu/profiles/tmux, usr/share/doc/byobu/help.tmux.txt:
|
||||
- Add Shift-F12 to toggle keybindings on/off
|
||||
- Split tmux keybindings to separate file to source
|
||||
* usr/bin/byobu-status-detail, usr/lib/byobu/.constants,
|
||||
usr/share/byobu/keybindings/f-keys.tmux:
|
||||
- set a BYOBU_PAGER environment variable
|
||||
- use BYOBU_PAGER in places we need a pager
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 08 Nov 2011 19:16:15 -0600
|
||||
|
||||
|
|
|
@ -24,8 +24,7 @@ PKG="byobu"
|
|||
if which vim >/dev/null && `vim --version | grep -q +folding`; then
|
||||
byobu-status --detail | vim -c "set foldmethod=indent" -c "set foldminlines=0" -c "set foldnestmax=1" -c "set foldcolumn=2" -R -
|
||||
else
|
||||
(which sensible-pager >/dev/null) && PAGER=sensible-pager || PAGER=less
|
||||
byobu-status --detail | $PAGER
|
||||
byobu-status --detail | $BYOBU_PAGER
|
||||
fi
|
||||
|
||||
# vi: syntax=sh ts=4 noexpandtab
|
||||
|
|
|
@ -96,3 +96,4 @@ esac
|
|||
# MacOS Support
|
||||
command -v gsed >/dev/null 2>&1 && export SED="gsed" || export SED="sed"
|
||||
command -v greadlink >/dev/null 2>&1 && export READLINK="greadlink" || export READLINK="readlink"
|
||||
command -v sensible-pager >/dev/null 2>&1 && export BYOBU_PAGER="sensible-pager" || export BYOBU_PAGER="less"
|
||||
|
|
|
@ -24,7 +24,7 @@ set -g prefix ^A,F12
|
|||
# Byobu's Keybindings
|
||||
# Documented in: /usr/share/doc/byobu/help.tmux.txt
|
||||
bind-key -n F1 new-window -k -n config byobu-config
|
||||
bind-key -n S-F1 new-window -k -n help 'sensible-pager /usr/share/doc/byobu/help.tmux.txt'
|
||||
bind-key -n S-F1 new-window -k -n help '$BYOBU_PAGER /usr/share/doc/byobu/help.tmux.txt'
|
||||
bind-key -n F2 new-window
|
||||
bind-key -n C-F2 display-panes \; split-window -h
|
||||
bind-key -n S-F2 display-panes \; split-window -v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue