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
97bae88a1e
For +deselect, allow +deselect (no colon) to mean "deselect everything"
...
to make it a simple command instead of +deselect: "$@"
2019-10-03 14:13:27 -07:00
68a3bbf7e2
Fix for empty files not getting detected properly
2019-10-03 13:49:38 -07:00
16877a5f4b
Tidying up
2019-10-03 13:38:41 -07:00
6b63ea5d40
Added +execute (for, e.g. `bb +e:"bb +goto:$(ls | pick "Go to file:
...
")"`)
2019-10-03 13:35:53 -07:00
9c01fd6a37
Updated docs.
2019-10-03 13:35:42 -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
e364995dcd
Appending '\0' to commandfile so subsequent writes don't get screwed up.
2019-10-03 13:24:52 -07:00
3de5a5108f
Fix for deletion not working properly with <selection>
2019-10-03 13:21:21 -07:00
2be2c575b2
Reordering startup commands and cleaning up piped in input.
2019-10-02 13:52:44 -07:00
905783d644
Fixed ln
argument ordering
2019-10-02 13:51:51 -07:00
95047f54e7
Removed unnecessary /dev/tty redirect
2019-10-02 13:41:19 -07:00
0d3d80b94d
Restored binding for double left clicking a file.
2019-10-02 13:30:51 -07:00
b9cb1e34c9
Moved some variables out of global scope that weren't needed there.
2019-10-02 13:29:49 -07:00
05e37166fc
Fixed 'Enter' key behavior (should work properly for mac again now)
2019-10-02 13:29:25 -07:00
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