Commit Graph

385 Commits

Author SHA1 Message Date
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.
2019-10-02 13:14:28 -07:00
f0016a2d10 Removed BB_QUIT 2019-10-02 13:08:07 -07:00
e531e1766c Added fake binding to allow '#' to bind without being parsed as a
comment
2019-10-02 12:45:44 -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
7f402ee32a Fixed some typos in the bindings. 2019-09-30 18:02:55 -07:00
d83aac7bb1 Moved duplicate names onto same line. 2019-09-30 18:02: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
10ea5c1eb0 Updated comment. 2019-09-30 17:07:30 -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
e341f51dc6 Added reverse-lookup for name->key and switched to store names in an
array.
2019-09-30 00:13:10 -07:00
6e41b2f2e2 Only toggle sort direction if it was the first sort and it was ~'d. 2019-09-22 19:47:59 -07:00
7f8c16e5d9 Don't show '..' by default 2019-09-22 19:45:06 -07:00
2048807a80 Added 'i' binding for +interleave 2019-09-22 17:56:42 -07:00
13ee51673a Centered the Size column label. 2019-09-22 17:54:10 -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
f55d4f9c63 Removed redundant sorting option. 2019-09-21 21:18:06 -07:00
b9346fb3fe Changed sorting to support '~' meaning toggle current direction. 2019-09-21 21:17:21 -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
ca626182c1 Fix for bashism 2019-09-21 20:25:01 -07:00
5045f908d6 Updated readme 2019-09-21 19:16:58 -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
f55c6a5c82 Fix for ctrl-z not restoring cursor visibility 2019-09-21 19:00:53 -07:00
a881d4ba4a Consolidated new file/new dir and changed move to ctrl-v by default 2019-09-21 18:18:08 -07:00
eca5a5a8b1 Version bump. 2019-09-21 18:06:21 -07:00
a50e439b42 Some tweaks to how the help menu displays bindings and added BBSHELLFUNC
for allowing the `bb` function to be used in the ':' and '|' bindings
2019-09-21 18:05:13 -07:00
23bed00467 Fix for weird terminal behavior (e.g. not echoing user input for
subprocesses if bb was started with the terminal attributes set with NOECHO) by setting up a "default" termios struct with sane settings instead of relying on bb being launched with sane settings.
2019-09-21 16:38:53 -07:00
65fc83070b Added backspace key for going to prev directory (instead of just '-') 2019-09-21 16:38:27 -07:00
57b8b09feb Added hotkey for pager ('p') 2019-09-21 16:38:05 -07:00
f0aa30eb3f Added support for CSI Ps P -> Delete key 2019-09-21 15:50:50 -07:00
ba7b44a3e7 Fix for broken behavior in the help menu (hanging when reaching the end,
due to not close()ing the file descriptor, and exiting on ctrl-c)
2019-09-21 13:40:35 -07:00
e04c9d945c Tweaks to how spinning and confirmation work 2019-09-21 13:19:21 -07:00
6b3649bbf4 Improved confirmations and cleaned up the marks system a bit. 2019-09-15 18:02:36 -07:00
651e58c9c9 Removed +bind functionality. 2019-09-12 18:56:27 -07:00
4c6f0b118f Better handling for interrupts during mark 2019-09-12 18:51:58 -07:00
e1e34bc6ed Replaced marks system with something a little more elegant using
symbolic links in ~/.config/bb/marks/. The new version is a little more
flexible (arbitrary mark names), persistent across bb sessions, and uses
a bit less code.
2019-09-12 18:41:15 -07:00
88514eda09 When choosing sorting, immediately select method on first keystroke. 2019-09-07 21:51:59 -07:00
fed64cc4aa Don't copy files if none are selected. 2019-09-07 21:51:40 -07:00
52a2b30692 Fixed mistake in bb function conditional 2019-09-07 21:47:22 -07:00
1da8fd2660 Fixed check for empty string in prefixes and stuff 2019-09-07 21:47:05 -07:00
d280bcfe3f Merge branch 'master' of bitbucket.org:spilt/bb 2019-07-24 23:46:33 -07:00
f3da7c1f32 Replaced bashism "[[" with "test -n" 2019-07-24 23:46:14 -07:00
63bf52a4a8 Added preview image 2019-07-15 22:31:42 -07:00
e6b0844ecc Added documentation for dmenu. 2019-07-15 22:30:34 -07:00
a3e90c07a4 Added dmenu support in makefile 2019-07-15 22:25:36 -07:00