Commit Graph

55 Commits

Author SHA1 Message Date
8e46e6c4a4 Added comment about /dev/tty 2019-06-15 16:20:06 -07:00
2f70e8a9ba Fixed some stuff with key bindings spamming stdout 2019-06-15 16:17:43 -07:00
7a757b7906 Version bump and added +bind doc 2019-06-15 14:15:53 -07:00
b91dbdd3d0 Added $BBDOTFILES, and updated bindings to use it properly. Removed the
`+select:*` and `+deselect:*` in favor of just using shell commands for
those functions.
2019-06-15 14:14:05 -07:00
45a08afbbd Added +bind command to allow for stuff like bb +"b:\r:echo \$BBCURSOR && bb +q" 2019-06-15 14:13:35 -07:00
8000a4a1bb Renamed command->script in more places to avoid confusion. 2019-06-12 18:55:55 -07:00
0fe25dddb6 Wrapped SPIN() around more of 'M' command 2019-06-12 18:15:34 -07:00
4bac1a740a Cleaned up commands a bit and changes 'P' from using grep for patterns
to select to 'S' to use shell globbing
2019-06-12 16:57:07 -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
85a4be481b Reverted change to move cursor up 1 line with builtin pick 2019-06-11 17:38:24 -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
86c8bed803 Better pausing and break points for commands 2019-06-09 16:15:17 -07:00
5d660e2378 Added -r flag for cp for copying dirs 2019-06-08 20:53:36 -07:00
76f1cd816b Removed some unnecessary +refreshes and just set the dirty bit to 1
whenever an external program runs so the screen redraws without
necessarily refreshing the file listing.
2019-06-06 18:13:13 -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
888f859e97 Improved the randomization a bit, so the numbers are evenly distributed
[0,n) instead of [0, RAND_MAX), also cleaned up config file a little
2019-05-31 21:51:08 -07:00
1ae281d3f9 Inlined PIPE_SELECTION_TO since it's only used once 2019-05-31 19:48:43 -07:00
58d4c86389 Switched ':' to use "sh" instead of "$SHELL" because not all shells take
arguments.
2019-05-31 18:55:28 -07:00
0fa6e3a636 Compacting the code, putting column names with widths 2019-05-31 17:59:58 -07:00
05601c886b Added "<selection>" virtual directory, added '-' mark for "last
non-virtual directory" and 's' for "selection virtual directory",
cleaned up path normalization, added "N selected" visualization.
2019-05-31 17:44:18 -07:00
ca9ff7e941 Moved colwidths to config 2019-05-31 14:56:25 -07:00
06fa2d5b3c Got rid of +align command, and simplified column width logic (no more
auto-sizing, no more alignment, everything just has a static width now)
2019-05-31 14:52:57 -07:00
961ac49f81 Simplifying interleave code and adding doc 2019-05-31 13:26:23 -07:00
17ce3f08df Moving interleave-dirs back from a full column to just a setting 2019-05-31 13:23:01 -07:00
f539538582 Cleaned up a lot of the cd logic, making path names better-standardized,
but still keeping symlinks, and ensuring bb->path has a slash at the
end. Also cleaned up some empty directory errors.
2019-05-31 12:47:35 -07:00
72ed507499 Got everything working on linux 2019-05-31 00:03:48 -07:00
befe7667ad Changing empty initializer 2019-05-30 23:00:28 -07:00
f4d9510cbf Code cleanup 2019-05-30 00:33:51 -07:00
2f34dad8e8 Deleted CTRL_H functionality. 2019-05-29 23:44:22 -07:00
c1968201d9 Tweaked some default layout stuff, fixed some flushing issues with
ctrl-h, adjusted coloring to only apply to filenames
2019-05-29 19:32:52 -07:00
05b9318c10 Removing +opts in favor of just having commands for each setting. Also
removed initialopts
2019-05-29 18:00:49 -07:00
2d7d20f9a1 Overhaul of sorting and columns, simplifying and unifying things a bit 2019-05-29 17:26:18 -07:00
38408b5499 Cleanup of the rendering code, including making the selection column a
proper column (+)
2019-05-29 00:56:49 -07:00
d38e166151 Simplified the opts API a bit, cleaned up the code a little, added a
toggle_file() function
2019-05-28 23:51:20 -07:00
0a1258a747 Tweaked some defaults and allowed cursor color to be combined with
existing color.
2019-05-28 21:46:16 -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
6e39f580f6 Better column positioning, including centering and left-aligning when
appropriate.
2019-05-27 20:13:11 -07:00
109f6a96d4 Refactored the column spacing a bit and added more powerful options for
columns
2019-05-27 19:51:04 -07:00
1ba70f4221 Cleanup of a bunch of the terminal code 2019-05-27 15:53:07 -07:00
4aa93906e7 Moved a bunch of the config options into the config file (colors, etc.)
and fixed some rendering issues
2019-05-26 16:34:48 -07:00
b20b1786cb Switched a bunch of stuff to use raw bb commands ("+move:+1" instead of
"bb +move:+1")
2019-05-26 16:01:24 -07:00
3579e90a5b Made some fixes after testing on linux, changed +mark syntax to use '='
instead of ';'
2019-05-26 02:37:41 -07:00
f3b052d47c Updated docs and added some refresh consistency 2019-05-25 21:47:30 -07:00
7c3a23bbee Default config wasn't keeping up. 2019-05-25 20:56:38 -07:00
ce72a889e2 Properly handle window resizes 2019-05-23 04:02:11 -07:00
fcfb1a3995 Help menu overhaul and cleanup of config file 2019-05-23 03:40:04 -07:00
e0cad5a44f Moved sorting to a command 2019-05-23 02:13:13 -07:00