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
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
18a63e4bc0
More unambiguous and simple command line semantics (bb [options/cmds]
...
[[--] path])
2019-11-11 12:48:48 -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
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
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
4343251629
Removed spin
because the "eval" part of it was broken and it adds
...
unnecessary complexity.
2019-11-04 15:28:00 +01:00
b4c23f2409
Consolidated winwidth/winheight into winsize variable, which makes
...
things a little more straightforward.
2019-11-01 17:19:25 +01:00
6f78e214a0
Version bump
2019-11-01 17:11:17 +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
954c42df0c
Minor version bump.
2019-11-01 14:54:34 +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
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
c9d45599cc
Minor version bump
2019-10-13 21:21:20 -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
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
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.
2019-10-13 18:41:48 -07:00
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.
2019-10-13 18:33:46 -07:00
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.
2019-10-12 16:04:19 -07:00
e9c75a7837
Use tput cvvis
and tput civis
for cursor visibility and fix for >
...
shell mode not showing cursor.
2019-10-11 19:07:05 -07:00
9a1599e728
Moved bbstartup search to a loop.
2019-10-09 15:01:50 -07:00
c4620ece60
Version bump
2019-10-03 15:51:17 -07:00
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.
2019-10-03 14:57:34 -07:00
38497d5619
Overhaul/cleanup of command line argument parsing. Now properly handles
...
startup commands in the order: bbstartup.sh, bb +cmd, echo +cmd | bb
2019-10-03 13:26:31 -07:00
f0016a2d10
Removed BB_QUIT
2019-10-02 13:08:07 -07:00
c7e08b884a
Fix for some messed up behavior for Escape key and for passing vararg
...
commands to bb
2019-10-02 01:40:40 -07:00
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.
2019-09-30 17:22:17 -07:00
3fd603c607
Fix for pause
having both bold+faint text instead of just faint.
2019-09-30 17:08:59 -07:00
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.
2019-09-30 17:06:27 -07:00