Commit Graph

71 Commits

Author SHA1 Message Date
b6f2de2212 Added better support for custom asker/picker functionality and
simplified some of the things.
2019-09-21 19:01:42 -07:00
a881d4ba4a Consolidated new file/new dir and changed move to ctrl-v by default 2019-09-21 18:18:08 -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
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
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
da6bb91763 Overhaul to use a shell function for internal commands instead of bb
itself, which lets bb work when not yet installed.
2019-07-12 16:19:31 -07:00
f5c07a5a70 Removed some remnants of the 'select:*' API and executing files with the
executable bit set
2019-06-30 01:24:47 -07:00
00a99738e8 Removed last traces of timeouts in bterm.h 2019-06-18 21:21:27 -07:00
a57b5f44db Removed all the /dev/tty redirection and just dup2()'d it before
exec()ing the user scripts
2019-06-18 21:16:32 -07:00
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