1dbece8b2e
Added a slightly hacky fix to make sure bb
can be run from the local
...
build directory and still have the helper scripts, bbstartup.sh, and the
bindings work.
2020-02-24 02:57:12 -08:00
327d65f7be
Don't close and reopen tty files when running scripts.
2020-02-24 02:50:39 -08:00
865092c656
Major update: instead of defining all the helper functions as static
...
C-strings prefixed to commands (modified by the Makefile), the helper
functions are now standalone scripts in the helpers/ dir, which gets
added to "$PATH" when running bb.
2020-02-24 01:31:39 -08:00
a8fd174319
Removed unnecessary warning.
2020-02-23 22:12:07 -08:00
99a7f917c3
API tweaks and documentation updates.
2020-02-23 20:22:19 -08:00
8888c23cad
Cleaned up column rendering logic, including adding a 'stretchy' option
...
for columns to fill available space. Also fixed some coloring issues.
2020-02-23 19:48:24 -08:00
78e7a7b59d
Working version of pulling columns into their own file.
2020-02-23 18:05:56 -08:00
8820fda592
Fixed selection issue.
2020-02-23 18:05:40 -08:00
e133871653
Fix for globbing into subdirectories (e.g. bbcmd glob:"* */*"
)
2020-02-23 18:00:39 -08:00
6006e21d95
Fixed column separator width
2020-02-22 16:06:36 -08:00
9636042858
Initial working version using globbing.
2020-02-22 16:05:05 -08:00
d7e6159eb8
Bugfix for cursor position not being remembered correctly.
2020-02-18 23:20:57 -08:00
f9fc99d28e
Added xwindow title setting, and $HOME -> ~ in the bb path area.
2020-02-17 16:02:53 -08:00
2d9eac4237
Added a scrollbar.
2020-02-07 18:19:27 -08:00
0d5803047b
Fixed memory leak.
2020-01-12 23:19:03 -08:00
8b4c66e144
Updated to respect TMPDIR environment variable.
2020-01-12 23:17:06 -08:00
1d69bb63ce
Fix for mac support.
2019-12-11 22:12:18 -08:00
0e94d55807
Cleanup of how window resize events are handled.
2019-12-07 21:17:06 -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
18a63e4bc0
More unambiguous and simple command line semantics (bb [options/cmds]
...
[[--] path])
2019-11-11 12:48:48 -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
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
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
d577fa5a56
Better error handling/reporting
2019-11-06 17:21:44 +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
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
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
f960755b13
Fixed "bb +." being broken.
2019-11-01 14:53:50 +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
ff8c2f9c62
More code cleanup: consolidating cd_to() and populate_files() into just
...
populate_files(), cleaner startup behavior, less duplicative environment
variable setting, misc.
2019-10-13 21:20:00 -07:00
5ad09087c2
Slightly better warning message with +
2019-10-13 19:36:25 -07:00
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.
2019-10-13 19:34:16 -07:00
d77907783f
Code cleanup.
2019-10-13 18:56:09 -07:00
7e373e12b2
Fixed max depth str length to be closer to actual range of lengths.
2019-10-13 18:43:07 -07:00