(95 lines)
1 .\" Manpage for bb.2 .\" Contact bruce@bruce-hill.com to correct errors or typos.3 .TH man 1 "23 Feb 2020" "0.27" "bb manual page"4 .SH NAME5 bb \- A bitty browser for command line file management6 .SH SYNOPSIS7 .B bb8 [\fI-d\fR]9 [\fI-s\fR]10 [\fI-0\fR]11 [\fI-v\fR|\fI--version\fR]12 [\fI-h\fR|\fI--help\fR]13 [+\fI<command>\fR]*14 [[--] \fI<directory>\fR | \fI<file>\fR]15 .SH DESCRIPTION16 \fBbb\fR is a tiny TUI console application for browsing and managing files.17 .SH OPTIONS18 .B \-d19 Print the current directory on exit.21 .B \-s22 Print the selected files on exit.24 .B \-025 If printing the selected files on exit, use \fBNULL\fR-terminated strings26 instead of newline-separated.28 .B \-d29 Print the current directory on exit.31 .B \--version32 Print the version and exit.34 .B \--help35 Print the usage and exit.37 .B <command>38 As soon as \fBbb\fR has launched, run the given command. See \fBbbcmd\fR(1) for39 more details about \fBbb\fR commands.41 .B <directory>42 Open \fBbb\fR viewing this directory.44 .B <file>45 Open \fBbb\fR in the directory containing this file, with the cursor on it.47 .SH CONTROLS48 For full details on all key bindings, press \fB?\fR from inside \fBbb\fR to get49 a help menu.51 .TP52 .B Navigating:53 Arrow keys or h/j/k/l can be used to navigate.55 .TP56 .B Selecting:57 \fBSpace\fR is used to toggle file selection. Actions (such as copying or58 deleting files) are performed on the selected files. If no files are selected,59 actions are performed on the file under the cursor. The selection can be60 cleared by pressing \fBEscape\fR.62 .TP63 .B Mouse:64 Clicking on a file will move the cursor to it. Double clicking will open it.65 Clicking on the '*' column of a file will toggle that file's selection.66 Clicking on a column's label will sort according to that column.68 .SH EXAMPLES69 .TP70 .B71 bb /usr/local/72 Begin browsing in /usr/local/74 .TP75 .B76 alias bcd='cd "$(bb -d)"'77 Create an alias to launch \fBbb\fR and change directory to wherever it's located78 when you exit (unless you exit with Ctrl-c).80 .TP81 .B82 bb -s -0 | xargs -0 zip archive.zip83 Select some files to add to a zip archive.85 .TP86 .B87 bb +select: *.txt88 Launch \fBbb\fR with all the .txt files in the current directory selected.90 .SH "SEE ALSO"91 .sp92 \fBbbcmd\fR(1)94 .SH AUTHOR95 Bruce Hill (bruce@bruce-hill.com)