Polishing duplicates elimination in raw view.

This commit is contained in:
Martin Dvorak 2015-12-29 23:21:40 +01:00
parent df89985cfe
commit 51734abc4f
4 changed files with 18 additions and 2 deletions

View file

@ -99,6 +99,11 @@ Make search case sensitive (insensitive by default):
```bash ```bash
export HH_CONFIG=casesensitive export HH_CONFIG=casesensitive
``` ```
Keep duplicates in `rawhistory` view (duplicates discarded by default):
```bash
export HH_CONFIG=duplicates
```
BLACKLIST BLACKLIST
--------- ---------

8
doc/CODE.md Normal file
View file

@ -0,0 +1,8 @@
IMPLEMENTATION
==============
Eclipse:
* "Type 'bool' could not be resolved" - Index -> Freshen All Files
Remote debug:
* gdb server + Eclipse run configuration (see MindForger outline for more details)

View file

@ -110,6 +110,9 @@ Configuration options:
\fIfavorites\fR \fIfavorites\fR
Show favorites as a default view (metric-based view is shown otherwise). Show favorites as a default view (metric-based view is shown otherwise).
\fIduplicates\fR
Show duplicates in rawhistory (duplicates are discarded by default).
\fIblacklist\fR \fIblacklist\fR
Load list of commands to skip when processing history from ~/.hh_blacklist (built-in blacklist used otherwise). Load list of commands to skip when processing history from ~/.hh_blacklist (built-in blacklist used otherwise).

View file

@ -110,7 +110,7 @@
#define HH_CONFIG_BIG_KEYS_SKIP "big-keys-skip" #define HH_CONFIG_BIG_KEYS_SKIP "big-keys-skip"
#define HH_CONFIG_BIG_KEYS_FLOOR "big-keys-floor" #define HH_CONFIG_BIG_KEYS_FLOOR "big-keys-floor"
#define HH_CONFIG_BIG_KEYS_EXIT "big-keys-exit" #define HH_CONFIG_BIG_KEYS_EXIT "big-keys-exit"
#define HH_CONFIG_UNIQUE_OFF "unique-off" #define HH_CONFIG_DUPLICATES "duplicates"
#define HH_DEBUG_LEVEL_NONE 0 #define HH_DEBUG_LEVEL_NONE 0
#define HH_DEBUG_LEVEL_WARN 1 #define HH_DEBUG_LEVEL_WARN 1
@ -338,7 +338,7 @@ void hstr_get_env_configuration(Hstr *hstr)
} }
} }
if(strstr(hstr_config,HH_CONFIG_UNIQUE_OFF)) { if(strstr(hstr_config,HH_CONFIG_DUPLICATES)) {
hstr->unique=false; hstr->unique=false;
} }
} }