diff --git a/PKGBUILD b/PKGBUILD index 48831f0..9051849 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Christian Wieden pkgname=hh -pkgver=1.17 +pkgver=1.18 pkgrel=1 pkgdesc="A command line utility that brings improved BASH command completion from the history. It aims to make completion easier and more efficient than Ctrl-r." arch=('any') diff --git a/configure.ac b/configure.ac index d0f6be7..9cf6a53 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ AC_PREREQ([2.69]) -AC_INIT(hh, 1.17, martin.dvorak@mindforger.com) +AC_INIT(hh, 1.18, martin.dvorak@mindforger.com) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) # Checks for src dir existence. diff --git a/src/Makefile.am b/src/Makefile.am index ee05677..5765613 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -5,12 +5,13 @@ AM_LDFLAGS = # bin_ installs to bin; hh_ is the binary name bin_PROGRAMS = hh -hh_SOURCES = \ - hashset.c include/hashset.h \ +hh_SOURCES = \ + hashset.c include/hashset.h \ hstr_curses.c include/hstr_curses.h \ hstr_history.c include/hstr_history.h \ - hstr_utils.c include/hstr_utils.h \ - hstr_favorites.c include/hstr_favorites.h \ - hstr_regexp.c include/hstr_regexp.h \ - radixsort.c include/radixsort.h \ + hstr_utils.c include/hstr_utils.h \ + hstr_favorites.c include/hstr_favorites.h \ + hstr_blacklist.c include/hstr_blacklist.h \ + hstr_regexp.c include/hstr_regexp.h \ + radixsort.c include/radixsort.h \ hstr.c diff --git a/src/hstr_history.c b/src/hstr_history.c index 9131383..cd03a02 100644 --- a/src/hstr_history.c +++ b/src/hstr_history.c @@ -24,12 +24,6 @@ typedef struct { static HistoryItems *prioritizedHistory; static bool dirty; -// TODO to be externalized to a file .hh_blacklist; hh --blacklist to print default blacklist -//static const char *commandBlacklist[] = { -// "ls", "pwd", "cd", "cd ..", "hh", "mc", -// "ls ", "pwd ", "cd ", "cd .. ", "hh ", "mc " -//}; - #ifdef DEBUG_RADIX #define DEBUG_RADIXSORT() radixsort_stat(&rs, false); exit(0) #else @@ -104,12 +98,6 @@ HistoryItems *get_prioritized_history(int optionBigKeys, HashSet *blacklist) hashset_init(&rankmap); int i; -// HashSet blacklist; -// hashset_init(&blacklist); -// int length=sizeof(commandBlacklist)/sizeof(commandBlacklist[0]); -// for(i=0; isize*1000; radixsort_init(&rs, (radixMaxKeyEstimate<100000?100000:radixMaxKeyEstimate));