aboutsummaryrefslogtreecommitdiff
path: root/bb.c
AgeCommit message (Collapse)Author
2020-02-23Fix for globbing into subdirectories (e.g. `bbcmd glob:"* */*"`)Bruce Hill
2020-02-22Fixed column separator widthBruce Hill
2020-02-22Initial working version using globbing.Bruce Hill
2020-02-18Bugfix for cursor position not being remembered correctly.Bruce Hill
2020-02-17Added xwindow title setting, and $HOME -> ~ in the bb path area.Bruce Hill
2020-02-07Added a scrollbar.Bruce Hill
2020-01-12Fixed memory leak.Bruce Hill
2020-01-12Updated to respect TMPDIR environment variable.Bruce Hill
2019-12-11Fix for mac support.Bruce Hill
2019-12-07Cleanup of how window resize events are handled.Bruce Hill
2019-11-24Bunch of minor pedantic cleanups to get rid of warnings and tidy up theBruce Hill
code.
2019-11-11More unambiguous and simple command line semantics (bb [options/cmds]Bruce Hill
[[--] path])
2019-11-11Fixed `bb -- +dirname` not respecting `--` properlyBruce Hill
2019-11-11Refactored `bb +...` to `bbcmd ...` within bb bindings. This makesBruce Hill
things a lot less ambiguous. Also removed the default marks created in bbstartup.sh and ensured that `$XDG_DATA_HOME` and `$XDG_CONFIG_HOME` always get set as environment variables.
2019-11-11Cleanup/refactor to move keyboard input and scanning the command fileBruce Hill
into their own functions. This massively simplifies bb_browse().
2019-11-11Rearranged bb_browse() a little to include more of the setup work.Bruce Hill
2019-11-11Added error checksBruce Hill
2019-11-11Simplified "+help" binding by using a temp file and run_script()Bruce Hill
2019-11-11Made running_procs static.Bruce Hill
2019-11-09Removed the "or pause" behavior for failed scripts.Bruce Hill
2019-11-08Cleanup of bb->selected (renamed from bb->firstselected) to ensure thatBruce Hill
$n arguments for scripts are in FIFO order instead of LIFO order (i.e. $1 is the first selected item). `Ctrl-a` is also now bound to use `+select` instead of `+select: *` which ensures that the correct sorting order is preserved.
2019-11-06Better error handling/reportingBruce Hill
2019-11-04Fixed issue with deselecting deleted files not working becauseBruce Hill
realpath() depends on the file existing. Also added more detail to error messages to make tracking down issues easier.
2019-11-01Consolidated winwidth/winheight into winsize variable, which makesBruce Hill
things a little more straightforward.
2019-11-01Removed nprocs variable, as it was a potential source of errors if itBruce Hill
got out of sync.
2019-11-01Removed `bb +execute:` as it was not used.Bruce Hill
2019-11-01Fix for improperly initialized variable.Bruce Hill
2019-11-01Oops, I guess it was needed after all.Bruce Hill
2019-11-01Removed unnnecessary variableBruce Hill
2019-11-01Cleanup/overhaul of how symlinks are handled and how paths are parsed.Bruce Hill
Now `bb` will fail on `bb nonexistant/..` and will display `/foo/baz/atfoo/` as `/foo/` if `atfoo` is a symlink to `/foo`
2019-11-01Fix for errors that occur before initializing the terminal.Bruce Hill
2019-11-01Fixed "bb +." being broken.Bruce Hill
2019-11-01Moved `dirty` from being a bit on `bb` to being a global, whichBruce Hill
simplifies the code a bit, plus some other minor cleanups.
2019-10-30Better warning messages.Bruce Hill
2019-10-27Mostly finalized working version of better signal handling, includingBruce Hill
allowing for suspended/resuming processes (bb +fg) and cleaner linked list handling code.
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