aboutsummaryrefslogtreecommitdiff
path: root/bb.c
AgeCommit message (Collapse)Author
2019-10-13Removed (broken) code to escape newlines in output. If you care aboutBruce Hill
files with newlines, just use '-0'. Otherwise, newlines will just be printed like every other character.
2019-10-13More code cleanup and guards to check tty_in/out existBruce Hill
2019-10-13More code cleanup: consolidating cd_to() and populate_files() into justBruce Hill
populate_files(), cleaner startup behavior, less duplicative environment variable setting, misc.
2019-10-13Slightly better warning message with +Bruce Hill
2019-10-13More code cleanup, including tweaking matches_cmd() to figure out ifBruce Hill
there are required arguments or not, and refactoring run_bbcmd() to no longer return a value (which was ignored), but instead just spit out error messages to stderr if necessary.
2019-10-13Code cleanup.Bruce Hill
2019-10-13Fixed max depth str length to be closer to actual range of lengths.Bruce Hill
2019-10-13Deprecated support for piping commands in to bb at startup (undocumented). ↵Bruce Hill
Users should use xargs if they want to do that sort of thing.
2019-10-13Cleaned up the command parsing code a bit to be slightly more correctBruce Hill
and more compact. Now uses if-else-if chain instead of nested switch statements. This may be very slightly less performant, but probably not noticeable and much cleaner code.
2019-10-12verhaul of terminal keypress handling and labeling to support moreBruce Hill
functionality for mouse clicking/dragging/left clicking/middle clicking/double clicking and to have more standardized behavior for key names and better handling of key modifiers (Ctrl, Alt, Meta, Shift). Also moved Ctrl-c and Ctrl-z to custom key bindings with (bb +kill and bb +suspend). Mouse clicking is now also handled in key bindings.
2019-10-08Set default columns to what the startup commands were doing by default,Bruce Hill
so that's no longer needed in the startup commands.
2019-10-03Removed some unnecessary +refreshes, no longer enable cursor by default,Bruce Hill
but instead have ask() etc. make the cursor visible. Also cleaned up some of the failure cases for better feedback.
2019-10-03For +deselect, allow +deselect (no colon) to mean "deselect everything"Bruce Hill
to make it a simple command instead of +deselect: "$@"
2019-10-03Added +execute (for, e.g. `bb +e:"bb +goto:$(ls | pick "Go to file:Bruce Hill
")"`)
2019-10-03Overhaul/cleanup of command line argument parsing. Now properly handlesBruce Hill
startup commands in the order: bbstartup.sh, bb +cmd, echo +cmd | bb
2019-10-02Reordering startup commands and cleaning up piped in input.Bruce Hill
2019-10-02Moved some variables out of global scope that weren't needed there.Bruce Hill
2019-10-02Default behavior for invalid bb commands is now to print an errorBruce Hill
message to stdout on the default console screen and otherwise ignore it instead of exiting.
2019-10-02Removed BB_QUITBruce Hill
2019-09-30Fixed an issue with /etc/bb instead of /etc/xdg/bb and moved the startupBruce Hill
command into bb.h with the other bb shell script stuff.
2019-09-30Updated comment.Bruce Hill
2019-09-30Moved config.h -> bb.h and did some cleanup, moving functionBruce Hill
declarations and constants out of bb.c and into bb.h. Also re-alphabetized the functions and updated the docs.
2019-09-30Overhaul of how binding commands works. It's now all handled throughBruce Hill
bbstartup.sh, which loads bindings.bb and parses it to +bind:<keys>:<script> commands.
2019-09-22Only toggle sort direction if it was the first sort and it was ~'d.Bruce Hill
2019-09-22Now $@ is *always* the selected files, even if there are none. CleanedBruce Hill
up the default bindings a bit to be more explicit about manipulating the cursor file vs. manipulated selected files. Added support for `ask -n` and generally confirming with a single 'y' keystroke instead of 'y<enter>' Also added a binding for `rename`-command batch renaming.
2019-09-21Changed sorting to support '~' meaning toggle current direction.Bruce Hill
2019-09-21Added support for default shell other than sh (e.g. dash, in case shBruce Hill
links to bash)
2019-09-21Fix for ctrl-z not restoring cursor visibilityBruce Hill
2019-09-21Version bump.Bruce Hill
2019-09-21Some tweaks to how the help menu displays bindings and added BBSHELLFUNCBruce Hill
for allowing the `bb` function to be used in the ':' and '|' bindings
2019-09-21Fix for weird terminal behavior (e.g. not echoing user input forBruce Hill
subprocesses if bb was started with the terminal attributes set with NOECHO) by setting up a "default" termios struct with sane settings instead of relying on bb being launched with sane settings.
2019-09-21Fix for broken behavior in the help menu (hanging when reaching the end,Bruce Hill
due to not close()ing the file descriptor, and exiting on ctrl-c)
2019-09-12Removed +bind functionality.Bruce Hill
2019-09-12Replaced marks system with something a little more elegant usingBruce Hill
symbolic links in ~/.config/bb/marks/. The new version is a little more flexible (arbitrary mark names), persistent across bb sessions, and uses a bit less code.
2019-09-07Fixed mistake in `bb` function conditionalBruce Hill
2019-07-15Fix for potential buffer overflow.Bruce Hill
2019-07-12Added fallback for if binding has no description.Bruce Hill
2019-07-12Overhaul to use a shell function for internal commands instead of `bb`Bruce Hill
itself, which lets bb work when not yet installed.
2019-06-19Fixed issue with extra '/' appearing in link pathsBruce Hill
2019-06-19Fix for Esc key causing hangBruce Hill
2019-06-19Removed unused importBruce Hill
2019-06-18Removed last traces of timeouts in bterm.hBruce Hill
2019-06-18Removed all the /dev/tty redirection and just dup2()'d it beforeBruce Hill
exec()ing the user scripts
2019-06-18Fixed change that broke `bb -d` by clearing bb's path prematurely.Bruce Hill
2019-06-18Merge branch 'master' of bitbucket.org:spilt/bbBruce Hill
2019-06-17Merge branch 'master' of bitbucket.org:spilt/bbBruce Hill
2019-06-17Fixed onscreen off-by-one errorBruce Hill
2019-06-17Changing IO code to no longer use poll() in favor of just reading inputBruce Hill
and using VMIN and VTIME.
2019-06-17Fix for term attrs getting messed up by Fish shellBruce Hill
2019-06-15Added commentBruce Hill