Commit Graph

416 Commits

Author SHA1 Message Date
796e98cff9 Minor version bump 2019-11-24 22:12:40 -08:00
56cb3a2d66 Bunch of minor pedantic cleanups to get rid of warnings and tidy up the
code.
2019-11-24 22:11:54 -08:00
6c98653cca Some speculative fixes/improvements for mac read command use. 2019-11-24 21:38:29 -08:00
637a3baae9 Changed order of make install so that even if bb is open, the
other install files will still be put in place.
2019-11-24 21:29:06 -08:00
1838fd9b9c sed change for compatibility with Mac's version of sed. 2019-11-24 21:28:46 -08:00
18a63e4bc0 More unambiguous and simple command line semantics (bb [options/cmds]
[[--] path])
2019-11-11 12:48:48 -08:00
dbd558f6e2 Fix for creating files/dirs with "--" 2019-11-11 12:48:37 -08:00
e96004d50e Fixed bb -- +dirname not respecting -- properly 2019-11-11 12:34:13 -08:00
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.
2019-11-11 12:29:40 -08:00
af3f642150 Updated docs. 2019-11-11 11:45:00 -08:00
30519ab5d8 Switched bindings to use expr instead of grep for opening 2019-11-11 11:44:45 -08:00
37b94e9ac2 Cleanup/refactor to move keyboard input and scanning the command file
into their own functions. This massively simplifies bb_browse().
2019-11-11 11:19:45 -08:00
ff1a1388f1 Rearranged bb_browse() a little to include more of the setup work. 2019-11-11 10:48:12 -08:00
b2f4d84985 Added error checks 2019-11-11 10:29:56 -08:00
000b652ac0 Simplified "+help" binding by using a temp file and run_script() 2019-11-11 10:25:15 -08:00
d4f887d853 Made running_procs static. 2019-11-11 10:09:07 -08:00
1bebad5edf Removed the "or pause" behavior for failed scripts. 2019-11-09 15:45:07 +01:00
76647e596e Added 'select pattern' and 'unselect pattern' bindings and improved
correctness of `find`-based bindings.
2019-11-09 15:43:56 +01:00
7213eaadd6 Fixed up loading/saving selections 2019-11-08 16:29:20 +01:00
4d0dbceaf9 Reverting SH change 2019-11-08 16:20:06 +01:00
91fe7203b6 Cleaned up definitions for pause and sh 2019-11-08 16:19:34 +01:00
2d4758dc7e Added query string to CONFIRM definition using ask 2019-11-08 16:18:59 +01:00
e60e5472b4 Added better doc for unscroll 2019-11-08 15:46:00 +01:00
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.
2019-11-08 15:28:01 +01:00
8df4cceca0 Added printing to ask1 command 2019-11-06 17:22:12 +01:00
d577fa5a56 Better error handling/reporting 2019-11-06 17:21:44 +01:00
af82c6316a Added some messaging to replace the spinner's functionality and deleted
pointless Ctrl-y binding.
2019-11-04 17:29:08 +01:00
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.
2019-11-04 17:25:25 +01:00
ad6e61be16 Fixed extra spacing with multi-line confirms. 2019-11-04 16:44:00 +01:00
4343251629 Removed spin because the "eval" part of it was broken and it adds
unnecessary complexity.
2019-11-04 15:28:00 +01:00
1f4122d8d5 Fixed shell scripting issue that had problems with "$((foo) | baz)" due
to double parentheses.
2019-11-04 02:34:08 +01:00
b4c23f2409 Consolidated winwidth/winheight into winsize variable, which makes
things a little more straightforward.
2019-11-01 17:19:25 +01:00
3f7730be98 Removed nprocs variable, as it was a potential source of errors if it
got out of sync.
2019-11-01 17:15:38 +01:00
6f78e214a0 Version bump 2019-11-01 17:11:17 +01:00
7bdced0f1c Removed bb +execute: as it was not used. 2019-11-01 17:10:49 +01:00
a97ea1d19b Fix for improperly initialized variable. 2019-11-01 17:08:56 +01:00
1ae460a02b Oops, I guess it was needed after all. 2019-11-01 16:54:47 +01:00
a6096af13e Removed unnnecessary variable 2019-11-01 16:53:03 +01:00
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`
2019-11-01 16:46:39 +01:00
2086cc6598 Fix for errors that occur before initializing the terminal. 2019-11-01 16:46:12 +01:00
66d20ba811 Fix for jump to mark binding 2019-11-01 16:41:54 +01:00
954c42df0c Minor version bump. 2019-11-01 14:54:34 +01:00
cc1e701587 Fixed Ctrl-a syntax error 2019-11-01 14:54:08 +01:00
f960755b13 Fixed "bb +." being broken. 2019-11-01 14:53:50 +01:00
308c8c3e6d Added support for NULL-byte delimited picking, cleaned up some of the
bindings making them faster/simpler.
2019-11-01 14:51:30 +01:00
3fd5ed860d Moved dirty from being a bit on bb to being a global, which
simplifies the code a bit, plus some other minor cleanups.
2019-11-01 14:50:44 +01:00
02beee84fc Better warning messages. 2019-10-30 13:43:49 +01:00
55d3f0e160 Mostly finalized working version of better signal handling, including
allowing for suspended/resuming processes (bb +fg) and cleaner linked
list handling code.
2019-10-27 14:58:23 -07:00
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.
2019-10-13 21:48:43 -07:00
6a22cda2e9 More code cleanup and guards to check tty_in/out exist 2019-10-13 21:48:31 -07:00