mirror of
https://github.com/dvorka/hstr.git
synced 2024-09-20 14:56:14 +08:00
Polishing duplicates elimination in raw view.
This commit is contained in:
parent
df89985cfe
commit
51734abc4f
|
@ -99,6 +99,11 @@ Make search case sensitive (insensitive by default):
|
|||
```bash
|
||||
export HH_CONFIG=casesensitive
|
||||
```
|
||||
Keep duplicates in `rawhistory` view (duplicates discarded by default):
|
||||
```bash
|
||||
export HH_CONFIG=duplicates
|
||||
```
|
||||
|
||||
|
||||
BLACKLIST
|
||||
---------
|
||||
|
|
8
doc/CODE.md
Normal file
8
doc/CODE.md
Normal 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)
|
3
man/hh.1
3
man/hh.1
|
@ -110,6 +110,9 @@ Configuration options:
|
|||
\fIfavorites\fR
|
||||
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
|
||||
Load list of commands to skip when processing history from ~/.hh_blacklist (built-in blacklist used otherwise).
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
#define HH_CONFIG_BIG_KEYS_SKIP "big-keys-skip"
|
||||
#define HH_CONFIG_BIG_KEYS_FLOOR "big-keys-floor"
|
||||
#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_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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue