aboutsummaryrefslogtreecommitdiff
path: root/bb.c
AgeCommit message (Collapse)Author
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
2019-06-06Removed breadline() and switched to use `ask` when possible, defaultingBruce Hill
to `read` and `fzy`
2019-06-04Fixed issue with navigating to parent not selecting previous directory.Bruce Hill
2019-06-04Fixed issue with non-NORMAL_TERM commands that set and reset alt screen,Bruce Hill
and fixed issue with "(n) selected" message
2019-06-04Cleaned up scrolling logicBruce Hill
2019-05-31Improved the randomization a bit, so the numbers are evenly distributedBruce Hill
[0,n) instead of [0, RAND_MAX), also cleaned up config file a little
2019-05-31Made links dim (-> foo) instead of just the arrowBruce Hill
2019-05-31Compacting the code, putting column names with widthsBruce Hill
2019-05-31Added "<selection>" virtual directory, added '-' mark for "lastBruce Hill
non-virtual directory" and 's' for "selection virtual directory", cleaned up path normalization, added "N selected" visualization.
2019-05-31Moved colwidths to configBruce Hill
2019-05-31Got rid of +align command, and simplified column width logic (no moreBruce Hill
auto-sizing, no more alignment, everything just has a static width now)