* 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:
Dustin Kirkland 2011-11-09 14:27:52 -06:00
commit 3b13ef5a38
4 changed files with 7 additions and 3 deletions

4
debian/changelog vendored
View file

@ -29,6 +29,10 @@ byobu (4.47) unreleased; urgency=low
usr/share/byobu/profiles/tmux, usr/share/doc/byobu/help.tmux.txt: usr/share/byobu/profiles/tmux, usr/share/doc/byobu/help.tmux.txt:
- Add Shift-F12 to toggle keybindings on/off - Add Shift-F12 to toggle keybindings on/off
- Split tmux keybindings to separate file to source - 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 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 08 Nov 2011 19:16:15 -0600

View file

@ -24,8 +24,7 @@ PKG="byobu"
if which vim >/dev/null && `vim --version | grep -q +folding`; then 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 - byobu-status --detail | vim -c "set foldmethod=indent" -c "set foldminlines=0" -c "set foldnestmax=1" -c "set foldcolumn=2" -R -
else else
(which sensible-pager >/dev/null) && PAGER=sensible-pager || PAGER=less byobu-status --detail | $BYOBU_PAGER
byobu-status --detail | $PAGER
fi fi
# vi: syntax=sh ts=4 noexpandtab # vi: syntax=sh ts=4 noexpandtab

View file

@ -96,3 +96,4 @@ esac
# MacOS Support # MacOS Support
command -v gsed >/dev/null 2>&1 && export SED="gsed" || export SED="sed" 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 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"

View file

@ -24,7 +24,7 @@ set -g prefix ^A,F12
# Byobu's Keybindings # Byobu's Keybindings
# Documented in: /usr/share/doc/byobu/help.tmux.txt # Documented in: /usr/share/doc/byobu/help.tmux.txt
bind-key -n F1 new-window -k -n config byobu-config 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 F2 new-window
bind-key -n C-F2 display-panes \; split-window -h bind-key -n C-F2 display-panes \; split-window -h
bind-key -n S-F2 display-panes \; split-window -v bind-key -n S-F2 display-panes \; split-window -v