Commit Graph

37 Commits

Author SHA1 Message Date
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
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
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.
2019-09-30 15:57:58 -07:00
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.
2019-09-30 15:46:24 -07:00
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.
2019-09-22 17:51:27 -07:00
ef57717774 Per-ASK() history for ask using the __COUNTER__ macro 2019-09-22 15:58:00 -07:00
c11e4bd4fa Removing remnants of ASKECHO 2019-09-22 15:41:51 -07:00
a6576261df Tweaked code for PICK() and the code that asks for 1 character of input
for better POSIX sh compatibility and to remove unused vars.
2019-09-21 21:16:33 -07:00
149056033a Added support for default shell other than sh (e.g. dash, in case sh
links to bash)
2019-09-21 21:14:59 -07:00
b6f2de2212 Added better support for custom asker/picker functionality and
simplified some of the things.
2019-09-21 19:01:42 -07:00
1da8fd2660 Fixed check for empty string in prefixes and stuff 2019-09-07 21:47:05 -07:00
f3da7c1f32 Replaced bashism "[[" with "test -n" 2019-07-24 23:46:14 -07:00
a3e90c07a4 Added dmenu support in makefile 2019-07-15 22:25:36 -07:00
af07f68570 Changed -std=gnu99 to -std=c99 2019-06-18 21:18:35 -07:00
18ea9b0350 Silenced some error messages from which 2019-06-15 17:43:55 -07:00
3614df7450 More robust/automatic handling of PICKER 2019-06-15 13:52:32 -07:00
87c462a63d Tweaked to allow setting optimization level more easily 2019-06-12 17:55:20 -07:00
69955d3808 Switched some stuff to use $() instead of `` for better composing,
rearranged things a bit to launch bb fewer times for commands.
2019-06-12 15:11:29 -07:00
792a39500c Simplified the make flags for fuzzy finding and asking. Cleaned up the
readme a bit.
2019-06-10 22:26:13 -07:00
5a5f9afa05 Updated with some cleaner behavior for PICK and added SPIN. Also removed
command line flags in favor of manually using `tput rmcup`. Updated the
documentation.
2019-06-10 20:37:34 -07:00
069415a78b Reworked a bunch of the config option stuff for picking files and user
input. Now that stuff is handled with makefile flags.
2019-06-06 18:10:14 -07:00
2c56bd34d7 Removed QUOTE() and cleaned up some of the macros for FUZZY and ASK 2019-06-06 16:45:31 -07:00
32b414e555 Removed breadline() and switched to use ask when possible, defaulting
to `read` and `fzy`
2019-06-06 15:33:20 -07:00
05705300de Removed junk 2019-06-04 21:14:17 -07:00
73b0f6efb6 Updating compiler flags 2019-05-31 00:24:21 -07:00
9faede6193 Updating with more mac compatibility 2019-05-31 00:12:21 -07:00
72ed507499 Got everything working on linux 2019-05-31 00:03:48 -07:00
c847980757 Finally got everything working with a refactor to use hash lookups
everywhere
2019-05-30 18:00:00 -07:00
8d4e4aeba4 Some major refactoring including moving more stuff into bterm.h (renamed
from keys.h), a custom readline (`read` was buggy), better
customization, and improved renaming bindings.
2019-05-28 21:36:42 -07:00
d111493a8d Lots of refactoring, including adding function stubs 2019-05-25 04:30:51 -07:00
e5ac52b1d5 Added shuffle functionality, cleaned up and improved column drawing, and
did a ton of cleanup of compiler warnings.
2019-05-24 20:49:24 -07:00
8b48d29afa Cleanup and refactoring. More robust handling of command files, and
guaranteed tmpfile deletion on exit (even with SIGTERM, ctrl-c, etc.).
Also fixed some bugs with suspend hiding cursor, not handling multiple
commands, duplicating commands, etc.
2019-05-24 16:55:36 -07:00
8f73ec7241 Added null-separation option for xargs to properly handle funky
filenames
2019-05-22 01:39:15 -07:00
fe73058f84 Added manpage 2019-05-22 00:43:25 -07:00
3d401cd701 Updates and improvements. 2019-05-21 20:06:53 -07:00
12e366c735 Removed termbox dep 2019-05-20 19:29:10 -07:00
eb57aa4c69 Initial commit 2019-05-20 19:28:47 -07:00