Commit Graph

  • 796e98cff9 Minor version bump Bruce Hill 2019-11-24 22:12:40 -0800
  • 56cb3a2d66 Bunch of minor pedantic cleanups to get rid of warnings and tidy up the code. Bruce Hill 2019-11-24 22:11:54 -0800
  • 6c98653cca Some speculative fixes/improvements for mac read command use. Bruce Hill 2019-11-24 21:38:29 -0800
  • 637a3baae9 Changed order of make install so that even if bb is open, the other install files will still be put in place. Bruce Hill 2019-11-24 21:29:06 -0800
  • 1838fd9b9c sed change for compatibility with Mac's version of sed. Bruce Hill 2019-11-24 21:28:46 -0800
  • 18a63e4bc0 More unambiguous and simple command line semantics (bb [options/cmds] [[--] path]) Bruce Hill 2019-11-11 12:48:48 -0800
  • dbd558f6e2 Fix for creating files/dirs with "--" Bruce Hill 2019-11-11 12:48:37 -0800
  • e96004d50e Fixed bb -- +dirname not respecting -- properly Bruce Hill 2019-11-11 12:34:13 -0800
  • b7ad0e93a2 Refactored bb +... to bbcmd ... within bb bindings. This makes 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. Bruce Hill 2019-11-11 12:29:40 -0800
  • af3f642150 Updated docs. Bruce Hill 2019-11-11 11:45:00 -0800
  • 30519ab5d8 Switched bindings to use expr instead of grep for opening Bruce Hill 2019-11-11 11:44:45 -0800
  • 37b94e9ac2 Cleanup/refactor to move keyboard input and scanning the command file into their own functions. This massively simplifies bb_browse(). Bruce Hill 2019-11-11 11:19:45 -0800
  • ff1a1388f1 Rearranged bb_browse() a little to include more of the setup work. Bruce Hill 2019-11-11 10:48:12 -0800
  • b2f4d84985 Added error checks Bruce Hill 2019-11-11 10:29:56 -0800
  • 000b652ac0 Simplified "+help" binding by using a temp file and run_script() Bruce Hill 2019-11-11 10:25:15 -0800
  • d4f887d853 Made running_procs static. Bruce Hill 2019-11-11 10:09:07 -0800
  • 1bebad5edf Removed the "or pause" behavior for failed scripts. Bruce Hill 2019-11-09 15:45:07 +0100
  • 76647e596e Added 'select pattern' and 'unselect pattern' bindings and improved correctness of find-based bindings. Bruce Hill 2019-11-09 15:43:56 +0100
  • 7213eaadd6 Fixed up loading/saving selections Bruce Hill 2019-11-08 16:29:20 +0100
  • 4d0dbceaf9 Reverting SH change Bruce Hill 2019-11-08 16:20:06 +0100
  • 91fe7203b6 Cleaned up definitions for pause and sh Bruce Hill 2019-11-08 16:19:34 +0100
  • 2d4758dc7e Added query string to CONFIRM definition using ask Bruce Hill 2019-11-08 16:18:59 +0100
  • e60e5472b4 Added better doc for unscroll Bruce Hill 2019-11-08 15:46:00 +0100
  • b9e2bc280b Cleanup of bb->selected (renamed from bb->firstselected) to ensure that $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. Bruce Hill 2019-11-08 15:28:01 +0100
  • 8df4cceca0 Added printing to ask1 command Bruce Hill 2019-11-06 17:22:12 +0100
  • d577fa5a56 Better error handling/reporting Bruce Hill 2019-11-06 17:21:44 +0100
  • af82c6316a Added some messaging to replace the spinner's functionality and deleted pointless Ctrl-y binding. Bruce Hill 2019-11-04 17:29:08 +0100
  • 8027d815af Fixed issue with deselecting deleted files not working because realpath() depends on the file existing. Also added more detail to error messages to make tracking down issues easier. Bruce Hill 2019-11-04 17:25:25 +0100
  • ad6e61be16 Fixed extra spacing with multi-line confirms. Bruce Hill 2019-11-04 16:44:00 +0100
  • 4343251629 Removed spin because the "eval" part of it was broken and it adds unnecessary complexity. Bruce Hill 2019-11-04 15:28:00 +0100
  • 1f4122d8d5 Fixed shell scripting issue that had problems with "$((foo) | baz)" due to double parentheses. Bruce Hill 2019-11-04 02:34:08 +0100
  • b4c23f2409 Consolidated winwidth/winheight into winsize variable, which makes things a little more straightforward. Bruce Hill 2019-11-01 17:19:25 +0100
  • 3f7730be98 Removed nprocs variable, as it was a potential source of errors if it got out of sync. Bruce Hill 2019-11-01 17:15:38 +0100
  • 6f78e214a0 Version bump Bruce Hill 2019-11-01 17:11:17 +0100
  • 7bdced0f1c Removed bb +execute: as it was not used. Bruce Hill 2019-11-01 17:10:49 +0100
  • a97ea1d19b Fix for improperly initialized variable. Bruce Hill 2019-11-01 17:08:56 +0100
  • 1ae460a02b Oops, I guess it was needed after all. Bruce Hill 2019-11-01 16:54:47 +0100
  • a6096af13e Removed unnnecessary variable Bruce Hill 2019-11-01 16:53:03 +0100
  • 478e6a9023 Cleanup/overhaul of how symlinks are handled and how paths are parsed. Now bb will fail on bb nonexistant/.. and will display /foo/baz/atfoo/ as /foo/ if atfoo is a symlink to /foo Bruce Hill 2019-11-01 16:46:39 +0100
  • 2086cc6598 Fix for errors that occur before initializing the terminal. Bruce Hill 2019-11-01 16:46:12 +0100
  • 66d20ba811 Fix for jump to mark binding Bruce Hill 2019-11-01 16:41:54 +0100
  • 954c42df0c Minor version bump. Bruce Hill 2019-11-01 14:54:34 +0100
  • cc1e701587 Fixed Ctrl-a syntax error Bruce Hill 2019-11-01 14:54:08 +0100
  • f960755b13 Fixed "bb +." being broken. Bruce Hill 2019-11-01 14:53:50 +0100
  • 308c8c3e6d Added support for NULL-byte delimited picking, cleaned up some of the bindings making them faster/simpler. Bruce Hill 2019-11-01 14:51:30 +0100
  • 3fd5ed860d Moved dirty from being a bit on bb to being a global, which simplifies the code a bit, plus some other minor cleanups. Bruce Hill 2019-11-01 14:50:44 +0100
  • 02beee84fc Better warning messages. Bruce Hill 2019-10-30 13:43:49 +0100
  • 55d3f0e160 Mostly finalized working version of better signal handling, including allowing for suspended/resuming processes (bb +fg) and cleaner linked list handling code. Bruce Hill 2019-10-27 14:58:23 -0700
  • dc6ecc4e7f Removed (broken) code to escape newlines in output. If you care about files with newlines, just use '-0'. Otherwise, newlines will just be printed like every other character. Bruce Hill 2019-10-13 21:48:43 -0700
  • 6a22cda2e9 More code cleanup and guards to check tty_in/out exist Bruce Hill 2019-10-13 21:48:31 -0700
  • c9d45599cc Minor version bump Bruce Hill 2019-10-13 21:21:20 -0700
  • ff8c2f9c62 More code cleanup: consolidating cd_to() and populate_files() into just populate_files(), cleaner startup behavior, less duplicative environment variable setting, misc. Bruce Hill 2019-10-13 21:20:00 -0700
  • 5ad09087c2 Slightly better warning message with + Bruce Hill 2019-10-13 19:36:25 -0700
  • 55daca6a2f More code cleanup, including tweaking matches_cmd() to figure out if 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. Bruce Hill 2019-10-13 19:34:16 -0700
  • d77907783f Code cleanup. Bruce Hill 2019-10-13 18:56:09 -0700
  • 7e373e12b2 Fixed max depth str length to be closer to actual range of lengths. Bruce Hill 2019-10-13 18:43:07 -0700
  • 6ffe39308b Deprecated support for piping commands in to bb at startup (undocumented). Users should use xargs if they want to do that sort of thing. Bruce Hill 2019-10-13 18:41:48 -0700
  • 999c60c099 Added support for shift-home and shift-end, as well as a default binding to +spread using them. Bruce Hill 2019-10-13 18:34:55 -0700
  • e40feed849 Cleaned up the command parsing code a bit to be slightly more correct 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. Bruce Hill 2019-10-13 18:33:46 -0700
  • e2152a57a3 Renamed Super->Meta for correctness and demagicified a magic number. Bruce Hill 2019-10-12 16:09:07 -0700
  • 9e4e0ee314 verhaul of terminal keypress handling and labeling to support more 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. Bruce Hill 2019-10-12 16:04:19 -0700
  • e9c75a7837 Use tput cvvis and tput civis for cursor visibility and fix for > shell mode not showing cursor. Bruce Hill 2019-10-11 19:07:05 -0700
  • 4cc2bd59c3 Shortened loop to find bindings. Bruce Hill 2019-10-09 17:28:59 -0700
  • 9a1599e728 Moved bbstartup search to a loop. Bruce Hill 2019-10-09 15:01:50 -0700
  • 220d0dc402 Set default columns to what the startup commands were doing by default, so that's no longer needed in the startup commands. Bruce Hill 2019-10-08 19:30:37 -0700
  • c4620ece60 Version bump Bruce Hill 2019-10-03 15:51:17 -0700
  • 7f0fcdeea4 Removed some unnecessary +refreshes, no longer enable cursor by default, but instead have ask() etc. make the cursor visible. Also cleaned up some of the failure cases for better feedback. Bruce Hill 2019-10-03 14:57:34 -0700
  • 97bae88a1e For +deselect, allow +deselect (no colon) to mean "deselect everything" to make it a simple command instead of +deselect: "$@" Bruce Hill 2019-10-03 14:13:27 -0700
  • 68a3bbf7e2 Fix for empty files not getting detected properly Bruce Hill 2019-10-03 13:49:38 -0700
  • 16877a5f4b Tidying up Bruce Hill 2019-10-03 13:38:41 -0700
  • 6b63ea5d40 Added +execute (for, e.g. bb +e:"bb +goto:$(ls | pick "Go to file: ")") Bruce Hill 2019-10-03 13:35:53 -0700
  • 9c01fd6a37 Updated docs. Bruce Hill 2019-10-03 13:35:42 -0700
  • 38497d5619 Overhaul/cleanup of command line argument parsing. Now properly handles startup commands in the order: bbstartup.sh, bb +cmd, echo +cmd | bb Bruce Hill 2019-10-03 13:26:31 -0700
  • e364995dcd Appending '\0' to commandfile so subsequent writes don't get screwed up. Bruce Hill 2019-10-03 13:24:52 -0700
  • 3de5a5108f Fix for deletion not working properly with <selection> Bruce Hill 2019-10-03 13:21:21 -0700
  • 2be2c575b2 Reordering startup commands and cleaning up piped in input. Bruce Hill 2019-10-02 13:52:44 -0700
  • 905783d644 Fixed ln argument ordering Bruce Hill 2019-10-02 13:51:51 -0700
  • 95047f54e7 Removed unnecessary /dev/tty redirect Bruce Hill 2019-10-02 13:41:19 -0700
  • 0d3d80b94d Restored binding for double left clicking a file. Bruce Hill 2019-10-02 13:30:51 -0700
  • b9cb1e34c9 Moved some variables out of global scope that weren't needed there. Bruce Hill 2019-10-02 13:29:49 -0700
  • 05e37166fc Fixed 'Enter' key behavior (should work properly for mac again now) Bruce Hill 2019-10-02 13:29:25 -0700
  • e25eaf9b92 Default behavior for invalid bb commands is now to print an error message to stdout on the default console screen and otherwise ignore it instead of exiting. Bruce Hill 2019-10-02 13:14:28 -0700
  • f0016a2d10 Removed BB_QUIT Bruce Hill 2019-10-02 13:08:07 -0700
  • e531e1766c Added fake binding to allow '#' to bind without being parsed as a comment Bruce Hill 2019-10-02 12:45:44 -0700
  • c7e08b884a Fix for some messed up behavior for Escape key and for passing vararg commands to bb Bruce Hill 2019-10-02 01:40:40 -0700
  • 7f402ee32a Fixed some typos in the bindings. Bruce Hill 2019-09-30 18:02:55 -0700
  • d83aac7bb1 Moved duplicate names onto same line. Bruce Hill 2019-09-30 18:02:40 -0700
  • f0e37a95f1 Fixed an issue with /etc/bb instead of /etc/xdg/bb and moved the startup command into bb.h with the other bb shell script stuff. Bruce Hill 2019-09-30 17:22:17 -0700
  • 3fd603c607 Fix for pause having both bold+faint text instead of just faint. Bruce Hill 2019-09-30 17:08:59 -0700
  • 10ea5c1eb0 Updated comment. Bruce Hill 2019-09-30 17:07:30 -0700
  • 3daa54df98 Moved config.h -> bb.h and did some cleanup, moving function declarations and constants out of bb.c and into bb.h. Also re-alphabetized the functions and updated the docs. Bruce Hill 2019-09-30 17:06:27 -0700
  • f0c32a9047 Ditching the whole config.def.h paradigm in favor of just having a single config.h file. It's mostly not used very much anyways now that the startup commands and key bindings are in their own files. Bruce Hill 2019-09-30 15:57:58 -0700
  • 7a666d5195 Overhaul of how binding commands works. It's now all handled through bbstartup.sh, which loads bindings.bb and parses it to +bind:<keys>:<script> commands. Bruce Hill 2019-09-30 15:46:24 -0700
  • e341f51dc6 Added reverse-lookup for name->key and switched to store names in an array. Bruce Hill 2019-09-30 00:13:10 -0700
  • 6e41b2f2e2 Only toggle sort direction if it was the first sort and it was ~'d. Bruce Hill 2019-09-22 19:47:59 -0700
  • 7f8c16e5d9 Don't show '..' by default Bruce Hill 2019-09-22 19:45:06 -0700
  • 2048807a80 Added 'i' binding for +interleave Bruce Hill 2019-09-22 17:56:42 -0700
  • 13ee51673a Centered the Size column label. Bruce Hill 2019-09-22 17:54:10 -0700
  • 0f0bacceb4 Now $@ is *always* the selected files, even if there are none. Cleaned 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. Bruce Hill 2019-09-22 17:51:27 -0700
  • ef57717774 Per-ASK() history for ask using the __COUNTER__ macro Bruce Hill 2019-09-22 15:58:00 -0700