mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* byobu-status-detail: use vim's folding status feature to allow
for collapsing/expanding each status item; fall back on sensible-pager if +folding is not available; and fall back on less if sensible-pager is not available Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
e9b92b716f
commit
e10a4f27a7
1 changed files with 7 additions and 2 deletions
|
@ -17,5 +17,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
if vim --version | grep -qs +folding 2>&1; then
|
||||||
byobu-status --detail | less -R -p "#.*:$"
|
byobu-status --detail | vim -c "set foldmethod=indent" -c "set foldminlines=0" -R -
|
||||||
|
elif which sensible-pager >/dev/null 2>&1; then
|
||||||
|
byobu-status --detail | sensible-pager
|
||||||
|
else
|
||||||
|
byobu-status --detail | less
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue