Skip to content

v4.0.0

Compare
Choose a tag to compare
@CodesOfRishi CodesOfRishi released this 13 Jan 17:46
· 59 commits to main since this release

What's New

  • Added Bash completion
  • User can configure whether to use find or fd/fdfind command using SMARTCD_FINDER.
  • User can configure whether to use rg or grep command using SMARTCD_GREP.
  • User can assign an empty string to SMARTCD_FZF_PREVIEW_CMD to disable the fzf preview.

What's New In Base-Dir Feature (with some BREAKING CHANGES!)

  • SMARTCD_BASE_PARENT_OPT is renamed to SMARTCD_BASE_DIR_OPT.
  • SMARTCD_BASE_PARENT is renamed to SMARTCD_BASE_DIR
  • SMARTCD_BASE_DIR is NOT configurable now. By default, it will always store the 1st element of the SMARTCD_BASE_PATHS array.
  • SMARTCD_BASE_PATHS is an array which can be used to store multiple base directory paths. The 1st element of the array will always be used as base.
  • By default, the user can use CTRL-k keystroke to select & change the base directory to use (for the current shell).
  • This keystroke can be configured using SMARTCD_BASE_DIR_KEYBIND env, which defaults to \\C-k, i.e., CTRL-k.

BREAKING CHANGES!

  • Just downloading & sourcing the smartcd.sh script won't work now. The user needs to clone the repository & then source the smartcd.sh script in their shell configuration file.
  • Support for Homebrew has been dropped (at least for now).
  • SMARTCD_HIST_OPT is renamed to SMARTCD_HIST_DIR_OPT
  • SMARTCD_HIST_SIZE is renamed to SMARTCD_HIST_DIR_LOG_SIZE
  • SMARTCD_CLEANUP_OPT is renamed to SMARTCD_CLEAN_LOG_OPT

Fixes