Commit Graph

350 Commits

Author SHA1 Message Date
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
5927e68bb7 Fix for potential buffer overflow. 2019-07-15 22:21:08 -07:00
47f66e49a7 Added fallback for if binding has no description. 2019-07-12 16:24:27 -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
d1316413e1 Added some missing escape sequences 2019-06-30 01:23:54 -07:00
61cf1bf90c Fixed issue with extra '/' appearing in link paths 2019-06-19 16:45:10 -07:00
6f660ac236 Fix for Esc key causing hang 2019-06-19 00:57:04 -07:00
199cda1222 Removed unused import 2019-06-19 00:52:12 -07:00
00a99738e8 Removed last traces of timeouts in bterm.h 2019-06-18 21:21:27 -07:00
af07f68570 Changed -std=gnu99 to -std=c99 2019-06-18 21:18:35 -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
0b977d2a8f Fixed change that broke bb -d by clearing bb's path prematurely. 2019-06-18 17:08:13 -07:00
634a8517b1 Merge branch 'master' of bitbucket.org:spilt/bb 2019-06-18 17:02:17 -07:00
b86066b46a Merge branch 'master' of bitbucket.org:spilt/bb 2019-06-17 16:50:14 -07:00
c9343baf15 Fixed onscreen off-by-one error 2019-06-17 16:50:03 -07:00
fbfe8689a8 Changing IO code to no longer use poll() in favor of just reading input
and using VMIN and VTIME.
2019-06-17 16:45:24 -07:00
8d5e68d444 Fix for term attrs getting messed up by Fish shell 2019-06-17 14:52:38 -07:00
e09bb2d3ed Added comment 2019-06-15 19:07:00 -07:00
ac29ef42cf Fixed some path normalization errors with ".." and simplified the
populate_files code a bit
2019-06-15 19:05:57 -07:00
f2298a5786 Condensed selection code by converting select_entry()/deselect_entry()
to set_selected() with an argument for whether the file should be
selected.
2019-06-15 18:21:37 -07:00
4c717185de Cleaned up and deduplicated some of the path normalization code. 2019-06-15 18:13:44 -07:00
302ed33d9c Sorted function declarations alphabetically, got rid of clear_selection
(now just inlined), and replaced remove_entry() with try_free_entry() to
eliminate duplicate safety checks.
2019-06-15 18:02:14 -07:00
18ea9b0350 Silenced some error messages from which 2019-06-15 17:43:55 -07:00
ff800b2377 Allow piping in commands when launching bb (e.g. `printf '+sel:%s\0' * |
bb`)
2019-06-15 16:21:50 -07:00
f372995750 Fix for normalizing paths better, particularly for places other than
cd_to_path and for non-directory paths (e.g. +sel:../foo.txt)
2019-06-15 16:20:38 -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
1239060641 Fix for free-after-use caused by hardlinked files (reverting earlier
change that assumed files with equal inode/idev were the same)
2019-06-15 14:07:46 -07:00
5b1344db44 Fix for ALTSCREEN getting broken by CTRL-Z 2019-06-15 14:02:32 -07:00
3614df7450 More robust/automatic handling of PICKER 2019-06-15 13:52:32 -07:00
8000a4a1bb Renamed command->script in more places to avoid confusion. 2019-06-12 18:55:55 -07:00
bd06e6c99a Improved some names (process command/run script) and changed quit to use
a flag on bb_t instead of a return value.
2019-06-12 18:52:10 -07:00