aboutsummaryrefslogtreecommitdiff
path: root/bb.c
AgeCommit message (Collapse)Author
2019-09-21Changed sorting to support '~' meaning toggle current direction.Bruce Hill
2019-09-21Added support for default shell other than sh (e.g. dash, in case shBruce Hill
links to bash)
2019-09-21Fix for ctrl-z not restoring cursor visibilityBruce Hill
2019-09-21Version bump.Bruce Hill
2019-09-21Some tweaks to how the help menu displays bindings and added BBSHELLFUNCBruce Hill
for allowing the `bb` function to be used in the ':' and '|' bindings
2019-09-21Fix for weird terminal behavior (e.g. not echoing user input forBruce Hill
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-21Fix for broken behavior in the help menu (hanging when reaching the end,Bruce Hill
due to not close()ing the file descriptor, and exiting on ctrl-c)
2019-09-12Removed +bind functionality.Bruce Hill
2019-09-12Replaced marks system with something a little more elegant usingBruce Hill
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-07Fixed mistake in `bb` function conditionalBruce Hill
2019-07-15Fix for potential buffer overflow.Bruce Hill
2019-07-12Added fallback for if binding has no description.Bruce Hill
2019-07-12Overhaul to use a shell function for internal commands instead of `bb`Bruce Hill
itself, which lets bb work when not yet installed.
2019-06-19Fixed issue with extra '/' appearing in link pathsBruce Hill
2019-06-19Fix for Esc key causing hangBruce Hill
2019-06-19Removed unused importBruce Hill
2019-06-18Removed last traces of timeouts in bterm.hBruce Hill
2019-06-18Removed all the /dev/tty redirection and just dup2()'d it beforeBruce Hill
exec()ing the user scripts
2019-06-18Fixed change that broke `bb -d` by clearing bb's path prematurely.Bruce Hill
2019-06-18Merge branch 'master' of bitbucket.org:spilt/bbBruce Hill
2019-06-17Merge branch 'master' of bitbucket.org:spilt/bbBruce Hill
2019-06-17Fixed onscreen off-by-one errorBruce Hill
2019-06-17Changing IO code to no longer use poll() in favor of just reading inputBruce Hill
and using VMIN and VTIME.
2019-06-17Fix for term attrs getting messed up by Fish shellBruce Hill
2019-06-15Added commentBruce Hill
2019-06-15Fixed some path normalization errors with ".." and simplified theBruce Hill
populate_files code a bit
2019-06-15Condensed selection code by converting select_entry()/deselect_entry()Bruce Hill
to set_selected() with an argument for whether the file should be selected.
2019-06-15Cleaned up and deduplicated some of the path normalization code.Bruce Hill
2019-06-15Sorted function declarations alphabetically, got rid of clear_selectionBruce Hill
(now just inlined), and replaced remove_entry() with try_free_entry() to eliminate duplicate safety checks.
2019-06-15Allow piping in commands when launching bb (e.g. `printf '+sel:%s\0' * |Bruce Hill
bb`)
2019-06-15Fix for normalizing paths better, particularly for places other thanBruce Hill
cd_to_path and for non-directory paths (e.g. +sel:../foo.txt)
2019-06-15Version bump and added `+bind` docBruce Hill
2019-06-15Added $BBDOTFILES, and updated bindings to use it properly. Removed theBruce Hill
`+select:*` and `+deselect:*` in favor of just using shell commands for those functions.
2019-06-15Added `+bind` command to allow for stuff like `bb +"b:\r:echo \$BBCURSOR && ↵Bruce Hill
bb +q"`
2019-06-15Fix for free-after-use caused by hardlinked files (reverting earlierBruce Hill
change that assumed files with equal inode/idev were the same)
2019-06-15Fix for ALTSCREEN getting broken by CTRL-ZBruce Hill
2019-06-12Renamed command->script in more places to avoid confusion.Bruce Hill
2019-06-12Improved some names (process command/run script) and changed quit to useBruce Hill
a flag on bb_t instead of a return value.
2019-06-12Cleaned up commands a bit and changes 'P' from using grep for patternsBruce Hill
to select to 'S' to use shell globbing
2019-06-12Switched some stuff to use $() instead of `` for better composing,Bruce Hill
rearranged things a bit to launch bb fewer times for commands.
2019-06-10Show cursor after ctrl-cBruce Hill
2019-06-10Don't show '..' from '/'Bruce Hill
2019-06-10Version bumpBruce Hill
2019-06-10Updated with some cleaner behavior for PICK and added SPIN. Also removedBruce Hill
command line flags in favor of manually using `tput rmcup`. Updated the documentation.
2019-06-09Fix for being unable to deselect nonexistant filesBruce Hill
2019-06-06Fix for top level '/' dir edge casesBruce Hill
2019-06-06Bumped versionBruce Hill
2019-06-06Removed some unnecessary +refreshes and just set the dirty bit to 1Bruce Hill
whenever an external program runs so the screen redraws without necessarily refreshing the file listing.
2019-06-06Removed code for move cursor to position (unused)Bruce Hill
2019-06-06Fixed some wrap/cursor visibility issuesBruce Hill